2001-05-10 Fernando Nasser <fnasser@redhat.com>
[deliverable/binutils-gdb.git] / sim / ppc / ChangeLog
CommitLineData
c6631388
AC
12001-03-04 Andrew Cagney <ac131313@redhat.com>
2
3 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
4 <errno.h>.
5 (do_stat): Only do SYS test when SYS_stat defined.
6 (do_sigprocmask): Ditto for SYS_sigprocmask.
7 (do_fstat): Ditto for SYS_fstat.
8 (do_getdirentries): Ditto for SYS_getdirentries.
9 (do_lstat): Ditto for SYS_lstat.
10
428e1889
GK
112001-01-15 Geoffrey Keating <geoffk@redhat.com>
12
13 * emul_netbsd.c (do_open): Translate the flag parameter to the
14 open syscall to the numbers supported by the host.
15
4c15ccf7
GK
162000-12-12 Geoffrey Keating <geoffk@redhat.com>
17
18 * sim-endian.h: Don't have parameters on macro definitions which
19 are simply renaming functions, to permit use of XCONCAT2 in both
20 the macro name and the arguments in a use of such a definition.
21
7c721b2a
MC
222000-11-15 Jim Blandy <jimb@redhat.com>
23
24 * sim_calls.c: Doc fix.
25 (sim_fetch_register, sim_store_register): Call
26 gdbarch_register_name directly, instead of going through
27 REGISTER_NAME macro.
28
ae02957b
GK
292000-10-24 Geoff Keating <geoffk@cygnus.com>
30
31 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
32
eb2d80b4
AC
33Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
34
35 * configure: Regenerated to track ../common/aclocal.m4 changes.
36
0c22be81
AC
37Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
38
39 * events.c (event_queue_process): Call update_time_from_event
40 every time an event is removed from the queue.
41 (update_time_from_event): Delete assertion that a negative
42 time_from_event implies an empty event queue.
43
25d704f3
AC
44Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
45
46 * interrupts.c (deliver_hardware_interrupt): Print time trace in
47 decimal.
48 * events.c (event_queue_process): Cleanup trace message.
49 (update_time_from_event): Trace full event queue.
50
9ff590a5
GK
512000-03-25 Geoff Keating <geoffk@cygnus.com>
52
53 * ppc-instructions (Disabled_Exponent_Underflow): Increment
54 the exponent when denormalizing.
55
d4f3574e
SS
56Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
57
58 * configure: Regenerated to track ../common/aclocal.m4 changes.
59
cd0fc7c3
SS
601999-05-08 Felix Lee <flee@cygnus.com>
61
62 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
63 * configure: Regenerated to track ../common/aclocal.m4 changes.
64
7a292a7a
SS
651999-04-02 Keith Seitz <keiths@cygnus.com>
66
67 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
68 the frequency at which the poll_quit callback is called.
69 (poll_quit_count): New global.
70 (sim_io_poll_quit): Only call the poll_quit callback
71 after the specified POLL_QUIT_INTERVAL.
72
731999-02-22 Jim Lemke <jlemke@cygnus.com>
74
75 * dc-complex: Force expansion on all bits of field BO.
76 Previously, the least-significant (prediction) bit was ignored.
77 * ppc-instructions (conditional branches): Implement mpc860c0 option.
78 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
79 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
80 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
81 * interrupts.c (program_interrupt): Added handling for above interrupt.
82
c906108c
SS
831999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
84
85 Make the simulator compatible with the MPC750. It would be nicer
86 to make this a real multi-sim, but that's more work than we have
87 time for.
88 * emul_generic.c (emul_add_tree_options): Only require strict
89 alignment if it was explicitly requested at configuration time.
90 Don't make it the default for little-endian machines.
91 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
92 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
93 THRM2, THRM3): Plop in the MPC750 SPR registers.
94 (DABR): This is weird. This was HID5, but the PPC spec says this
95 should be DABR; why did some random processor use it for something
96 else? The HID5 entry dates back to the original checkin of the
97 simulator code in 1995, so remove it.
98 * sim_calls.c (register_names): Delete this; since the user can
99 now change GDB's list of register names dynamically, we can't
100 pretend there's a static mapping here.
101 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
102 function to get the register name. That ought to be accurate.
103 However, we're changing a compile-time dependency (using the
104 REGISTER_NAMES macro) into a link- and run-time dependency
105 (calling REGISTER_NAME, which happens to be a function call on the
106 PPC).
107
1081999-01-22 Jim Lemke <jlemke@cygnus.com>
109
110 * igen.c(gen_semantics_[ch]): setup/use of new option
111 (-o mpc860c0[=n]).
112 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
113 ppc-instructions(the four branch insn groups): detect problematic br's.
114 psim.c(is_num - added, psim_options): Parse and init new option.
115 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
116
1171998-12-01 Ken Raeburn <raeburn@cygnus.com>
118
119 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
120
121Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
122
123 * main.c (sim_io_poll_quit): Stub function.
124
125 * events.c (SIM_EVENTS_POLL_RATE): Define.
126 (sim_events_poll): Copy function from common/sim-events.c.
127 (event_queue_init): Copy scheduling of sim_events_poll from same.
128
129 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
130 poll the external environment.
131
1321998-11-19 Michael Meissner <meissner@cygnus.com>
133
134 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
135 fractional type, so that quiet NaN's aren't treated like
136 Infinities.
137
138Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
139
140 * table.c (table_open): For cygwin hosts, we need to use the
141 return value from the read routine as the number of bytes to
142 process. This apparently is due to text-mode vs binary-mode. If
143 the mounts are done text-mode, then the size returnedby fstat()
144 may be different than the number of bytes "read" in text mode.
145
146Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
147
148 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
149 (do_close): ditto.
150 (do_fstat): ditto.
151 (do_lstat): ditto.
152
1531998-09-03 Michael Meissner <meissner@cygnus.com>
154
155 * emul_{netbsd,unix}.c: Update copyright year.
156
157Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
158
159 * sim_calls.c (sim_fetch_register, sim_store_register):
160 return zero when nothing to do.
161
1621998-06-26 Michael Meissner <meissner@cygnus.com>
163
164 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
165 * configure: Regenerate.
166 * emul_{netbsd,unix}.c (toplevel): No longer try to include
167 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
168
169Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
170
171 * Makefile.in: The run target depended on a target psim$(EXEEXT),
172 but there was no such target, only plain psim. So I changed the
173 run target to depend on psim.
174
175Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
176
177 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
178 now defined in ../common/aclocal.m4, and the double definition causes
179 problems with AC_SUBST of EXEEXT.
180 * configure: Regenerate.
181
182Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
183
184 * aclocal.m4: new file for AM_EXEEXT macro
185 * configure.in: call AM_EXEEXT
186 * configure: regenerate with autoconf 2.12.1.
187 * Makefile.in: add EXEEXT support
188
189Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
190
191 * configure: Regenerated to track ../common/aclocal.m4 changes.
192 * config.in: Ditto.
193
194Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
195
196 * acconfig.h: New file.
197 * configure.in: Reverted change of Apr 24; use sinclude again.
198 Don't call AC_C_CROSS.
199
200Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
201
202 * configure: Regenerated to track ../common/aclocal.m4 changes.
203 * config.in: Ditto.
204
205Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
206
207 * Makefile.in (top_builddir): New macro.
208 (INTLLIBS): New macro.
209 (INTLDEPS): Likewise.
210 (psim): Depend on INTLDEPS; link against INTLLIBS.
211 * configure.in: Call CY_GNU_GETTEXT.
212
213Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
214
215 * configure: Regenerate with autoconf 2.12.1.
216
217Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
218
219 * psim.c (psim_read_register, psim_write_register): Handle updates
220 for FPSCR.
221
222 * registers.c (register_description): Reconize "FPSCR".
223
224 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
225 MSR FP exception mode. Do not enable FPSCR bits.
226 * emul_unix.c (emul_unix_create): Ditto.
227
228Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
229
230 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
231 length parameter. Return -1.
232
233Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
234
235 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
236 (is_invalid_zero_divide, invalid_zero_divide_operation): New
237 functions.
238
239Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
240
241 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
242 raw value instead.
243
2441997-11-05 Felix Lee <flee@cygnus.com>
245
246 * emul_chirp.c: #ifdef HAVE_UNISTD_H
247
248Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
249
250 * corefile.c (core_attach): Pad out allocated memory regions so
251 that they are always correctly aligned.
252 (struct _core_mapping, core_map_attach, core_init,
253 new_core_mapping): Change free_buffer to type void*.
254
255Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
256
257 * sim_calls.c (zfree): Call free correctly.
258
259Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
260
261 * sim_calls.c (zfree): Use free, not mfree.
262 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
263 flush_stdout.
264
265Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
266
267 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
268 mask extracting shift amount. Correctly condition for setting XER
269 in sraw.
270 (ldhau): From Johannes Reisinger, update rA after load.
271
272Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
273
274 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
275 for MSVC.
276 * words.h: __int64 instead of long long for MSVC.
277
278Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
279
280 * sim_calls.c (sim_create_inferior): Check the simulator was
281 initialized before creating inferior.
282
283 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
284 sign bit using 64 bit and not a 32 bit mask.
285
286Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
287
288 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
289 it has been used, not before.
290
291Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
292
293 * sim_calls.c (sim_kill): Delete.
294 (sim_create_inferior): Add ABFD argument.
295 (entry_point): Delete variable.
296 (sim_load): Move setting of PC from here.
297 (sim_create_inferior): To here.
298
299Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
300
301 * sim_calls.c (sim_open): Add ABFD argument.
302
303Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
304
305 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
306 CR register updates dependant on RC value had logic backwards.
307
308 * ppc-instructions (Load String Word Immediate): From Brad Parker
309 - sense of wrap test in check for overwriting RA wrong.
310 (Load String Word Indexed): Ditto.
311
312 * configure.in: From Erik Landry - set sim_default_model not
313 sim_model for sim-default-model option.
314 * configure: Regenerate.
315
316 * interrupts.c (check_masked_interrupts): Schedule a hardware
317 interrupt delivery when FP interrupts get enabled.
318 (program_interrupt): Generate FP exceptions instead of aborting.
319 (deliver_hardware_interrupt): Deliver a FP exception if so
320 enabled.
321
322 * registers.h: Add definition of fpscr_vx_bits.
323
324 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
325 in FPSCR.
326 (FPSCR_END): Explicitly check for possible floating point
327 exception conditions.
328 (FPSCR_BEGIN): Simplify.
329
330 * ppc-instructions (Move From FPSCR): Enable.
331 (Move To FPSCR Bit 1): Ditto.
332 (Move To FPSCR Bit 0): Ditto.
333 (Move To FPSCR Field Immediate): Ditto.
334 (Move to Condition Register from FPSCR): Simplify.
335 (invalid_arithemetic_operation): Generate a QNaN when invalid
336 operation exception disabled.
337
338Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
339
340 * sim_calls.c (sim_open): Add callback argument.
341 (sim_set_callbacks): Delete.
342
343Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
344
345 * sim_callbacks.h (error): Make declaration match gdb's.
346 * main.c (error): Ditto.
347
348Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
349
350 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
351 stopped/SIGINT. Exit implies a status code.
352
353 * psim.c (cntrl_c_simulation): From main.c. Event function that
354 halts the simulator.
355 (psim_stop): New. Asynchronously schedule a stop simulator event.
356 (psim_run_until_stop): Delete. Made redundant by psim_stop.
357
358 * main.c (cntrl_c): Update.
359 (cntrl_c_simulation): Moved to psim.c.
360
361 * sim_calls.c (sim_stop): New function. Use psim_stop which
362 schedules a stop event.
363 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
364 (sim_resume): Use psim_run as stop variable no longer needed.
365
366Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
367
368 * psim.c (psim_options): Handle -E option correctly.
369 (psim_usage): Document.
370
371Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
372
373 * psim.c (psim_options): Ignore -E option (sets endianness).
374 * sim_calls.c: #include bfd.h.
375 (entry_point): New static local.
376 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
377 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
378
379Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
380
381 * Makefile.in (INSTALL): Set to @INSTALL@.
382 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
383 (install): Depend upon installdirs. Use $(program_transform_name)
384 directly, rather than using $(INSTALL_XFORM).
385 (installdirs): New target.
386
387Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
388
389 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
390 rather than the non-portable cat -n.
391
392Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
393
394 * Makefile.in (INSTALL): Change install.sh to install-sh.
395
396Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
397
398 * ppc-instructions: Change milhwu to mulhwu.
399
400Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
401
402 * sim_calls.c (sim_open): New arg `kind'.
403
404Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
405
406 * COPYING: Update FSF address.
407
408Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
409
410 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
411 all the required features are supported by the host OS.
412
413Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
414
415 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
416
417 * configure.in (enable-sim-endain): Correct typo in usage (from
418 Erik Landry <landry@ENGR.ORST.EDU>).
419 * configure: Re-generate.
420
421Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
422
423 * Makefile.in (targ-vals.def): Re-do rule so that it works with
424 FreeBSD's make. Didn't like $<.
425
426Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
427
428 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
429 in argv form.
430 (other sim_*): New SIM_DESC argument.
431
432Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
433
434 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
435 ppc-opcode-simple-switch, ppc-opcode-complex-array,
436 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
437 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
438 superseeded by --sim-decode-mechanism option.
439
440 * ppc-opcode-simple, dc-simple: Rename to be 8.3
441 * ppc-opcode-complex, dc-complex: Ditto.
442 * ppc-opcode-stupid, dc-stupid: Ditto.
443 * ppc-opcode-test-1, dc-test.01: Ditto.
444 * ppc-opcode-test-2, dc-test.02: Ditto.
445
446 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
447 of ppc-opcode-.
448
449Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
450
451 * Many of the ppc-opcode-* files are identical baring the type of
452 lookup table. Instead of having multiple tables, igen can do this
453 via an additional option.
454
455 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
456 allow the type of generated table specified in the decode file to
457 be overridden.
458
459 * ld-decode.c (load_decode_table): Allow the table type to be
460 overridden.
461
462 * igen.c (main): Add -T <mechanism> option so that an overriding
463 instruction decode mechanism can be specified.
464
465 * configure.in: New option --sim-decode-mechanism to control
466 igen's new -T <mechanism> flag.
467 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
468 configure script.
469 * configure: Regenerate.
470
471Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
472
473 * events.c (event_queue_create): Don't use NULL to initialize an
474 integer field.
475 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
476 of sigprocmask to appropriate autoconf test.
477
478 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
479 don't assume void.
480 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
481
482 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
483 includes our config.h.
484
485Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
486
487 * configure.in: Fix typo in test for callback.c.
488 * configure: Regenerated.
489
490Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
491
492 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
493 found in the device tree.
494
495Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
496
497 * Property create/initialization still wasn't correctly ordered.
498 Should be delaying everything related to ihandle creation until
499 after the rest of the tree has been established.
500
501 * device.c (device_find_ihandle_runtime_property): Update.
502 (device_add_ihandle_runtime_property): Update.
503
504 * tree.c (parse_ihandle_property): Delay lookup of the device to
505 be opened until the ihandle initialization phase.
506 * tree.c (print_properties): Update.
507
508Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
509
510 * gen-icache.c (print_icache_extraction): Add a reason parameter.
511 Augment each extracted field with a comment citing the codes
512 origin. Should simplify tracking down incorrect cache
513 extractions.
514
515Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
516
517 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
518 works for normal and boolean table entries.
519
520 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
521 valid. Handle this just like *_{read,write}_register now handles
522 it.
523
524Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
525
526 * events.c (insert_event_entry): Correct loop termination
527 assertions.
528
529Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
530
531 * psim.c (psim_options): Add new option -c for max-iterations or
532 count.
533 (psim_usage): Document.
534 (psim_max_iterations_exceeded): New function, abort simulation if
535 max iterations exceeded.
536
537 * gen-idecode.c: Re-work the table lookup code so that it assumes
538 that the entry is a leaf by default. Simplify the boolean table
539 entry code so that it involves a mask + test instead of shift +
540 shift + mask + test.
541
542 * gen-idecode.c: Correct generated igen body so that it no drops
543 or doubles clock interrupts.
544
545
546Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
547
548 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
549 @sim_targ_vals@
550
551 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
552 if common callback is present.
553
554Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
555
556 * configure.in (sim_callback): If the gdb is post 4.16, configure
557 callback support from the common directory.
558 * configure: Regenerate.
559
560 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
561 targ-map.c.
562 (GDB_OBJ): Add callback support configured in.
563 (gentmap,targ-vals.def): Build from common directory.
564 (targ-vals.h,targ-map.c): Build by running gentmap.
565 (callback.o): Build from source in common directory.
566 (targ-map.o): Add dependency.
567 (clean): Remove gentmap.
568
569Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
570
571 * igen wasn't aborting if the opcode table contained no valid
572 fields.
573
574 * misc.c (name2i): Possibly abort if an invalid name is
575 encountered.
576 * ld-decode.c: Abort if the table type isn't found.
577
578Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
579
580 * When performance monitoring is disabled, it is still possible to
581 determine the simulation speed by looking at the number of elapsed
582 ticks recorded by the event queue.
583
584 * psim.c (psim_write_register, psim_read_register): Force the cpu
585 to zero when it is either of `-1' or `nr_cpus'. In both cases the
586 next cpu would be zero any way.
587
588 * mon.c (mon_print_info): If possible, print the system cycle
589 performance. This is an indication of the number of instructions
590 per second.
591
592Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
593
594 * The code to allow an event queue to be updated during a signal
595 was missing. For main.c, a cntrl-c simulation termination wasn't
596 handled cleanly.
597
598 * The simulation would not correctly restart if an event requested
599 that the simulation be halted.
600
601 * psim.c (psim_options): Add hack to -i option to optionally
602 include a level vis -i2.
603 (psim_usage): Document.
604
605 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
606 cntrl-c occures schedule an event to halt the simulation.
607 (main): Catch CNTRL-C signals with the function cntrl_c.
608
609 * events.c (event_queue_process): Mask interrupts while
610 manipulating the async event queue.
611 (event_queue_init): Ditto.
612 (event_queue_schedule_after_signal): Ditto.
613
614 * events.c (event_queue_process): Mark the event queue as being in
615 the processing state when processing has started. Adjust code
616 so that it is tolerant of halts.
617 (event_queue_init): Start the event queue out with processing
618 false.
619 (event_queue_tick): Check that processing isn't still being
620 performed.
621
622 * gen-idecode.c (print_run_until_stop_body): Call
623 event_queue_process_events to clear possibly pending events before
624 starting a simulation run. Re-arange main loop so that simulator
625 is correctly restarted when an event halts the simulation.
626
627 * psim.c (psim_halt): Handle an event halting the simulation.
628 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
629 reworked idecode.
630
631Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
632
633 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
634 RA. Based on instruction frequency stats, expand additional
635 instructions.
636 * ppc-instructions: Change all `RA == 0' to RA_is_0.
637
638 * ppc-opcode-stupid: Move all but the basic table in -complex into
639 here. Update to new format.
640
641 * Makefile.in (tmp-defines): New target. Force defines.h to always
642 be built. Hence get ppc-opcode-goto to build.
643
644Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
645
646 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
647 Implement.
648
649Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
650
651 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
652 to be initialized independant of the rest of the simulation
653 initalization. Otherwize a trace option explictly set from gdb
654 could be overridden by hw_trace.
655
656 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
657
658 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
659 debug.c. It could be much simpler.
660
661Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
662
663 * Some devices support removable media. Add hooks to the disk
664 device so that it supports this.
665
666 * device.c (device_add_string_array_property,
667 device_find_string_array_property): New functions, manipulate
668 properties containing an array of strings.
669 (device_find_string_property): Allow a string array.
670 (device_init_static_properties): Update.
671 (device_init_runtime_properties): Update.
672
673 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
674 media. If no file image is specified, use the next one in the
675 image property list.
676 (hw_disk_init_address): Change the file property so that it is a
677 string array - use the first entry for the initial file image.
678
679 * tree.c (print_string_aray_property): New function - print a
680 string array.
681 (print_properties): Adjust.
682 (print_string): Write a string, handling double quotes.
683
684 * device.h: Define an ioctl to `change-media' with an optional new
685 media image.
686
687 * hw_disk.c: Allow floppy disk devices to be specified.
688
689 * psim.c (psim_command): New function, parse more complex psim
690 commands such as "change-media" and "trace".
691 * sim_calls.c (sim_do_command): Use.
692
693Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
694
695 * For expressions like (RA == 0) that are entered in to the cache
696 as RA_is_0. If possible generate the result of the expression so
697 that the compiler gets a better chance of eliminating dead
698 branches.
699
700 * gen-icache.c (print_icache_extraction): For a cache entry of
701 the form <name>_is_<const> where it is a boolean field, generate
702 the result of the expression instead of the expression its self.
703 (print_icache_body): Remove code that was looking for *_is_0 and
704 then generating corresponding definitions.
705
706 * gen-icache.c (print_icache_struct): If there is no cache, do not
707 output expressions in idecode.h file.
708
709 * gen-icache.c (print_icache_body): Output them here.
710
711 * ppc-opcode-complex: Clarify constant values for SPR==LR register
712 expansion.
713
714 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
715
716Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
717
718 * The code that put values in and extracted values from the cache
719 was too compilicated. The cache table did not allow values to be
720 computed from cache entries. #defines could only be used when a
721 cache was present, remove the restriction.
722
723 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
724 scratch variable is defined when a cache entry is beinf
725 filled. Change the definition of a COMPUTE variable to be defined
726 when the cache entry is being used.
727 * gen-icache.c: Update.
728
729 * ld-cache.h, ld-cache.c: Change field names so that their meaning
730 is more obvious. old_name->field_name, new_name->derived_name.
731 * gen-icache.c: Update
732
733 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
734 different types of cache code - put into cache, extract from
735 cache, no cache - an explicit argument to print_icache_body.
736 * gen-icache.c (print_icache_extraction): Ditto.
737
738 * gen-semantics.c (print_c_semantic): Update use.
739 * gen-idecode.c (print_jump_insn): Update use.
740 * gen-icache.c (print_icache_function): Update use.
741
742 * igen.c (main): Change 'R' option so that it does not force the
743 cache.
744
745 * configure.in (enable-sim-icache): Clarify description. Make
746 #define one of the defaults regardless of the cache. Probably
747 should revamp and add a separate option.
748
749Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
750
751 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
752 partition numbering.
753 (pk_disklabel_create_instance): Partition 1..4 are valid - not
754 1..3.
755 (is_iso9660): New function, verify a CD9660 File system.
756 (pk_disklabel_create_instance): Start expanding so that active
757 partition selection is supported.
758
759Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
760
761 * The cap object was retaining a reference to the instance of a
762 device after it was deleted. Instead add and remove cap's from the
763 cap db as they are created and deleted. This ensuring that a
764 capibility is only used during the lifetime of the corresponding
765 object.
766
767 * cap.h, cap.c: Correct cap type - was signed32 should be
768 signed_cell.
769
770 * cap.c (cap_add, cap_remove): New methods for cap object that
771 allow the explicit addition and removal of internal objects that
772 the cap knows about.
773
774 * cap.c (cap_init): Rewrite. Verify that the only objects
775 remaining in the cap data base are those that were entered first.
776 Thse objects will be the permenant ones.
777 * device.c (device_init_address): Remember to initialize the cap
778 database.
779
780 * device.c (device_create_instance_from): Explicitly add device
781 instances to the cap database. Simplify create code.
782 (device_instance_delete): Explicitly remove device instances from
783 the cap database.
784
785 * device.c (device_create_from): Explicitly add a device to the
786 cap data base.
787
788 * device.c (device_create_from): Always set the cap members.
789
790 * hw_disk.c: Output the instance when tracing.
791
792Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
793
794 * tree.c (split_device_specifier): Add support for aliases when
795 looking up a device. Now needs a device as an argument.
796 (split_property_specifier): Ditto.
797
798Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
799
800 * The memory "claim" and "release" methods take an address and
801 size as arguments. These may be multi cell values. Initially fix
802 the memory code so that they check/detect this. Leave the
803 adjustment of any clients to later.
804
805 * hw_memory.c (hw_memory_instance_claim,
806 hw_memory_instance_release): Handle multi-cell memory devices.
807
808 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
809 release of memory regions that were not claimed.
810
811Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
812
813 * device.h, device.c (device_instance_call_method): Correct return
814 type - can return either 0 or -1, hence should be a signed type.
815 * device_table.h: Ditto.
816
817 * hw_memory.c (hw_memory_instance_claim,
818 hw_memory_instance_release): Update.
819 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
820 hw_disk_nr_blocks): Ditto.
821
822Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
823
824 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
825 method belonging to "/chosen/memory".
826 (chirm_emul_release): Ditto.
827
828 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
829 that are inlined. These modules are called via a table and are
830 not made inline.
831
832 * hw_init.c (update_for_binary_section): Fix failure to allocate
833 memory used by the binary in real-mode executions. If "claim"
834 property is present, allocate memory from the "/chosen/memory"
835 device.
836
837 * emul_chirp.c (emul_chirp_create): Specify that memory should be
838 claimed when loading a real image.
839
840 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
841 allocations.
842
843 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
844 when merging adjacent memory chunks.
845
846Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
847
848 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
849 optional PROCESSOR & CIA args so that this routine also abort an
850 access.
851
852 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
853 miss-aligned access when a transfer fails abort.
854
855 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
856 instead of the vm_read_buffer.
857 * emul_netbsd.c (do_write): Ditto.
858 * emul_unix.c (do_unix_write): Ditto.
859
860Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
861
862 * configure.in (--enable-sim-jump): Default is NULL and not -E.
863 * configure: Regenerate.
864
865 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
866 (UNUSED): Only enable UNUSED if GCC >= 2.7.
867
868 * gen-icache.c (print_icache_extraction): Print UNUSED macro
869 instead of explicit __unused__ attribute.
870 (print_icache_body): Ditto.
871 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
872
873Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
874
875 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
876 reference point.
877
878 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
879 arguments so that there is a reference point for recovery.
880 (vm_synchronize_context): Pass processor+cia for errors.
881 (om_unpack_sr): Ditto.
882 (om_unpack_srs): Ditto.
883 * vm.c (vm_create): Review error messages.
884
885 * vm.c: Include "cpu.h" so that cpu_error is visible.
886
887 * ppc-instructions (Return From Interrupt): Pass CIA.
888 (Instruction Synchronize): Ditto.
889 * psim.c (psim_init): Ditto.
890
891Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
892
893 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
894 but also saves current processor state.
895
896 * basics.h: Move #include <stdarg.h> to here from device_table.h.
897
898 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
899 when simulation aborted.
900 (program_interrupt): Ditto.
901 (floating_point_unavailable_interrupt): Ditto.
902 (alignment_interrupt): Ditto.
903 (floating_point_assist_interrupt): Ditto.
904 (perform_oea_interrupt): Ditto.
905 (machine_check_interrupt): Ditto.
906
907Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
908
909 * ppc-instructions (Move from Special Purpose Register): Support
910 move from DEC.
911
912Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
913
914 * debug.h, debug.c: Add "interrupts" trace option.
915
916 * interrupts.c (data_storage_interrupt): Add tracing.
917 (machine_check_interrupt): Ditto.
918 (instruction_storage_interrupt): Ditto.
919 (alignment_interrupt): Ditto.
920 (program_interrupt): Ditto.
921 (floating_point_unavailable_interrupt): Ditto.
922 (system_call_interrupt): Ditto.
923 (floating_point_assist_interrupt): Ditto.
924 (deliver_hardware_interrupt): Ditto.
925
926 * interrupts.c (program_interrupt): For UEA mode, halt the
927 processor - so that the current state is saved - instead of
928 aborting.
929 (floating_point_unavailable_interrupt): Ditto.
930 (floating_point_assist_interrupt): Ditto.
931
932Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
933
934 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
935 a double interrupt.
936
937Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
938
939 * ppc-instructions (Store Multiple Word, Load Multiple Word):
940 Enable.
941
942 * tree.c (print_properties): For an array consider printing it out
943 as an integer array.
944
945 * hw_memory.c (hw_memory_init_address): If an "available" property
946 is present, use that to initialize the available memory instead of
947 using the reg property.
948
949 * emul_generic.c (emul_add_tree_hardware): Add "available"
950 property to memory device.
951
952Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
953
954 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
955
956 * device.c (device_instance_call_method): Was only looking at the
957 first method.
958
959 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
960 (hw_disk_block_size): Implement block-size method.
961 (hw_disk_max_transfer): Implement max-transfer method.
962
963 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
964
965 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
966 invalid ihandle.
967 (chirp_emul_instance_to_package): Ditto.
968 (chirp_emul_method): Ditto.
969 (chirp_emul_read): Ditto.
970 (chirp_emul_write): Ditto.
971 (chirp_emul_close): Ditto.
972 (chirp_emul_seek): Ditto.
973 (chirp_emul_package_to_path): Ditto (for phandle).
974 (chirp_emul_package_to_path): Return the length.
975
976 * psim.c (psim_merge_device_file): Allow continuation lines.
977
978Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
979
980 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
981 string and exit.
982
983 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
984 members - *_cell not host dependant int.
985
986Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
987
988 * interrupts.c (perform_oea_interrupt): Print additional
989 information if a double interrupt is encountered.
990
991Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
992
993 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
994 being specified with the -f option.
995 (psim_merge_device_file): Correct check for end of string.
996
997Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
998
999 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1000 list of devices. Return zero to the client instead.
1001 * emul_chirp.c (chirp_emul_child): Ditto
1002 * emul_chirp.c (chirp_emul_parent): Ditto
1003
1004 * device.c (device_root): Assert assumption about the device being
1005 valid.
1006
1007Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1008
1009 * emul_chirp.c (emul_chirp_create): Add description property to
1010 each significant node in the device tree.
1011 * emul_bugapi.c (emul_bugapi_create): Ditto.
1012
1013Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1014
1015 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1016 tempoary two byte buffer. Single byte read with fgets will not
1017 work.
1018 * main.c: Include errno.h.
1019 (sim_io_read_stdin): For non-STDIO, make it work.
1020
1021 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1022
1023Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1024
1025 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1026 Instead have each emulation default it to DO_USE_STDIO.
1027
1028 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1029 mechanism as the default if enabled or if nothing selected.
1030
1031 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1032 return value.
1033 (sim_io_write_stdout): Ditto.
1034 (sim_io_write_stderr): Ditto.
1035 * main.c (sim_io_write_stdout): Ditto.
1036 (sim_io_write_stderr): Ditto.
1037 (sim_io_read_stdin): Ditto.
1038
1039Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1040
1041 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1042 type correct.
1043 * vm.c (om_effective_to_virtual): Ditto.
1044 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1045 (event_queue_{deschedule,process}): Ditto.
1046 * hw_htab.c (htab_decode_hash_table): Ditto.
1047 (htab_map_{page,binary}): Ditto.
1048 * hw_opic.c (hw_opic_init_data): Ditto.
1049 (handle_interrupt): Ditto.
1050 (do_processor_init_register_{read,write}): Ditto.
1051 (write_vector_priority_register): Ditto.
1052 ({read,write}_destination_register): Ditto.
1053 (do_suprious_vector_register_{read,write}): Ditto.
1054 (do_current_task_priority_register_N_{read,write}): Ditto.
1055 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1056 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1057 (do_ipi_N_dispatch_register_write): Ditto.
1058 (do_vendor_identification_register_read): Ditto.
1059 (do_feature_reporting_register_N_read): Ditto.
1060 (do_global_configuration_register_N_{read,write}): Ditto.
1061 * hw_phb.c (hw_phb_attach_address): Ditto.
1062 (hw_phb_unit_decode): Ditto.
1063 (hw_phb_address_to_attach_address): Ditto.
1064 (hw_phb_io_{read,write}_buffer): Ditto.
1065 * hw_ide.c (setup_fifo): Ditto.
1066
1067 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1068 files via -I<dir> instead of using "../../gdb/" prefixes.
1069
1070Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1071
1072 * debug.h: Add tracing for the pal device.
1073 * hw_pal.c: Update.
1074
1075 * emul_chirp.c (chirp_emul_getprop): More tracing.
1076
1077Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1078
1079 * device.h, device.c (device_find_ihandle_runtime_property): New
1080 function. Reverse of add_ihandle_runtime property.
1081 (device_init_runtime_properties): Use it.
1082
1083 * device.c (find_property_entry): New function returns the
1084 internal property spec.
1085 (device_set_property): Use.
1086 (device_find_property): Use.
1087
1088Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1089
1090 * psim.c (psim_merge_device_file): Strip newline from device
1091 specs.
1092
1093Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1094
1095 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1096 merge the two. Also check that the merge is safe.
1097
1098 * emul_chirp.c (emul_chirp_create): Add a description property to
1099 the pte's so that they are easier to identify.
1100
1101 (emul_chirp_create): Don't specify a load address for the CHRP
1102 image. Always use the values specified by the executable.
1103
1104 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1105 encountered.
1106
1107Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1108
1109 * hw_htab.c (htab_map_page): Formatting.
1110
1111 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1112 method name when handling the client call. Also check for other
1113 bad call arguments.
1114
1115 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1116 etc to be overriden.
1117
1118Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1119
1120 * os_emul.c (os_emul_create): Use tree find property instead of
1121 device find property - sigh.
1122
1123Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1124
1125 * 961205: Release snapshot 961205.
1126
1127Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1128
1129 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1130 cannot contain a comma.
1131 (sim-warnings): Check for more potential errors.
1132
1133 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1134 containing device tree specifications that should be merged into
1135 the device tree.
1136
1137 * configure.in: Sort options.
1138 * configure: Rebuild
1139
1140Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1141
1142 * psim.c (psim_usage): Add -n option - specify number of
1143 processors.
1144
1145 * emul_chirp.c: Add description.
1146 * emul_bugapi.c: Ditto.
1147 * emul_unix.c: Ditto.
1148 * emul_netbsd.c: Ditto.
1149
1150Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1151
1152 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1153 encountered, assume that it is the single disk.
1154 * hw_pal.c: Add generic device/size decode methods.
1155
1156 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1157 property entry when determining the nvram size.
1158
1159 * hw_core.c: Add generic address/size decode methods.
1160
1161 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1162 nonzero status from client functions.
1163
1164 * main.c (error): Always include a cariage return when writing out
1165 errors.
1166
1167Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1168
1169 * sim_calls.c (sim_resume): Reset sim_should_run if single
1170 stepping.
1171
1172Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1173
1174 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1175 optional disks.
1176
1177 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1178 Attach the pal - for I/O - as a pseudo device haning from the
1179 firmware sub tree.
1180
1181 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1182 the device tree at the address of the hi-mem interrupt vector
1183 addreses. Used by bugapi to establish its trap instructions.
1184
1185 * debug.h: Add a new macro DITRACE for tracing device instances.
1186
1187 * debug.h: Extend the DTRACE macro so that it can also tests for
1188 device specific tracint.
1189
1190 * device.h, device.c (device_trace): Add method to determine
1191 device specific tracing.
1192 (device_init_address): Set the devices tracing level.
1193
1194Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1195
1196 * tree.h, tree.c (tree_device): New files - separate out the
1197 device parser and other tree operations from the device.
1198
1199 * inline.h, inline.c (INLINE_TREE): Add.
1200 * device.h, device.c (device_tree_add_parsed): Delete.
1201 * Makefile.in (tree.c): Add rules for new file.
1202 * Makefile.in: Better order the emul_* files.
1203
1204 * emul_generic.c (emul_add_tree_hardware): Update.
1205 * emul_netbsd.c (emul_netbsd_create): Update.
1206 * emul_unix.c (emul_unix_create): Ditto.
1207 * emul_chirp.c (emul_chirp_create): Ditto.
1208 * emul_bugapi.c (emul_bugapi_create): Ditto.
1209 * psim.c (psim_tree): Ditto.
1210 * hw_init.c: Ditto.
1211
1212 * emul_generic.h: Include tree.h
1213 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1214
1215 * device.h, device.c (device_root): New function - returns the
1216 root of the tree.
1217 * corefile.c: Use.
1218
1219 * device.h, device.c (device_clean): New function, clean up device
1220 ready for next simulation run. This includes things like deleting
1221 interrupt edges and properties created during the simulation and
1222 also scrubbing any pre-defined properties.
1223 * tree.c (tree_init): Use.
1224
1225 * device.h, device.c (device_init_static_properties): New
1226 function. Initialize any static predefined properties. By static
1227 we mean those that have values that can be determined before the
1228 device tree initialization has started.
1229 * tree.c (tree_init): Use.
1230
1231 * device.h, device.c (device_init_address): Add code to
1232 check/verify the devices #address-cells and #size-cells.
1233 (device_add_integer_property): Delete corresponding code.
1234 (device_nr_address_cells, device_nr_data_cells): Check for
1235 property when returning value.
1236
1237 * device.h, device.c (device_init_runtime_properties): New
1238 function. Initialize those properties that are not `static'. At
1239 present the only such property is the ihandle.
1240 * tree.c (tree_init): Use.
1241
1242 * device.h, device.c (reg, ranges): Rework these so that they use
1243 an array of the fundamental type - single reg or single range
1244 entry.
1245
1246 * device.h, device.c (device_add_ihandle_runtime_property):
1247 Re-implement the adding of an ihandle during tree construction so
1248 that it better fits in with device initialization.
1249
1250Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1251
1252 * device.h, device.c (device_ioctl): Add additional argument -
1253 request - so that the caller must always specify the type of
1254 the ioctl request.
1255
1256 * device_table.h: Update.
1257 * hw_trace.c (hw_trace_ioctl): Ditto.
1258 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1259 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1260 * psim.c (psim_options): Ditto.
1261
1262Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1263
1264 * BUGS: Updated a bit.
1265
1266Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1267
1268 * hw_opic.c: Finish - third round.
1269
1270Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1271
1272 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1273 reg index.
1274 (hw_glue_io_write_buffer_callback): Ditto.
1275
1276Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1277
1278 * events.c (event_queue_process): Was incorrectly consuming future
1279 events on the queue when they should be left alone.
1280
1281 * debug.h, debug.c (events): Add support for event queue tracing.
1282 * events.c: Add event tracing.
1283
1284 * debug.h, debug.c: Order device trace options.
1285
1286Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1287
1288 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1289 warnings generated by GCC.
1290
1291Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1292
1293 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1294 PCI devices which are little-endian.
1295
1296 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1297
1298Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1299
1300 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1301 so that it is implementing a 1-1 address map.
1302
1303 * emul_generic.c (emul_add_tree_hardware): Adjust.
1304
1305 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1306 a default.
1307
1308Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1309
1310 * device.c (split_find_device): Be tolerant of missing unit
1311 addresses.
1312
1313Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1314
1315 * basics.h (port_direction): New type, specify the direction of
1316 any `port'.
1317
1318 * device.h, device.c (device_interrupt_decode): Include
1319 specification of port direction in operations.
1320 (device_interrupt_encode): Ditto.
1321
1322 * device_table.h: Add a direction field to the interrupt port
1323 table.
1324
1325 * device.c (device_tree_add_parsed): Specify port direction.
1326
1327Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1328
1329 * hw_opic.c: Finish - second round.
1330
1331Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1332
1333 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1334 to be specified as an array which allows 64bit addresses.
1335
1336 * device.c (device_find_integer_array_property): New function.
1337 Simplify the querying of elements of an integer array.
1338 (device_add_integer_property, device_find_integer_property):
1339 Update to correctly use the cell type.
1340
1341 * vm.c (om_unpack_sr): Clarify shifting comment.
1342 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1343
1344 * emul_chirp.c (emul_chirp_create): Initialize the segment
1345 registers.
1346
1347 * vm.c (om_effective_to_virtual): Trace segment register use.
1348
1349 * hw_htab.c (htab_map_page): Print out the pteg base address to
1350 simplify cross checking between vm and the htab.
1351 (htab_decode_hash_table): Use device_error instead of error.
1352 (htab_map_page): Ditto.
1353 (htab_dma_binary): Ditto.
1354 (htab_map_binary): Ditto.
1355 (htab_init_data_callback): Ditto.
1356
1357Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1358
1359 * interrupts.h: Clarify what the optional instruction program
1360 interrupt is - a subset of illegal instruction program interrupt.
1361
1362 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1363 optional instruction program interrupt is.
1364 (program_interrupt): For OEA mode, as per spec, generate an
1365 illegal instruction program interrupt when an optional instruction
1366 is encountered.
1367
1368 * gen-semantics.c (print_semantic_body): Delete code
1369 differentiating between an unimplemented floating point and normal
1370 instruction. Instead, such a case can be handled explicitly.
1371
1372 * ppc-instructions (store floating-point as integer word indexed):
1373 Mark as optional.
1374 (Floating Convert to Integer Doubleword): Make the floating point
1375 assist interrupt explicit.
1376 (Floating Convert To Integer Doubleword with round towards Zero):
1377 Ditto.
1378 (Floating Convert To Integer Word): Ditto
1379 (Move From FPSCR): Ditto.
1380 (Move to Condition Register from FPSCR): Ditto.
1381 (Move To FPSCR Fields): Ditto.
1382 (Move To FPSCR Field Immediate): Ditto.
1383 (Move To FPSCR Bit 0): Ditto.
1384 (Move To FPSCR Bit 1): Ditto.
1385
1386Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1387
1388 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1389 breaking up transfers.
1390
1391 * corefile.c: Adjust arguments so that the client server
1392 relationship is clarified.
1393
1394 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1395 to a PCI bus.
1396
1397 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1398 looking for things like overflow/underflow.
1399
1400Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1401
1402 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1403 PAL device instead of the IOBUS. The disk must be attached to a
1404 logical bus.
1405
1406 * hw_disk.c (hw_disk_init_address): Just use the unit address
1407 directly in the attach - the rest isn't relevant.
1408
1409Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1410
1411 * configure.in (sim-hardware, sim-packages): Allow additional
1412 hardware and packages to be prefixed as well as appended.
1413
1414 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1415 packages when building them. Consequently, a user can override a
1416 standard device by prefixing their own version.
1417
1418 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1419
1420Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1421
1422 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1423 reads and writes.
1424 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1425 (mon_print_info): Correct typo regarding # of unaligned reads and
1426 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1427 are.
1428
1429Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1430
1431 * configure.in (AC_CHECK_FUNCS): Add access.
1432 * config{.in,ure}: Regenerate.
1433
1434 * emul_unix.c (do_unix_nop): System call that always succeeds.
1435 (do_unix_access): Support access system call.
1436 (solaris_descriptors): Make sigaltstack and sigaction nops.
1437 ({solaris,linux}_descriptors): Add support for access.
1438
1439Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1440
1441 * Makefile.in (clean): Move config.log to distclean.
1442
1443Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1444
1445 * corefile-n.h (core_map_write_N): Improve abort messages.
1446
1447 * device.h, device.c (device_attach_address): Remove unused name
1448 parameter.
1449 (device_detach_address): Ditto.
1450 * device_table.h, device_table.c: Update.
1451 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1452 * hw_nvram.c (hw_nvram_init_address): Ditto.
1453 * hw_memory.c (hw_memory_init_address): Ditto.
1454 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1455 (hw_vm_attach_address): Ditto.
1456 (hw_vm_add_space): Ditto.
1457 * hw_init.c (update_for_binary_section): Ditto.
1458 * hw_core.c (hw_core_attach_address_callback): Ditto.
1459
1460 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1461 configurable parent busses.
1462
1463Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1464
1465 * device_table.c (generic_device_size_to_attach_size): Provide
1466 limited support for multi-cell sizes.
1467 (generic_device_address_to_attach_address): Ditto for addresses.
1468
1469Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1470
1471 * device.c (device_add_integer_property): Check for setting of
1472 #address-cells and #size-cells properties. For these, update the
1473 corresponding device values.
1474 (device_nr_address_cells, device_nr_size_cells): Use the value
1475 from the device instead of the property.
1476
1477 * hw_core.c: Use generic address and size conversions for the top
1478 bus.
1479
1480 * hw_memory.c (hw_memory_init_address): Tolerate case where
1481 #address and #size cells is greater than 1.
1482
1483 * device.c (device_tree_print_device): Clean out printing of
1484 properties.
1485
1486 * device.c (split_device_specifier): Don't detect comments here -
1487 "#" can be a valid prefix - eg #size-cells.
1488
1489 * psim.c (psim_merge_device_file): Suppress comments and blank
1490 lines here.
1491
1492 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1493 pal unit address. Add the property /#address-cells to the root of
1494 the tree.
1495
1496 * device.c (device_template_create_device): Check that the unit
1497 address was successfully parsed.
1498
1499 * device_table.c (generic_device_unit_decode): Rewrite to better
1500 handle multi-cell addresses.
1501 (generic_device_unit_encode): Ditto.
1502
1503 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1504 longer need the explicit array type - the parser takes care of it.
1505
1506 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1507 to keep GCC happy.
1508
1509Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1510
1511 * hw_ide.c: New file. Model of a basic IDE interface attached to
1512 a PCI bus.
1513
1514 * configure.in (hardware): Add the ide device to the default
1515 configuration.
1516 * configure: Regenerate.
1517
1518 * debug.h, debug.c: Add tracing option for the IDE device.
1519
1520Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1521
1522 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1523
1524 * configure.in (hardware): Add the phb to the list of devices to
1525 build by default.
1526
1527Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1528
1529 * hw_com.c: Review description.
1530 * hw_disk.c: Ditto.
1531 * hw_htab.c: Ditto.
1532 * hw_eeprom.c: Ditto.
1533 * hw_init.c: Ditto.
1534 * hw_cpu.c: Ditto.
1535
1536 * hw_com.c: Update event handling.
1537
1538 * hw_disk.c: Implement tracing.
1539
1540Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1541
1542 * device_table.c (generic_device_init_address): Use
1543 assigned-addresses property in preference to any other reg
1544 property.
1545
1546Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1547
1548 * device.h, device.c (device_find_ranges_property): New function.
1549 Simplify the manipulation of "ranges" properties.
1550
1551 * device.c (device_add_parsed): Extend to include support for the
1552 ranges property.
1553
1554 * device.c (device_add_parsed): Add assigned-addresses to the list
1555 of reg type properties.
1556
1557 * device.c (device_tree_print_device): Add code to format and
1558 print a ranges property.
1559
1560 * device.h, device.c (device_nr_address_cells,
1561 device_nr_size_cells): New functions. Determine the values of the
1562 standard properties #address-cells and #size-cells. Both of which
1563 are optional and have default values of two and one respectfuly.
1564 Previously, code that determined #address-cells was incorrectly
1565 using a value of one.
1566
1567Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1568
1569 * debug.h, debug.c: Sort debug options, Add entries for the
1570 comming PHB device.
1571
1572Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1573
1574 * ppc-instructions (Floating Select): Add support for fsel unless
1575 model is 601. Allow user to filter out instruction unless -Fs is
1576 passed to igen.
1577 (Store Floating-Point as Integer Word Indexed): Raise optional
1578 instruction program abort. Allow user to filter out instruction
1579 unless -Fs is passed to igen.
1580 (Floating Square Root{, Single}): Ditto.
1581 (Floating Reciprocal Estimate Single): Ditto.
1582 (Floating Reciprocal Square Root Estimate): Ditto.
1583
1584 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1585 to igen.
1586 * configure: Regenerate.
1587
1588 * interrupts.h (program_interrupt_reasons): Add
1589 optional_instruction_program_interrupt.
1590
1591 * interrupts.c (program_interrupt): Call error with more detailed
1592 information on program interrupts, particularly in user mode. Add
1593 support for optional_instruction_program_interrupt.
1594
1595Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1596
1597 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1598
1599 * debug.h, debug.c (trace_glue_device): Add tracing support for
1600 the interrupt glue logic device.
1601
1602 * configure.in (hardware): Add glue device.
1603 * configure: Regenerate.
1604
1605Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1606
1607 * device.c (device_tree_parse_integer_property): New function,
1608 parse a list of integers as an array property.
1609 (device_tree_add_parsed): Call it.
1610
1611 * device.c (device_tree_parse_string_property): New function,
1612 parse a list of strings as a string property (with embeded
1613 null's). For moment, don't try to implement a complext string
1614 parser.
1615 (device_tree_add_parsed): Call it.
1616
1617Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1618
1619 * hw_opic.c: New file. OpenPIC interrupt controller.
1620
1621 * configure.in (hardware): Add opic device.
1622 * configure: re-generate.
1623
1624 * hw_pic.c: Delete, replaced with hw_opic.c.
1625
1626 * debug.h, debug.c: Add debug option for OpenPIC device. -
1627 opic-device.
1628
1629Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1630
1631 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1632 now the file that does all the inlining.
1633
1634 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1635 library source code that could be involved in an inlining. Make
1636 idecode.o only dependant on the inlined library source code.
1637
1638 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1639 is compiled last.
1640
1641 * std-config.h (DEVICE_INLINE): Only inline locals when the
1642 default is to inline.
1643
1644Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1645
1646 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1647 binary.
1648
1649 * hw_htab.c (htab_map_binary): Depending on the value of the
1650 load-base, either map the program in as a contiguous section or as
1651 separate sections controled by th binaries lma values.
1652 (htab_init_data_callback): Ditto.
1653
1654Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1655
1656 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1657
1658 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1659 struct. Don't require the load_base field to be present - just
1660 issue warning - it is a recent addition.
1661 (emul_chirp_create): Support both virtual and physical modes.
1662
1663 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1664 property so that any arguments specified on the command line can
1665 be passed on to user programs.
1666
1667 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1668 argument passing to the pseudo device stack.
1669
1670Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1671
1672 * device.c (device_error): Make it more tolerant to incomplete
1673 devices.
1674
1675 * hw_init.c (hw_data_init_data_callback): Extend the data device
1676 so that it can perform initialization operations either dma or a
1677 more complex instance open, seek, write operation.
1678 * hw_init.c: Update the description of the data device to reflect
1679 this.
1680
1681Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1682
1683 * device.c (device_event_queue_schedule,
1684 device_event_queue_deschedule, device_event_queue_time): Have the
1685 device object export the event operations. Making these available
1686 from the device object should hopefully simplify writing device
1687 models.
1688
1689Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1690
1691 * configure.in (sim-hardware): Add eeprom device to default build.
1692
1693 * hw_eeprom.c: Rewrite so it works.
1694
1695 * debug.h, debug.c: Add tracing support for the eeprom and com
1696 devices.
1697
1698Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1699
1700 * debug.h: Add disklabel-package and disk-device trace options.
1701 debug.h (PTRACE): Add macro to simplify tracing in packages.
1702
1703Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1704
1705 * device.c (device_create_instance_from): Tighten up loop
1706 searching for device instances.
1707 (device_instance_delete): Ditto.
1708 (device_instance_delete): Only leaf instances need to be removed
1709 from a devices list of active instances.
1710
1711Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1712
1713 * hw_disk.c: Add the cdrom as an alias.
1714
1715 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1716 delete the raw disk instance while we're at it.
1717
1718 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1719 little bit more - still a long way to go.
1720
1721 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1722 new head position after a read or write.
1723
1724Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1725
1726 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1727 the internal buffer.
1728
1729Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1730
1731 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1732 in the correct order.
1733
1734 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1735 the address of the first stack argument passed in from the client
1736 program.
1737
1738Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1739
1740 * words.h: Add new types signed_cell and unsigned_cell which
1741 correspond to the signed and unsigned IEEE 1275 memory locations.
1742 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1743 memory cell, replace uses of unsigned32 with unsigned_cell.
1744 * device_table.h: Ditto.
1745
1746 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
1747 convert cell sized values to from big endian.
1748 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
1749 use these new macros.
1750
1751Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1752
1753 * device.c (device_tree_add_parsed): Detect and report an
1754 interrupt being attached to an invalid device. Was dumping core.
1755
1756Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1757
1758 * device.h, device.c (device_address_to_attach_address,
1759 device_size_to_attach_size): New functions. Convert a devices
1760 unit address or unit size structure into a form suitable for
1761 passing on to the attach and detach functions.
1762 * device_table.h: Add extra methods to device table.
1763
1764 * device.h, device.c (device_find_reg_property): New function.
1765 For a reg type property, return the selected address + size
1766 tupple, along with a positive success status. Add a reg_property
1767 to the list of property types.
1768 * (device_tree_add_parsed): Make array properties with the name
1769 reg or alternate-reg of type reg_property.
1770
1771 * hw_memory.c (hw_memory_init_address): Rewrite to use new
1772 find_reg_property method.
1773 * hw_nvram.c (hw_nvram_init_address): Ditto.
1774
1775 * device.c (device_tree_print_device): Add code to print out a reg
1776 property.
1777
1778 * device_table.c (generic_device_address_to_attach_address,
1779 generic_device_size_to_attach_size ): New functions. Generic
1780 functions for converting between unit and attach address or size.
1781
1782 * device_table.c (generic_device_init_address): Rewrite to use the
1783 new find_reg and address convert functions. Look for both reg and
1784 alternate-reg properties.
1785
1786Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1787
1788 * hw_com.c: New file. A '550 serial device that can quickly be
1789 attached to any bus.
1790 * configure.in (enable-sim-hardware): Add the com device.
1791 * configure: re-generate.
1792
1793Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1794
1795 * device.c (device_tree_verify_reg_unit_address): New
1796 function. Check that the unit address as specified by the reg
1797 property correctly corresponds to any unit address previously
1798 specified by the devices name.
1799 (device_tree_add_parsed): When adding a reg property, verify
1800 that the unit-address - first value of property - correctly
1801 matches any previous value specified when creating the device
1802 node.
1803
1804Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1805
1806 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
1807
1808Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1809
1810 * device.c (device_full_name): Cast strdup to char *, since AIX
1811 3.2.5 mistakenly declares the function to be const char *.
1812 (device_create_from): Ditto.
1813 (device_create_instance_from): Ditto.
1814 (device_add_property): Ditto.
1815
1816Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1817
1818 * debug.c (trace_option): For -t all, do not set the
1819 trace_dump_device_tree flag, so that the simulator is run.
1820
1821Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1822
1823 * Makefile.in (options.o): Depend on defines.h.
1824 (defines.h): New rule, go through config.h and make strings of all
1825 of the #define HAVE_xxx macros.
1826 (distclean): Remove defines.h.
1827
1828 * options.c (print_options): Print whether many of the
1829 configuration macros are defined.
1830
1831 * main.c (main): If -t options and no filename, just print the
1832 options, and don't print the usage message.
1833
1834Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1835
1836 * configure.in: Test whether /dev/zero works on the system, and if
1837 it does, define HAVE_DEVZERO.
1838 * configure: Regenerate.
1839
1840 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
1841 if we don't have a working /dev/zero on the system.
1842
1843 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
1844 defined, don't add disk support.
1845 (emul_bugapi_do_diskio): Ditto.
1846 (emul_bugapi_instruction_call): Ditto.
1847
1848Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1849
1850 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
1851 defined, make sure HAVE_TCGETATTR is #undef'ed
1852
1853Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1854
1855 * std-config.h (REGPARM): Only define REGPARM attributes if using
1856 GNU C. Test for __i686__ in case GCC ever defines it. If not on
1857 a x86 platform, define REGPARM as nothing.
1858
1859 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
1860 also.
1861
1862Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1863
1864 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
1865 goto_switch_gen.
1866 * gen-idecode.c: Ditto.
1867
1868 * gen-idecode.c (print_idecode_table): Comment out check for
1869 switch/table combination until a bug with it is fixed.
1870
1871 * ppc-opcode-goto: New file. Like complex and flat but uses
1872 goto-switch instead of padded-switch for the tables.
1873
1874 * gen-idecode.c (print_goto_switch_name): New function.
1875 (print_goto_switch_table_leaf): New function.
1876 (print_goto_switch_break): New function.
1877 (print_goto_switch_table): New function. Prints a jump table
1878 that can be jumped into instead of a switch statement.
1879
1880 * gen-idecode.c (*switch_*): As an option output a switch that is
1881 implemented using a jump table but only if the switch is not
1882 boolean.
1883
1884Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1885
1886 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
1887 * configure: Regenerate.
1888
1889 * device.c (device_instance_call_method): Fixup format message in
1890 error case. Return 0 in case of error to shut up compiler
1891 warnings.
1892
1893Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1894
1895 * device_table.c (generic_device_unit_decode): Require a comma
1896 between elements of a unit address.
1897
1898 * device.c (device_tree_print_device): For reg, alternate-reg and
1899 ranges properties use special print functions.
1900 (device_print_ranges_property): Print formatted ranges property.
1901 (device_print_reg_property): Print formatted reg property.
1902
1903Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1904
1905 * device.c (device_tree_add_parsed): For reg, ranges and
1906 alternate-reg properties use a special parser.
1907 (device_tree_parse_reg_property): New function to parse a reg
1908 property.
1909 (device_tree_parse_ranges_property): New function to parse a
1910 ranges property.
1911 (device_encode_unit): Wrapper for encode_unit callback.
1912 (device_decoce_unit): Wrapper for decode_unit callback.
1913
1914Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1915
1916 * device_table.h (device_instance_callbacks): Relace the claim and
1917 release methods with a more general table mapping from method-name
1918 to method-function.
1919
1920 * device.c (device_instance_call_method): New function. Implement
1921 the OpenBoot call-method client interface. Attempts to locate the
1922 instances method in the callback table.
1923 (device_instance_claim, device_instance_release): Delete.
1924 Replaced with call-method and a lookup table.
1925
1926 * emul_chirp.c (chirp_emul_call_method): Use the new device
1927 instance call method and let that handle a client claim call.
1928
1929 * hw_htab.c (claim_memory): Wrapper function to call the memory
1930 devices "claim" method using the new device-instance call-method
1931 interface. Replaces the previous direct calls to claim.
1932 (htab_map_region): Use claim_memory.
1933 (htab_init_data_callback): Ditto.
1934
1935 * hw_memory.c (hw_memory_instance_claim): Update function
1936 interface so that it is compatible with call-method.
1937 (hw_memory_instance_release): Ditto.
1938 (hw_memory_instance_methods): New table of memory specific
1939 methods claim and release. Add to the hw_memory_callback
1940 table.
1941
1942Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1943
1944 * psim.c (psim_init): Back out of change to initial value of
1945 system->last_cpu.
1946
1947Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1948
1949 * sim_callbacks.h (sim_io_printf_filtered): Replace
1950 printf_filtered with a local simulator specific version. Add
1951 #define printf_filtered to simplify updating of existing code.
1952
1953 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
1954 sim_io_write_stderr): New functions. Read / write to the
1955 simulations stdin and stdout and stderr interfaces. Merge in code
1956 from hw_pal that previously handled async I/O.
1957 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
1958 flush_stdoutput to simplify updating of existing code.
1959
1960 * hw_pal.c (scan_hw_pal, write_hw_pal,
1961 hw_pal_instance_write_callback): Use the new sim_io functions.
1962
1963 * main.c: Implement standalone versions of the new sim_io
1964 functions. Include support for async I/O.
1965 * sim_calls.c: Ditto. This time using the gdb callback table.
1966
1967 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
1968 stdio configuration so that it works in the same way as the rest
1969 of the simulation.
1970 * psim.c (psim_create): Initialize current_stdio from the device
1971 tree.
1972 * emul_generic.c (emul_add_tree_options): Enter a default value
1973 for use-stdio in the device tree.
1974
1975Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1976
1977 * gen-idecode.c (print_jump): Was always generating a jump back to
1978 idecode. Only necessary at tail of semantic code.
1979 (print_jump): Was always setting the processor's cia, even during
1980 startup when the processor was still undefined.
1981 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
1982 not just equal.
1983
1984 * options.c (print_options): Add printing of WITH_REGPARM and
1985 WITH_STDCALL.
1986
1987 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
1988 (disabled) values if not defined.
1989
1990Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1991
1992 * ppc-cache-rules (cache): Change RS and RB to cache instead of
1993 compute. The block move instructions use them.
1994
1995 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
1996 register.
1997 (CR_FIELD): New macro, extract specific CR register.
1998 (FPSCR_FIELD): New macro, extract specific FPSCR register.
1999
2000 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2001
2002 * bits.c (INSERTED): Covert INSERTED macro into a function.
2003 (EXTRACTED): Conditionally compile on correct bit size macro.
2004
2005 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2006
2007 * ppc-instructions: With hints from Paul Martin, type in missing
2008 some instruction semantics. Leave disabled for the moment.
2009 (Load Multiple Word): Ditto.
2010 (Store Multiple Word): Ditto.
2011 (Load String Word Immediate): Ditto.
2012 (Load String Word Indexed): Ditto.
2013 (Store String Word Immedate): Ditto.
2014 (Store String Word Indexed): Ditto.
2015 (Move to Condition Register from XER): Ditto.
2016 (Move From Condition Register): Ditto.
2017 (Move From FPSCR): Ditto.
2018 (Move to Condition Register from FPSCR): Ditto.
2019 (Move To FPSCR Field Immediate): Ditto.
2020 (Move To FPSCR Fields): Ditto.
2021 (Move To FPSCR Bit 0): Ditto.
2022 (Move To FPSCR Bit 1): Ditto.
2023
2024Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2025
2026 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2027 inlining of semantic functions from DEFAULT_INLINE. Almost all
2028 configurations call the semantic code via a pointer so there is
2029 little benefit.
2030
2031 * std-config.h (ICACHE_INLINE): Ditto.
2032
2033Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2034
2035 * configure.in (sim_regparm): Add configuration option for
2036 enabling GCC's regparm attribute.
2037 * (sim_stdcall): Add configuration option for enabling GCC's
2038 stdcall attribute.
2039
2040 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2041 compilations.
2042 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2043
2044 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2045 that it can include __stdcall__ function attribute.
2046
2047Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2048
2049 * options.c (print_options): Include SUPPORT_INLINE in information
2050 dump.
2051
2052 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2053 termination test if creating idecode_run_until_stop. Push the
2054 loop termination test back into each alternative branch.
2055
2056Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2057
2058 * gen-icache.c (print_icache_function): Have the cache function
2059 always update the cache_entries semantic and address fields.
2060
2061 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2062 when generating illegal instructions. This was commented out
2063 which is a hangover from looking a at switch statements generated
2064 using indirect jumps.
2065
2066Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2067
2068 * igen.c (print_my_defines): Replaces print_define_my_index.
2069 Print both a definition for MY_INDEX and MY_PREFIX.
2070 * gen-icache.c (print_icache_function): Adjust.
2071 * gen-idecode.c (print_jump_insn): Adjust.
2072 * gen-semantics.c (print_c_semantic): Adjust.
2073
2074 * gen-support.c (gen_support_h): Add optional include to created
2075 support.h so that, like cpu, it is optionally inlined for all
2076 modules that include it.
2077 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2078 same as cpu.[hc].
2079
2080 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2081 name for a lable and then branch to it.
2082
2083 * ppc-instructions (convert_to_integer, Floating Round to
2084 Single-Precision, Floating Convert from Integer Doubleword): Use
2085 LABEL and GOTO instead of the recently added switch statements.
2086
2087Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2088
2089 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2090 generated code.
2091
2092Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2093
2094 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2095 * (--enable-sim-inline): Reorder patern matching of arguments so
2096 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2097
2098 * configure: rebuild.
2099
2100Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2101
2102 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2103 configuration options. Let the user specify the packages or
2104 hardware devices that are to be included in the build. Makes it
2105 possible for user packages to be specified.
2106
2107 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2108 hardware instead of checking it using ls. configure.in should
2109 have taken care of any problems.
2110 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2111
2112Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2113
2114 * psim.c (psim_options): Enter the argument to the memory size
2115 option directly into the device tree. Was using atol() which is
2116 dangerously non portable.
2117
2118Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2119
2120 * configure.in (icache): Extend icache flag to include an insn
2121 option. If specifyed the insn - aka instruction - is included in
2122 the instruction cache. Make this the default.
2123 * configure: re-generate.
2124
2125 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2126 that the instruction should be included in the icache.
2127
2128 * gen-icache.c (print_icache_body): If enabled, output code to put
2129 the instruction into the icache.
2130 (print_icache_struct): If enabled, add insn to the icache struct.
2131
2132Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2133
2134 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2135 generators.
2136
2137Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2138
2139 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2140 the strict-alignment option when hardwired for non-strict
2141 alignment.
2142
2143Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2144
2145 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2146
2147 * ppc-instructions: Adjust so that references are to MY_INDEX and
2148 not my_index.
2149
2150Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2151
2152 * gen-idecode.c: Output the complete run_until_stop function
2153 instead of just the code to handle a single instruction issue.
2154 * : Have the generated idecode.c include inline.c (instead of psim.c).
2155
2156 * std-config.h: Change psim.c so that it isn't inlined (as this is
2157 no longer needed).
2158
2159 * psim.c (run_until_stop): Delete the old run_until_stop function
2160 instead calling the idecode_run and idecode_run_until_stop
2161 functions that gen-idecode.c is now creating.
2162
2163Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2164
2165 * dgen.c: Maintenance - update to use new features found in lf.c.
2166
2167 * filter_filename.c (filter_filename): Maintenance - make the
2168 string constant.
2169
2170Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2171
2172 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2173 eliminate trace statements.
2174
2175 * debug.c: Change trace format so that it is consistent
2176 (file:line-nr) with CC's error output.
2177
2178 * gen-itable.c (itable_c_insn): Add the source file name and
2179 source line number to the instruction's informational entry.
2180
2181 * debug.c (ITRACE): Use the itable (and my_index) to get the
2182 current instructions name and source line number.
2183
2184 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2185 match new interface.
2186
2187 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2188 corresponding call to ITRACE so that it still matches.
2189
2190 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2191 of ITRACE. The CPP line directives would have previously set the
2192 line-nr and file name so ITRACE isn't needed.
2193
2194Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2195
2196 * gen-idecode.c (print_jump_until_stop_body): New function and
2197 idecode generation option. Instead of generating and calling
2198 separate functions containing the semantic and icache code
2199 generate a single monolythic function and use goto's (and GCC's
2200 indirect jump) to move between code blocks.
2201
2202 * Makefile.in: Add sim_jump flag to those passed to igen.
2203
2204 * configure.in: New option --enable-sim-jump (default disabled)
2205
2206 * ppc-instructions: Eliminate any uses of labels and goto's.
2207 These result in duplicate declarations when a single flat function
2208 is being create.
2209
2210 * ppc-opcode-jump: New file. Set of opcode rules useful when
2211 testing jumping idecodes.
2212
2213Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2214
2215 * gen-idecode.c: Optionally include the semantic code for an
2216 instruction in the function that is doing the decoding.
2217
2218 * igen.c: Add option (-C) to generate semantics in the instruction
2219 decode functions.
2220
2221 * configure.in (--enable-sim-icache): Accept an option list such
2222 as 1024,define. Add a new choice to the list - semantic - which
2223 will cause igen to generate instruction decode functions that
2224 include the corresponding semantic code.
2225
2226Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2227
2228 * configure.in: New option --enable-sim-line-nr (default enabled).
2229 Enable/disable the inclusion of CPP line directives in the
2230 generated files. Such directives refer back to the source files
2231 used when generating the simulator code.
2232
2233 * Makefile.in (sim_line_nr): Pass to igen.
2234
2235Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2236
2237 * igen.c (main): Revamp the options so that more letters are
2238 available.
2239
2240 * configure.in: Adjust to match igen's revamped options
2241
2242Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2243
2244 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2245 that they use the same technique as igen (ie a dummy targets
2246 tmp-pk and tmp-hw are created).
2247
2248Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2249
2250 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2251
2252Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2253
2254 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2255 out the loading of each of the tables from the rest of igen.
2256 * Makefile.in: Adjust.
2257 * igen.c: Adjust.
2258
2259 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2260 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2261 code creating each separate set of generated files.
2262 * Makefile.in: Adjust.
2263 * igen.c: Adjust.
2264
2265 * gen-support.[ch]: New files. Output the support functions (found
2266 in the ppc-instructions file) into a separate file.
2267 * Makefile.in: Add.
2268 * inline.h, inline.c: Add.
2269 * std-config.h: Add.
2270
2271 * ld-cache.c: Re-design the cache table format.
2272 * ppc-cache-rules: Update to new format.
2273
2274 * ld-decode.c: Re-design the decode table format.
2275 * ppc-opcode-simple: Update to new format
2276 * ppc-opcode-complex: Ditto
2277 * ppc-opcode-flat: Ditto
2278
2279 * filter.h, filter.c: New files. Separate the opcode filter table
2280 reading code from the rest of igen.c. Re-design the filter so that
2281 it works inclusivly not exclusivly.
2282 * igen.c: Remove the opcode filter table loading code.
2283 * Makefile.in (filter.o): Adjust
2284 * configure.in: Adjust filter flag so that default includes 32bit
2285 and floating point.
2286 * ppc-instructions: Clean up filter fields so that only in use
2287 entries are specifed (ie delete `be').
2288
2289 * misc.c (name2i, i2name): New function. Map between a string and
2290 an integer value.
2291
2292Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2293
2294 * sim_calls.c (sim_close): If simulator not created, skip printing
2295 of run information.
2296
2297Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2298
2299 * registers.c (register_description): Typo, insns not insn.
2300
2301 * ppc-instructions (model_get_number_of_stalls): New model function,
2302 returns number of stalls for the specified processor.
2303 * psim.c (psim_read_register): Add call to new function
2304 model_get_number_of_stalls().
2305
2306 * ppc-instructions (model_get_number_of_cycles): New model function,
2307 returns number of stalls for the specified processor.
2308 * psim.c (psim_read_register): Add call to new function
2309 model_get_number_of_cycles().
2310
2311Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2312
2313 * device_table.h: Don't pass the parent device into a devices
2314 create function. This makes the create function consistent with
2315 the documentation.
2316 * device.c (device_template_create_device): Ditto
2317 * hw_pal.c (hw_pal_create): Ditto
2318 * hw_core.c (hw_core_create): Ditto
2319 * hw_vm.c (hw_vm_create): Ditto
2320 * hw_disk.c (hw_disk_create): Ditto
2321 * hw_nvram.c (hw_nvram_create): Ditto
2322 * hw_memory.c (hw_memory_create): Ditto
2323 * hw_cpu.c (hw_cpu_create): Ditto.
2324
2325 * device.c (split_find_device): Allow a null initial parent device.
2326 (device_template_create_device): Ditto.
2327
2328 * device.c (device_create_from): Make local (static) only used
2329 within device.c.
2330 * device_table.h: typedef device_callbacks moved here (from
2331 device.h) where it belongs.
2332
2333 * hw_core.c: New file. Implements just the core device using the
2334 core object.
2335
2336 * corefile.c: Moved all core device functions into the new
2337 hw_core.c file. core_device_create() disapears.
2338
2339 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2340 core device.
2341
2342Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2343
2344 * hw_init.c: Correct typo in comment.
2345
2346 * corefile.c (core_init): Remove any remaining references to a
2347 default map.
2348 (core_map_find_mapping): Ditto.
2349
2350Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2351
2352 * corefile.c (core_init): Make function global so that other
2353 devices are able to use the full core object.
2354
2355 * corefile.c (core_create, core_from_device): Break core_create
2356 into two functions. The first creates a core object, the second
2357 returns the core object associated with a core device.
2358
2359 * corefile.c (core_device_create): Use core_create to make the
2360 core object.
2361
2362 * psim.c (psim_create): Use core_from_device() instead of
2363 core_create().
2364
2365 * device.c (device_template_create_device): Make static as only
2366 needed by functions internal to device.c.
2367
2368Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2369
2370 * ppc-opcode-test-2: Remove description of fields.
2371 * ppc-opcode-complex: Ditto
2372 * ppc-opcode-flat: Ditto
2373 * ppc-opcode-simple: Ditto
2374 * ppc-opcode-stupid: Ditto
2375 * ppc-opcode-test-1: Ditto
2376 * ppc-cache-rules: Ditto
2377
2378 * igen.c: Add description of files as a comment at the front.
2379
2380Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2381
2382 * configure.in: Check for whether the termios and termio
2383 structures are really defined, and whether or not, they define the
2384 c_line field.
2385 * configure: Regenerate.
2386
2387 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2388 configure.
2389
2390 * emul_unix.c: Various changes to allow for building on systems
2391 with different termio and termios structures. If host has both
2392 termio and termios, just use termios. No longer include
2393 sys/ioctl.h.
2394
2395Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2396
2397 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2398 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2399 (docdir): Removed.
2400 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2401 (AC_PROG_INSTALL): Added.
2402 * configure: Rebuilt.
2403
2404Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2405
2406 * corefile.h: Rewrite documentation so that it can be extracted and
2407 converted into texinfo (and hence ready for translation into html,
2408 tex or nroff).
2409 * device.h: Ditto
2410
2411Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2412
2413 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2414
2415Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2416
2417 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2418 is the source of SEEK_SET.
2419
2420Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2421
2422 * psim.c (psim_options): Correct type of dummy arguments being
2423 passed to a device_ioctl call.
2424
2425 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2426 (write_stack_arguments): Ditto.
2427 * hw_trace.c: Instance callback entry no longer a table.
2428
2429Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2430
2431 * emul_unix.c (do_unix_umask): Cast printf argument.
2432 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2433
2434Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2435
2436 * hw_init.c (update_for_binary_section): Abort if we find an
2437 .interp section, which indicates the need for shared libraries to
2438 be loaded.
2439
2440Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2441
2442 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2443 for time, gettimeofday, and getrusage system calls.
2444 ({solaris,linux}_descriptors): Add new system calls.
2445 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2446 (do_get{,p}pid): Use pic_t types.
2447
2448 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2449 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2450 * config{.in,ure}: Regenerate.
2451
2452Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2453
2454 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2455 `ppc-elf' and `ppc-xcoff' for the stack-type.
2456 * emul_unix.c (emul_unix_create): Ditto.
2457 * emul_bugapi.c (emul_bugapi_create): Ditto.
2458 * hw_init.c: Reconize the new names.
2459
2460 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2461 call is used (no system parameter).
2462
2463Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2464
2465 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2466 call emulations.
2467
2468 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2469 (os_emul.o): Depend on emul_unix.h.
2470 (emul_unix.o): New dependency.
2471
2472 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2473 alignment to 0, which means use appropriate alignment for mode.
2474 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2475 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2476 * config.in: Regenerate.
2477 * configure: Regenerate.
2478
2479 * emul_generic.c (emul_write2_status): New function to return
2480 results in r3 and r4 for Solaris system calls.
2481 (emul_do_system_call): If the system call is not support, but
2482 there is a string for the system call name, print out the string
2483 instead of the system call number.
2484
2485 * emul_generic.h (emul_write2_status): Declare it.
2486
2487 * emul_netbsd.c: Use /* */ around comment on #endif.
2488
2489 * os_emul.c: Include emul_unix.h.
2490 (os_emulations): Add emulations for Solaris, and Linux.
2491
2492 * psim.c (psim_usage): Add message about solaris, linux
2493 emulations.
2494
2495Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2496
2497 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2498
2499 * README: Correct PSIM's title
2500
2501Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2502
2503 * basics.h: New global type object_disposition, used to indicate
2504 the status of objects when things are restarted.
2505
2506Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2507
2508 * device_table.h: Change the interrupt descriptor structure so
2509 that it includes an additional member - an upper bound on the
2510 interrupts by that name.
2511
2512 * device.c (device_interrupt_decode): Allow a range of interrupt
2513 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2514
2515 * device.c (device_tree_print_device): Include a list of valid
2516 interrupt ports when listing supported devices.
2517
2518 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2519
2520 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2521 the interrupt net so that it uses int0 .. intN.
2522
2523Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2524
2525 * device.h, device.c (device_ioctl): Drop the system argument.
2526 Devices can not obtain this using the device_system() call.
2527 * device_table.h: Adjust accordingly.
2528 * hw_*.c: Adjust accordingly.
2529 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2530 * psim.c (psim_options): Use a device_ioctl call to force the
2531 hw_trace device to update the trace options.
2532 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2533 doc accordingly.
2534
2535 * psim.c (psim_init): Re-order initialization so that the
2536 os-emulation is initialized after the device tree. Without this,
2537 os-emul's are not able to create instances or access properties
2538 that contain an instance handle.
2539
2540 * device.h, device.c (device_add_*_property): Make these functions
2541 internal to device.c. The user has access to the more generic
2542 device_tree_add_parsed function. Differentiate between the initial
2543 and current value for each property.
2544 * (clean_device_properties): New function that deletes any
2545 properties created after the start of a simulation and restores
2546 the initial value of any others (ignoring ihandles).
2547 * (init_device_properties): (Re)Initialize any properties that
2548 contain ihandles. create
2549
2550 * (device_tree_init): Include calls to clean the device tree's
2551 properties and then initialize them. Document this in the device.h
2552 file.
2553
2554Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2555
2556 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2557 interrupt even if it is not yet possible to deliver it.
2558
2559Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2560
2561 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2562 visable adjusting the arguments so that the interface is correct.
2563 (mon_print_info): Adjust calls.
2564
2565 * registers.h, registers.c (register_description): Add phony
2566 cycle, insn and stall registers.
2567
2568 * psim.c (psim_read_register): Return nr of instructions for given
2569 processor.
2570
2571Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2572
2573 * hw_htab.c: New file. Extract contents from disk_table.c.
2574 Contains a device that, during initialization will create a
2575 PowerPC htab in memory.
2576 * hw_register.c: New file. Extract contents from disk_table.c.
2577 Contains a device that, during initialization, will parse its
2578 property list and use that to initialize various processor
2579 registers (not target specific).
2580 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2581 a device that handles accesses to invalid virtual memory addresses
2582 (in user mode).
2583 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2584 devices that can initialize memory from a file.
2585 * hw_trace.c: New file. Extract contents from disk_table.c.
2586 Configure trace options from property values.
2587
2588 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2589 hw_trace.c): Add new device files.
2590
2591 * device_table.c: Remove above code, now in separate independant
2592 files.
2593
2594Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2595
2596 * hw_disk.c: New file. Disk and CDROM device.
2597
2598 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2599
2600 * pk_disklabel.c: New file. Implement the miss-named disk-label
2601 package.
2602
2603 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2604 the packages.
2605
2606 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2607 they are re-created when the makefile is updated.
2608
2609 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2610 (below the iobus) to the device tree. Include an ihandle of
2611 the disk as /chosen/disk.
2612
2613 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2614 output and (new) disk handles yet.
2615 * (emul_bugapi_init): Initialize the input, output (and just added)
2616 disk ihandles here.
2617 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2618 what I think the behavour is).
2619 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2620 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2621 though this isn't part of the spec - makes it possible for machine
2622 code to signal the aporting of a simulation run.
2623
2624 * emul_chirp.c (chirp_emul_call_method): Add support for the
2625 claim/release methods.
2626 * (chirp_emul_exit): Add an optional exit status argument to
2627 the exit method. Makes it possible for chirp emul simulations
2628 to abort upon an error.
2629 * device.h, device.c (device_instance_claim,
2630 device_instance_release): New methods for claiming and releasing
2631 memory.
2632 * hw_memory.c: add claim and release memory methods.
2633 * hw_*: Use the claim memory method when allocating physical
2634 memory.
2635
2636Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2637
2638 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2639 time when updating the clock.
2640
2641 * hw_nvram.c: Tidy up documentation
2642
2643Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2644
2645 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2646 macros to determine whether or not the appropriate st_<xxx> fields
2647 exist in the stat structure.
2648 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2649 the real basic ones like open, read, write, etc.
2650 * config{.in,ure}: Regenerate.
2651
2652 * emul_netbsd.c: Add support for missing system calls, and/or
2653 missing stat fields.
2654 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2655 might define it.
2656
2657 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2658 are not defined.
2659 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2660 F_SETFL not defined.
2661
2662Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2663
2664 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2665 host is netbsd.
2666
2667Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2668
2669 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2670 * config{.in,ure}: Regenerate.
2671 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2672 sys/ioctl.h.
2673
2674Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2675
2676 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2677 variable.
2678
2679 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2680
2681 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2682 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2683 LIBS.
2684
2685Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2686
2687 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2688 fgets to read line. If not using stdio, do a simple blocking read
2689 of len bytes.
2690
2691Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2692
2693 * Makefile.in: Correctly build simulator for build machine != host
2694 machine.
2695
2696Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2697
2698 * configure.in (--enable-hostendian): Rework so the default uses
2699 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2700 compiling.
2701 * configure: Regenerate.
2702
2703 * sim-endian.h: Add more tests for host endian to support more
2704 platforms in a cross compilation environment.
2705
2706Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2707
2708 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2709 use stdio, instead of unpended read/printf_filtered.
2710 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2711 flush stdout after writing the characters.
2712
2713 * options.c (print_options): Print out WITH_STDIO.
2714
2715 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2716 configuration variable.
2717 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2718 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2719 files to contain directory pieces.
2720
2721 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2722 should use stdio for console input.
2723 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2724
2725 * configure.in (--enable-sim-stdio): Add new switch to control
2726 whether stdio is used for console I/O.
2727 * configure: Regenerate.
2728
2729 * interrupts.c (external_interrupt): Declare it to be
2730 INLINE_INTERRUPTS, not INLINE_CPU.
2731
2732Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2733
2734 * events.c (insert_event_entry): Allow events to be scheduled
2735 *NOW* (at delta time 0). Add assertions to clarify behavour of
2736 event queue.
2737
2738 * events.c (update_time_from_event): New function. Calculates the
2739 number of ticks from the next event. Use this.
2740
2741Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2742
2743 * emul_netbsd.c (do_break): Return 0 if success (instead of
2744 adjusted break).
2745
2746 * device_table.c (vm_ioctl_callback): Don't return adjusted break
2747 (isn't needed).
2748
2749Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
2750
2751 * device_table.h: Change type of the device ioctl so that it
2752 returns an int (status).
2753 * device.h (device_ioctl): Ditto.
2754 * device.c (device_ioctl): Ditto.
2755
2756 * device_table.c (stack_ioctl_callback): Return 0 status.
2757 (vm_ioctl_callback): Ditto
2758
2759Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2760
2761 * emul_netbsd.c (do_read): Correctly set the return value.
2762 (do_getpid): Ditto.
2763 (do_getuid): Ditto.
2764 (do_geteuid): Ditto.
2765 (do_dup): Ditto.
2766 (do_getegid): Ditto.
2767 (do_getgid): Ditto.
2768 (do_sigprocmask): Ditto.
2769 (do_umask): Ditto.
2770 (do_dup2): Ditto.
2771 (do_gettimeofday): Ditto.
2772 (do_getrusage): Ditto.
2773 (do_fstat): Ditto.
2774 (do_stat): Ditto.
2775 (do_lseek): Ditto.
2776 (do___sysctl): Ditto.
2777
2778Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2779
2780 * device_table.c (vm_ioctl_callback): Don't access the processor
2781 registers directly, instead leave it to the caller to handle this.
2782
2783 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
2784 perform a break. Pass in the new break value and set the
2785 registers according to the result.
2786
2787 * emul_generic.c (emul_write_status): Change so that r3 contains
2788 either status or errno and failure is indicated by SO.
2789
2790Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2791
2792 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
2793 address.
2794
2795Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
2796
2797 * interrupts.h (interrupts): New structure contains state of
2798 pending interrupts.
2799
2800 * cpu.c (cpu_interrupts): New function. Pending interrupt status
2801 in the cpu and grant access to it. Add interrupts to cpu
2802 structure.
2803
2804Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
2805
2806 * device.c (device_tree_add_parsed): Check that the creation of a
2807 device instance worked before using it.
2808
2809 * psim.c (psim_halt): Remove cia argument from psim_halt. This
2810 function does not save the CIA so do not pass it in.
2811
2812Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
2813
2814 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
2815 found in device_table.c into a single hack pal.
2816
2817 * device_table.c (halt, icu, console): Delete.
2818
2819 * Makefile.in (hw_pal.o): New dependency.
2820
2821 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
2822 so that it uses the pal instead of the icu/halt/console devices.
2823 Wire the pal's interrupt ports up to the cpu nodes.
2824
2825Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
2826
2827 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
2828 device_table.c to here.
2829
2830 * Makefile.in (hw_iobus.o): New dependency.
2831
2832Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2833
2834 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
2835 (emul_bugapi_create): Create input, output from /chosen/stdin and
2836 /chosen/stdout.
2837 (emul_bugapi_do_{read,write}): Switch to use device_instance
2838 interface.
2839 (emul_bugapi_instruction_call): Change calls to
2840 emul_bugapi_do_{read,write} to pass device instance argument.
2841
2842Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2843
2844 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
2845 default is not written out if a default was already written.
2846
2847 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
2848 size cooked_buf, not sizeof natural_word, since floating point
2849 registers are 8 bytes.
2850
2851Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2852
2853 * configure: Regenerate with autoconf 2.9.
2854
2855Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
2856
2857 * device_table.h: Always include string headers.
2858
2859Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2860
2861 * main.c (error): Be careful to not try to print out statistics
2862 when the simulation was never created.
2863
2864Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2865
2866 * basics.h: Move the event queue's definition to here so that it
2867 can be refered to globally with out importing all of events.h.
2868
2869 * psim.h, psim.c (psim_event_queue): New function. Grant access
2870 to the simulation event queue. Will make this the single point of
2871 access (there is after all only one event queue in the
2872 simulation).
2873
2874 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
2875 queue instead of it being passed in. No longer allow access to
2876 the cpu's copy of the event queue.
2877
2878Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2879
2880 * events.h, events.c (event_handler): Remove event_queue from
2881 arguments passed to an event handler. That argument is redundant
2882 - the `data' should refer to a data structure that contains the
2883 event queue if queing is needed.
2884
2885 * cpu.c (cpu_decrement_event): adjust
2886
2887 * events.c (event_queue_process): adjust
2888
2889Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2890
2891 * device.h, device.c (device_system): New, returns a handle for
2892 the system given the device.
2893
2894 * device.c (device_address_init): Store a pointer back to the
2895 system in each devices node.
2896
2897 * device_table.h: Don't pass `system' into each device when it is
2898 being initialized, this is now available using device_system(me).
2899
2900 * device.c (device_address_init, device_data_init): Adjust.
2901
2902 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
2903 Adjust.
2904
2905Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2906
2907 * interrupts.c (decrementer_interrupt, external_interrupt):
2908 Remember that an interrupt wasn't delivered so that it can be
2909 tried again later.
2910
2911 * interrupts.c (check_masked_interrupt): New function. (re)
2912 checks for the posibility that a recent change to the MSR may have
2913 made it possible to deliver an interrupt that was previously
2914 masked be the EE bit.
2915
2916 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
2917 a pending interrupt being delivered using check_masked_interrupt().
2918
2919 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
2920 leaving it to that module to handle both interrupt synchronization
2921 and masking.
2922
2923 * cpu.c (struct _cpu): remove variables that were going to record
2924 pending decrementer and external interrupts.
2925
2926Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2927
2928 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
2929 between the interrupt controller and the simulators internal
2930 processor model. Maps device interrupts onto the processor
2931 interrupt function calls.
2932
2933Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2934
2935 * hw_nvram.c: NVRAM device that includes a real-time clock that is
2936 updated each second.
2937
2938Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2939
2940 * device.h (attach_type): Remove attach_default type address
2941 spaces. Will replace with levels of callback memory.
2942
2943 * corefile.h, corefile.c (new_core_mapping), corefile.c
2944 (core_map_attach): Replace default attach with a layerd callback
2945 approach.
2946
2947Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2948
2949 * device.c (split_property_specifier): ensure that only a single
2950 property is found.
2951 (split_value): New function, parses the value part of a device
2952 spec.
2953
2954 * device.c (device_tree_add_parsed): Use the interrupt conversion
2955 functions to determine the interrupt port numbers.
2956
2957 * device_table.h: Add table that maps between an interrupts
2958 symbolic name and its port number.
2959
2960 * device.h, device.c (device_interrupt_decode,
2961 device_interrupt_encode): new functions use the recently added
2962 interrupt port name/number tables to perform conversion.
2963
2964Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2965
2966 * device.h, device.c (device_set_array_property,
2967 device_set_boolean_property, device_set_ihandle_property,
2968 device_set_integer_property, device_set_string_property): New
2969 functions - allow the value of a given property to be changed.
2970
2971 * device.h, device.c: Re-order declaration and definition of
2972 property functions.
2973
2974Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2975
2976 * device.c (device_tree_print_device, device_tree_add_parsed):
2977 Remove references to phandle properties.
2978
2979Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2980
2981 * Makefile.in (corefile.o): missing dependency on device_table.h
2982 etc.
2983
2984Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2985
2986 * device_table.h: Revamp device init callbacks so that they are a
2987 sub structure.
2988 * device.c (device_init_data, device_init_address): If an init
2989 callback is NULL assume it should do nothing.
2990 * device_table.c (ignore_device_init, unimp_device_init): delete
2991 as redundant.
2992 * device_table.c, hw_memory.c: adjust.
2993
2994 * (io): ditto.
2995 * (dma): ditto.
2996 * (device_instance): ditto.
2997 * (ioctl): ditto.
2998 * (address nee config_address): ditto.
2999 * (interrupt): ditto.
3000
3001Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3002
3003 * igen.c (idecode_switch_end): Output a default entry when the
3004 switch statement is perfect. Firstly stops GCC complaining about
3005 an incomplete switch and secondly it will be eliminated by a good
3006 compiler any way.
3007
3008Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3009
3010 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3011 hw_*.c files. hw.h declares a device descriptor table for each hw
3012 device while hw.c lists those tables in a form suitable for the
3013 construction of a top leveltable in device_table.c.
3014
3015 * Makefile.in (device_table.o): now depends on hw.c a generated
3016 table of hw.
3017
3018 * device_table.c (device_table): Re-arange the table of devices so
3019 that two levels are possible. Make use of hw.c.
3020 * device_table.h: ditto.
3021
3022 * device.c (device_template_create_device): Handle new two level
3023 device lookup table.
3024 * device.c (device_usage): ditto.
3025
3026Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3027
3028 * device_table.c: Delete the memory device (moved to hw_memory.c).
3029
3030 * hw_memory.c: New file. Just an OpenBoot memory device.
3031
3032Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3033
3034 * device.c (device_init_address): New. Split initialization into
3035 two stages, address and address spaces
3036 * device.c (device_init_data): New. ... and data or other work.
3037 With out this, devices try to modify memory before it as been
3038 attached.
3039
3040 * device.c (device_tree_init): Update to perform staged
3041 initialization.
3042
3043 * device.c (device_init): Delete.
3044
3045Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3046
3047 * device_table.c (data_*): Rewrite to make heaver use of property
3048 nodes. Allow initialization by different data types.
3049 * device_table.c (htab_* pte_*): Rewrite to use properties.
3050
3051 * emul_chirp.c (emul_chirp_create): Use
3052 * emul_bugapi.c (emul_bugapi_create): Ditto
3053 * emul_netbsd.c (emul_netbsd_create): Ditto
3054
3055Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3056
3057 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3058 with options that haven't yet been specified.
3059 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3060 with demo devices and properties.
3061
3062 * emul_chirp.c (emul_chirp_create): Update to use new
3063 device_tree_add_parsed call and additional information now
3064 included in the device tree. Use emul_add_tree* functions to add
3065 any missing details.
3066 * emul_bugapi.c (emul_bugapi_create): Ditto
3067 * emul_netbsd.c (emul_netbsd_create): Ditto
3068
3069Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3070
3071 * device.c (device_instance_create): New. Create/delete and
3072 operate on instances of a device.
3073 * device.c (device_instance_delete): Ditto
3074 * device.c (device_instance_read): Ditto
3075 * device.c (device_instance_write): Ditto
3076 * device.c (device_instance_seek): Ditto
3077 * device.c (device_instance_data): Ditto
3078 * device.c (device_instance_name): Ditto
3079 * device.c (device_instance_path): Ditto
3080
3081 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3082 * emul_chirp.c (chirp_emul_close): Ditto
3083 * emul_chirp.c (chirp_emul_read): Ditto
3084 * emul_chirp.c (chirp_emul_write): Ditto
3085 * emul_chirp.c (chirp_emul_seek): Ditto
3086
3087 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3088 Being careful to convert all from target to host byte order.
3089 * emul_chirp.c (chirp_write_h2t_args): Converse.
3090
3091Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3092
3093 * device.c (device_tree_add_parsed): New. Rewrite code to add
3094 devices to the device tree so that a single printf style function
3095 is used.
3096
3097 * device.c (device_tree_add_*): Delete. Replaced by above.
3098
3099 * device.c (split_device_specifier): Functions to manipulate a
3100 device specifier (path) breaking it into its components
3101 * device.c (split_property_specifier): Ditto
3102 * device.c (split_device_name): Ditto
3103 * device.c (split_find_device): Ditto
3104
3105 * device.c (scan_*): Delete
3106
3107 * device.c (device_tree_find_device): Rewrite to use above.
3108 * device.c (device_add_property): Ditto
3109
3110Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3111
3112 * psim.c(psim_options): Parse the psim options, installing their
3113 value in the device tree. Options are now first entered into a
3114 device tree and then extracted out again when needed. This allows
3115 greater flexability in configuration.
3116
3117 * psim.c (psim_tree): Returns a basic device tree ready for
3118 parsing by psim_options.
3119 * psim.c (psim_usage): New. Give usage to varing levels of detail
3120 according to the verbosity. In turn output device and trace
3121 usage.
3122
3123 * main.c (main): Update to use new system
3124 * sim_calls.c (sim_open, sim_do_command): Ditto
3125
3126 * psim.c (psim_options): Add `r' option - ram size.
3127 * psim.c (psim_options): Add `o' option - openboot tree entry.
3128 * psim.c (psim_options): Add `h'/`H' options - more help.
3129
3130 * debug.c (trace_usage): Add more detailed help.
3131 * device.c (device_usage): New. Output help including a list of
3132 the devices currently available in the device table.
3133 * device_table.c: Add usage operator to each device.
3134
3135 * corefile.c (core_create, core_device_create): Adjust so that the
3136 core device is created earlier for psim_tree(). Core can later be
3137 created from it.
3138
3139 * psim.c (psim_create): Update to handle above way of creating
3140 things. Extract all information from the device tree.
3141
3142 * device_tree.c (trace_*): New device node, its properties are
3143 used to set the value of the trace options. Init this device (in
3144 psim_options) when ever the options are updated.
3145
3146Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3147
3148 * debug.h: Add trace_print_info, trace_print_device_tree and
3149 trace_dump_device_tree. The first is a replacement for the
3150 variable `print_info' found in main.c and sim_calls.c. The latter
3151 two enable the dumping of the entire device tree.
3152
3153 * debug.c: Add to trace_description table.
3154
3155 * main.c (main): Use above trace instead of local variable
3156 * sim_calls.c (sim_close): Ditto
3157
3158 * device.c (device_tree_print_device): New. Prints the device
3159 tree in a format that is consistent with what can be parsed by the
3160 device tree load from file code.
3161
3162 * psim.c (psim_create): Dump device tree if enabled. If nump
3163 selected, exit psim immediatly.
3164
3165Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3166
3167 * corefile-n.h (core_map_read_N): When mapping from an address to
3168 a device, do not subtract the devices base. The device its self
3169 can do this. Brings the behavour into line with OpenBoot.
3170 * corefile-n.h (core_map_write_N): Ditto
3171 * corefile.c (core_map_read_buffer): Ditto
3172 * corefile.c (core_map_write_buffer): Ditto
3173
3174 * device_table.c (console_io_read_buffer_callback): Adjust to
3175 handle biased address.
3176 * device_table.c (console_io_write_buffer_callback): Ditto
3177
3178Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3179
3180 * device.c (attach_device_interrupt_edge): New. Interrupt model
3181 did not allow interrupts to be wired up as a general net (edges).
3182 Re-implement so that interrupt events can be passed to multiple
3183 controllers and interrupt controllers can further propogate
3184 interrupt events.
3185
3186 * device.c (attach_device_interrupt_edge) : New, Ditto
3187 * device.c (detach_device_interrupt_edge) : New, Ditto
3188 * device.c (clean_device_interrupt_edges) : New, Ditto
3189 * device.c (device_interrupt_event) : New, Ditto
3190 * device.c (device_interrupt_attach) : New, Ditto
3191 * device.c (device_interrupt_detach) : New, Ditto
3192 * device.c (device_child_interrupt_attach) : New, Ditto
3193 * device.c (device_child_interrupt_detach) : New, Ditto
3194
3195 * device.c (device_attach_interrupt) : Delete old
3196 * device.c (device_detach_interrupt) : Delete old
3197 * device.c (device_interrupt) : Delete old
3198 * device.c (device_interrupt_ack) : Delete old
3199
3200 * device_table.c (unimp_*) : Update to match
3201
3202 * device_table.c (icu_io_write_buffer_callback) : Update to use
3203 interface.
3204 * device_table.c (icu_interrupt_event_callback) : Ditto
3205
3206Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3207
3208 * device.c (external_to_device) : New function that provides a
3209 standard mapping between a devices internal representation (a
3210 pointer) and its external (or what is passed to a client)
3211 representation (a phandle). Implement using the cap object
3212 attached to the root node.
3213
3214 * device.c (device_to_external) : Ditto
3215 * device.c (external_to_device_instance) : Ditto but for ihandle
3216 and device instance.
3217 * device.c (device_instance_to_external) : Ditto
3218
3219 * Makefile (device.o): Add dependency on cap.
3220
3221 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3222 needing to translate between internal and external representations
3223 changed to use the external_to_device et.al. device operations.
3224 * emul_chirp.c (chirp_emul_*) : Ditto
3225
3226 * Makefile (emul_chirp.o): Remove dependency on cap
3227
3228Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3229
3230 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3231 on OpenBoot note section.
3232
3233Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3234
3235 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3236 read/write calls for buffer transfers. This will cause a fault to
3237 occure if the transfer fails. CHRP catches the fault while the
3238 others suffer the consequences.
3239 (emul_read_buffer): Ditto.
3240 (emul_write_word): Ditto.
3241 (emul_read_word): Ditto.
3242 (emul_read_string): Ditto.
3243
3244Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3245
3246 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3247 emul_generic (emul_blr_instruction): Use a real blr instruction to
3248 return from a client service call.
3249
3250 * emul_chirp.c (services): Add all OpenBoot services to table.
3251
3252 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3253 (emul_chirp_create) : Use names instead of numbers for
3254 instructions being stored in memory.
3255
3256Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3257
3258 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3259 (From NetBSD) files.
3260
3261Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3262
3263 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
3264 ChangeLog.00
3265
This page took 0.315272 seconds and 4 git commands to generate.