1 2000-03-25 Geoff Keating <geoffk@cygnus.com>
3 * ppc-instructions (Disabled_Exponent_Underflow): Increment
4 the exponent when denormalizing.
6 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
8 * configure: Regenerated to track ../common/aclocal.m4 changes.
10 1999-05-08 Felix Lee <flee@cygnus.com>
12 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
13 * configure: Regenerated to track ../common/aclocal.m4 changes.
15 1999-04-02 Keith Seitz <keiths@cygnus.com>
17 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
18 the frequency at which the poll_quit callback is called.
19 (poll_quit_count): New global.
20 (sim_io_poll_quit): Only call the poll_quit callback
21 after the specified POLL_QUIT_INTERVAL.
23 1999-02-22 Jim Lemke <jlemke@cygnus.com>
25 * dc-complex: Force expansion on all bits of field BO.
26 Previously, the least-significant (prediction) bit was ignored.
27 * ppc-instructions (conditional branches): Implement mpc860c0 option.
28 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
29 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
30 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
31 * interrupts.c (program_interrupt): Added handling for above interrupt.
33 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
35 Make the simulator compatible with the MPC750. It would be nicer
36 to make this a real multi-sim, but that's more work than we have
38 * emul_generic.c (emul_add_tree_options): Only require strict
39 alignment if it was explicitly requested at configuration time.
40 Don't make it the default for little-endian machines.
41 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
42 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
43 THRM2, THRM3): Plop in the MPC750 SPR registers.
44 (DABR): This is weird. This was HID5, but the PPC spec says this
45 should be DABR; why did some random processor use it for something
46 else? The HID5 entry dates back to the original checkin of the
47 simulator code in 1995, so remove it.
48 * sim_calls.c (register_names): Delete this; since the user can
49 now change GDB's list of register names dynamically, we can't
50 pretend there's a static mapping here.
51 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
52 function to get the register name. That ought to be accurate.
53 However, we're changing a compile-time dependency (using the
54 REGISTER_NAMES macro) into a link- and run-time dependency
55 (calling REGISTER_NAME, which happens to be a function call on the
58 1999-01-22 Jim Lemke <jlemke@cygnus.com>
60 * igen.c(gen_semantics_[ch]): setup/use of new option
62 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
63 ppc-instructions(the four branch insn groups): detect problematic br's.
64 psim.c(is_num - added, psim_options): Parse and init new option.
65 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
67 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
69 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
71 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
73 * main.c (sim_io_poll_quit): Stub function.
75 * events.c (SIM_EVENTS_POLL_RATE): Define.
76 (sim_events_poll): Copy function from common/sim-events.c.
77 (event_queue_init): Copy scheduling of sim_events_poll from same.
79 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
80 poll the external environment.
82 1998-11-19 Michael Meissner <meissner@cygnus.com>
84 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
85 fractional type, so that quiet NaN's aren't treated like
88 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
90 * table.c (table_open): For cygwin hosts, we need to use the
91 return value from the read routine as the number of bytes to
92 process. This apparently is due to text-mode vs binary-mode. If
93 the mounts are done text-mode, then the size returnedby fstat()
94 may be different than the number of bytes "read" in text mode.
96 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
98 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
103 1998-09-03 Michael Meissner <meissner@cygnus.com>
105 * emul_{netbsd,unix}.c: Update copyright year.
107 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
109 * sim_calls.c (sim_fetch_register, sim_store_register):
110 return zero when nothing to do.
112 1998-06-26 Michael Meissner <meissner@cygnus.com>
114 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
115 * configure: Regenerate.
116 * emul_{netbsd,unix}.c (toplevel): No longer try to include
117 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
119 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
121 * Makefile.in: The run target depended on a target psim$(EXEEXT),
122 but there was no such target, only plain psim. So I changed the
123 run target to depend on psim.
125 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
127 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
128 now defined in ../common/aclocal.m4, and the double definition causes
129 problems with AC_SUBST of EXEEXT.
130 * configure: Regenerate.
132 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
134 * aclocal.m4: new file for AM_EXEEXT macro
135 * configure.in: call AM_EXEEXT
136 * configure: regenerate with autoconf 2.12.1.
137 * Makefile.in: add EXEEXT support
139 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
141 * configure: Regenerated to track ../common/aclocal.m4 changes.
144 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
146 * acconfig.h: New file.
147 * configure.in: Reverted change of Apr 24; use sinclude again.
148 Don't call AC_C_CROSS.
150 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
152 * configure: Regenerated to track ../common/aclocal.m4 changes.
155 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
157 * Makefile.in (top_builddir): New macro.
158 (INTLLIBS): New macro.
159 (INTLDEPS): Likewise.
160 (psim): Depend on INTLDEPS; link against INTLLIBS.
161 * configure.in: Call CY_GNU_GETTEXT.
163 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
165 * configure: Regenerate with autoconf 2.12.1.
167 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
169 * psim.c (psim_read_register, psim_write_register): Handle updates
172 * registers.c (register_description): Reconize "FPSCR".
174 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
175 MSR FP exception mode. Do not enable FPSCR bits.
176 * emul_unix.c (emul_unix_create): Ditto.
178 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
180 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
181 length parameter. Return -1.
183 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
185 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
186 (is_invalid_zero_divide, invalid_zero_divide_operation): New
189 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
191 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
194 1997-11-05 Felix Lee <flee@cygnus.com>
196 * emul_chirp.c: #ifdef HAVE_UNISTD_H
198 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
200 * corefile.c (core_attach): Pad out allocated memory regions so
201 that they are always correctly aligned.
202 (struct _core_mapping, core_map_attach, core_init,
203 new_core_mapping): Change free_buffer to type void*.
205 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
207 * sim_calls.c (zfree): Call free correctly.
209 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
211 * sim_calls.c (zfree): Use free, not mfree.
212 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
215 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
217 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
218 mask extracting shift amount. Correctly condition for setting XER
220 (ldhau): From Johannes Reisinger, update rA after load.
222 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
224 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
226 * words.h: __int64 instead of long long for MSVC.
228 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
230 * sim_calls.c (sim_create_inferior): Check the simulator was
231 initialized before creating inferior.
233 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
234 sign bit using 64 bit and not a 32 bit mask.
236 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
238 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
239 it has been used, not before.
241 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
243 * sim_calls.c (sim_kill): Delete.
244 (sim_create_inferior): Add ABFD argument.
245 (entry_point): Delete variable.
246 (sim_load): Move setting of PC from here.
247 (sim_create_inferior): To here.
249 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
251 * sim_calls.c (sim_open): Add ABFD argument.
253 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
255 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
256 CR register updates dependant on RC value had logic backwards.
258 * ppc-instructions (Load String Word Immediate): From Brad Parker
259 - sense of wrap test in check for overwriting RA wrong.
260 (Load String Word Indexed): Ditto.
262 * configure.in: From Erik Landry - set sim_default_model not
263 sim_model for sim-default-model option.
264 * configure: Regenerate.
266 * interrupts.c (check_masked_interrupts): Schedule a hardware
267 interrupt delivery when FP interrupts get enabled.
268 (program_interrupt): Generate FP exceptions instead of aborting.
269 (deliver_hardware_interrupt): Deliver a FP exception if so
272 * registers.h: Add definition of fpscr_vx_bits.
274 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
276 (FPSCR_END): Explicitly check for possible floating point
277 exception conditions.
278 (FPSCR_BEGIN): Simplify.
280 * ppc-instructions (Move From FPSCR): Enable.
281 (Move To FPSCR Bit 1): Ditto.
282 (Move To FPSCR Bit 0): Ditto.
283 (Move To FPSCR Field Immediate): Ditto.
284 (Move to Condition Register from FPSCR): Simplify.
285 (invalid_arithemetic_operation): Generate a QNaN when invalid
286 operation exception disabled.
288 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
290 * sim_calls.c (sim_open): Add callback argument.
291 (sim_set_callbacks): Delete.
293 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
295 * sim_callbacks.h (error): Make declaration match gdb's.
296 * main.c (error): Ditto.
298 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
300 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
301 stopped/SIGINT. Exit implies a status code.
303 * psim.c (cntrl_c_simulation): From main.c. Event function that
305 (psim_stop): New. Asynchronously schedule a stop simulator event.
306 (psim_run_until_stop): Delete. Made redundant by psim_stop.
308 * main.c (cntrl_c): Update.
309 (cntrl_c_simulation): Moved to psim.c.
311 * sim_calls.c (sim_stop): New function. Use psim_stop which
312 schedules a stop event.
313 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
314 (sim_resume): Use psim_run as stop variable no longer needed.
316 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
318 * psim.c (psim_options): Handle -E option correctly.
319 (psim_usage): Document.
321 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
323 * psim.c (psim_options): Ignore -E option (sets endianness).
324 * sim_calls.c: #include bfd.h.
325 (entry_point): New static local.
326 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
327 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
329 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
331 * Makefile.in (INSTALL): Set to @INSTALL@.
332 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
333 (install): Depend upon installdirs. Use $(program_transform_name)
334 directly, rather than using $(INSTALL_XFORM).
335 (installdirs): New target.
337 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
339 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
340 rather than the non-portable cat -n.
342 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
344 * Makefile.in (INSTALL): Change install.sh to install-sh.
346 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
348 * ppc-instructions: Change milhwu to mulhwu.
350 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
352 * sim_calls.c (sim_open): New arg `kind'.
354 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
356 * COPYING: Update FSF address.
358 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
360 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
361 all the required features are supported by the host OS.
363 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
365 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
367 * configure.in (enable-sim-endain): Correct typo in usage (from
368 Erik Landry <landry@ENGR.ORST.EDU>).
369 * configure: Re-generate.
371 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
373 * Makefile.in (targ-vals.def): Re-do rule so that it works with
374 FreeBSD's make. Didn't like $<.
376 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
378 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
380 (other sim_*): New SIM_DESC argument.
382 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
384 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
385 ppc-opcode-simple-switch, ppc-opcode-complex-array,
386 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
387 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
388 superseeded by --sim-decode-mechanism option.
390 * ppc-opcode-simple, dc-simple: Rename to be 8.3
391 * ppc-opcode-complex, dc-complex: Ditto.
392 * ppc-opcode-stupid, dc-stupid: Ditto.
393 * ppc-opcode-test-1, dc-test.01: Ditto.
394 * ppc-opcode-test-2, dc-test.02: Ditto.
396 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
399 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
401 * Many of the ppc-opcode-* files are identical baring the type of
402 lookup table. Instead of having multiple tables, igen can do this
403 via an additional option.
405 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
406 allow the type of generated table specified in the decode file to
409 * ld-decode.c (load_decode_table): Allow the table type to be
412 * igen.c (main): Add -T <mechanism> option so that an overriding
413 instruction decode mechanism can be specified.
415 * configure.in: New option --sim-decode-mechanism to control
416 igen's new -T <mechanism> flag.
417 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
419 * configure: Regenerate.
421 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
423 * events.c (event_queue_create): Don't use NULL to initialize an
425 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
426 of sigprocmask to appropriate autoconf test.
428 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
430 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
432 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
433 includes our config.h.
435 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
437 * configure.in: Fix typo in test for callback.c.
438 * configure: Regenerated.
440 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
442 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
443 found in the device tree.
445 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
447 * Property create/initialization still wasn't correctly ordered.
448 Should be delaying everything related to ihandle creation until
449 after the rest of the tree has been established.
451 * device.c (device_find_ihandle_runtime_property): Update.
452 (device_add_ihandle_runtime_property): Update.
454 * tree.c (parse_ihandle_property): Delay lookup of the device to
455 be opened until the ihandle initialization phase.
456 * tree.c (print_properties): Update.
458 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
460 * gen-icache.c (print_icache_extraction): Add a reason parameter.
461 Augment each extracted field with a comment citing the codes
462 origin. Should simplify tracking down incorrect cache
465 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
467 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
468 works for normal and boolean table entries.
470 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
471 valid. Handle this just like *_{read,write}_register now handles
474 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
476 * events.c (insert_event_entry): Correct loop termination
479 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
481 * psim.c (psim_options): Add new option -c for max-iterations or
483 (psim_usage): Document.
484 (psim_max_iterations_exceeded): New function, abort simulation if
485 max iterations exceeded.
487 * gen-idecode.c: Re-work the table lookup code so that it assumes
488 that the entry is a leaf by default. Simplify the boolean table
489 entry code so that it involves a mask + test instead of shift +
492 * gen-idecode.c: Correct generated igen body so that it no drops
493 or doubles clock interrupts.
496 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
498 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
501 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
502 if common callback is present.
504 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
506 * configure.in (sim_callback): If the gdb is post 4.16, configure
507 callback support from the common directory.
508 * configure: Regenerate.
510 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
512 (GDB_OBJ): Add callback support configured in.
513 (gentmap,targ-vals.def): Build from common directory.
514 (targ-vals.h,targ-map.c): Build by running gentmap.
515 (callback.o): Build from source in common directory.
516 (targ-map.o): Add dependency.
517 (clean): Remove gentmap.
519 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
521 * igen wasn't aborting if the opcode table contained no valid
524 * misc.c (name2i): Possibly abort if an invalid name is
526 * ld-decode.c: Abort if the table type isn't found.
528 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
530 * When performance monitoring is disabled, it is still possible to
531 determine the simulation speed by looking at the number of elapsed
532 ticks recorded by the event queue.
534 * psim.c (psim_write_register, psim_read_register): Force the cpu
535 to zero when it is either of `-1' or `nr_cpus'. In both cases the
536 next cpu would be zero any way.
538 * mon.c (mon_print_info): If possible, print the system cycle
539 performance. This is an indication of the number of instructions
542 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
544 * The code to allow an event queue to be updated during a signal
545 was missing. For main.c, a cntrl-c simulation termination wasn't
548 * The simulation would not correctly restart if an event requested
549 that the simulation be halted.
551 * psim.c (psim_options): Add hack to -i option to optionally
552 include a level vis -i2.
553 (psim_usage): Document.
555 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
556 cntrl-c occures schedule an event to halt the simulation.
557 (main): Catch CNTRL-C signals with the function cntrl_c.
559 * events.c (event_queue_process): Mask interrupts while
560 manipulating the async event queue.
561 (event_queue_init): Ditto.
562 (event_queue_schedule_after_signal): Ditto.
564 * events.c (event_queue_process): Mark the event queue as being in
565 the processing state when processing has started. Adjust code
566 so that it is tolerant of halts.
567 (event_queue_init): Start the event queue out with processing
569 (event_queue_tick): Check that processing isn't still being
572 * gen-idecode.c (print_run_until_stop_body): Call
573 event_queue_process_events to clear possibly pending events before
574 starting a simulation run. Re-arange main loop so that simulator
575 is correctly restarted when an event halts the simulation.
577 * psim.c (psim_halt): Handle an event halting the simulation.
578 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
581 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
583 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
584 RA. Based on instruction frequency stats, expand additional
586 * ppc-instructions: Change all `RA == 0' to RA_is_0.
588 * ppc-opcode-stupid: Move all but the basic table in -complex into
589 here. Update to new format.
591 * Makefile.in (tmp-defines): New target. Force defines.h to always
592 be built. Hence get ppc-opcode-goto to build.
594 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
596 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
599 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
601 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
602 to be initialized independant of the rest of the simulation
603 initalization. Otherwize a trace option explictly set from gdb
604 could be overridden by hw_trace.
606 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
608 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
609 debug.c. It could be much simpler.
611 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
613 * Some devices support removable media. Add hooks to the disk
614 device so that it supports this.
616 * device.c (device_add_string_array_property,
617 device_find_string_array_property): New functions, manipulate
618 properties containing an array of strings.
619 (device_find_string_property): Allow a string array.
620 (device_init_static_properties): Update.
621 (device_init_runtime_properties): Update.
623 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
624 media. If no file image is specified, use the next one in the
626 (hw_disk_init_address): Change the file property so that it is a
627 string array - use the first entry for the initial file image.
629 * tree.c (print_string_aray_property): New function - print a
631 (print_properties): Adjust.
632 (print_string): Write a string, handling double quotes.
634 * device.h: Define an ioctl to `change-media' with an optional new
637 * hw_disk.c: Allow floppy disk devices to be specified.
639 * psim.c (psim_command): New function, parse more complex psim
640 commands such as "change-media" and "trace".
641 * sim_calls.c (sim_do_command): Use.
643 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
645 * For expressions like (RA == 0) that are entered in to the cache
646 as RA_is_0. If possible generate the result of the expression so
647 that the compiler gets a better chance of eliminating dead
650 * gen-icache.c (print_icache_extraction): For a cache entry of
651 the form <name>_is_<const> where it is a boolean field, generate
652 the result of the expression instead of the expression its self.
653 (print_icache_body): Remove code that was looking for *_is_0 and
654 then generating corresponding definitions.
656 * gen-icache.c (print_icache_struct): If there is no cache, do not
657 output expressions in idecode.h file.
659 * gen-icache.c (print_icache_body): Output them here.
661 * ppc-opcode-complex: Clarify constant values for SPR==LR register
664 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
666 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
668 * The code that put values in and extracted values from the cache
669 was too compilicated. The cache table did not allow values to be
670 computed from cache entries. #defines could only be used when a
671 cache was present, remove the restriction.
673 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
674 scratch variable is defined when a cache entry is beinf
675 filled. Change the definition of a COMPUTE variable to be defined
676 when the cache entry is being used.
677 * gen-icache.c: Update.
679 * ld-cache.h, ld-cache.c: Change field names so that their meaning
680 is more obvious. old_name->field_name, new_name->derived_name.
681 * gen-icache.c: Update
683 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
684 different types of cache code - put into cache, extract from
685 cache, no cache - an explicit argument to print_icache_body.
686 * gen-icache.c (print_icache_extraction): Ditto.
688 * gen-semantics.c (print_c_semantic): Update use.
689 * gen-idecode.c (print_jump_insn): Update use.
690 * gen-icache.c (print_icache_function): Update use.
692 * igen.c (main): Change 'R' option so that it does not force the
695 * configure.in (enable-sim-icache): Clarify description. Make
696 #define one of the defaults regardless of the cache. Probably
697 should revamp and add a separate option.
699 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
701 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
703 (pk_disklabel_create_instance): Partition 1..4 are valid - not
705 (is_iso9660): New function, verify a CD9660 File system.
706 (pk_disklabel_create_instance): Start expanding so that active
707 partition selection is supported.
709 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
711 * The cap object was retaining a reference to the instance of a
712 device after it was deleted. Instead add and remove cap's from the
713 cap db as they are created and deleted. This ensuring that a
714 capibility is only used during the lifetime of the corresponding
717 * cap.h, cap.c: Correct cap type - was signed32 should be
720 * cap.c (cap_add, cap_remove): New methods for cap object that
721 allow the explicit addition and removal of internal objects that
724 * cap.c (cap_init): Rewrite. Verify that the only objects
725 remaining in the cap data base are those that were entered first.
726 Thse objects will be the permenant ones.
727 * device.c (device_init_address): Remember to initialize the cap
730 * device.c (device_create_instance_from): Explicitly add device
731 instances to the cap database. Simplify create code.
732 (device_instance_delete): Explicitly remove device instances from
735 * device.c (device_create_from): Explicitly add a device to the
738 * device.c (device_create_from): Always set the cap members.
740 * hw_disk.c: Output the instance when tracing.
742 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
744 * tree.c (split_device_specifier): Add support for aliases when
745 looking up a device. Now needs a device as an argument.
746 (split_property_specifier): Ditto.
748 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
750 * The memory "claim" and "release" methods take an address and
751 size as arguments. These may be multi cell values. Initially fix
752 the memory code so that they check/detect this. Leave the
753 adjustment of any clients to later.
755 * hw_memory.c (hw_memory_instance_claim,
756 hw_memory_instance_release): Handle multi-cell memory devices.
758 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
759 release of memory regions that were not claimed.
761 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
763 * device.h, device.c (device_instance_call_method): Correct return
764 type - can return either 0 or -1, hence should be a signed type.
765 * device_table.h: Ditto.
767 * hw_memory.c (hw_memory_instance_claim,
768 hw_memory_instance_release): Update.
769 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
770 hw_disk_nr_blocks): Ditto.
772 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
774 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
775 method belonging to "/chosen/memory".
776 (chirm_emul_release): Ditto.
778 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
779 that are inlined. These modules are called via a table and are
782 * hw_init.c (update_for_binary_section): Fix failure to allocate
783 memory used by the binary in real-mode executions. If "claim"
784 property is present, allocate memory from the "/chosen/memory"
787 * emul_chirp.c (emul_chirp_create): Specify that memory should be
788 claimed when loading a real image.
790 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
793 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
794 when merging adjacent memory chunks.
796 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
798 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
799 optional PROCESSOR & CIA args so that this routine also abort an
802 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
803 miss-aligned access when a transfer fails abort.
805 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
806 instead of the vm_read_buffer.
807 * emul_netbsd.c (do_write): Ditto.
808 * emul_unix.c (do_unix_write): Ditto.
810 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
812 * configure.in (--enable-sim-jump): Default is NULL and not -E.
813 * configure: Regenerate.
815 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
816 (UNUSED): Only enable UNUSED if GCC >= 2.7.
818 * gen-icache.c (print_icache_extraction): Print UNUSED macro
819 instead of explicit __unused__ attribute.
820 (print_icache_body): Ditto.
821 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
823 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
825 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
828 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
829 arguments so that there is a reference point for recovery.
830 (vm_synchronize_context): Pass processor+cia for errors.
831 (om_unpack_sr): Ditto.
832 (om_unpack_srs): Ditto.
833 * vm.c (vm_create): Review error messages.
835 * vm.c: Include "cpu.h" so that cpu_error is visible.
837 * ppc-instructions (Return From Interrupt): Pass CIA.
838 (Instruction Synchronize): Ditto.
839 * psim.c (psim_init): Ditto.
841 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
843 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
844 but also saves current processor state.
846 * basics.h: Move #include <stdarg.h> to here from device_table.h.
848 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
849 when simulation aborted.
850 (program_interrupt): Ditto.
851 (floating_point_unavailable_interrupt): Ditto.
852 (alignment_interrupt): Ditto.
853 (floating_point_assist_interrupt): Ditto.
854 (perform_oea_interrupt): Ditto.
855 (machine_check_interrupt): Ditto.
857 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
859 * ppc-instructions (Move from Special Purpose Register): Support
862 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
864 * debug.h, debug.c: Add "interrupts" trace option.
866 * interrupts.c (data_storage_interrupt): Add tracing.
867 (machine_check_interrupt): Ditto.
868 (instruction_storage_interrupt): Ditto.
869 (alignment_interrupt): Ditto.
870 (program_interrupt): Ditto.
871 (floating_point_unavailable_interrupt): Ditto.
872 (system_call_interrupt): Ditto.
873 (floating_point_assist_interrupt): Ditto.
874 (deliver_hardware_interrupt): Ditto.
876 * interrupts.c (program_interrupt): For UEA mode, halt the
877 processor - so that the current state is saved - instead of
879 (floating_point_unavailable_interrupt): Ditto.
880 (floating_point_assist_interrupt): Ditto.
882 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
884 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
887 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
889 * ppc-instructions (Store Multiple Word, Load Multiple Word):
892 * tree.c (print_properties): For an array consider printing it out
895 * hw_memory.c (hw_memory_init_address): If an "available" property
896 is present, use that to initialize the available memory instead of
897 using the reg property.
899 * emul_generic.c (emul_add_tree_hardware): Add "available"
900 property to memory device.
902 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
904 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
906 * device.c (device_instance_call_method): Was only looking at the
909 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
910 (hw_disk_block_size): Implement block-size method.
911 (hw_disk_max_transfer): Implement max-transfer method.
913 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
915 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
917 (chirp_emul_instance_to_package): Ditto.
918 (chirp_emul_method): Ditto.
919 (chirp_emul_read): Ditto.
920 (chirp_emul_write): Ditto.
921 (chirp_emul_close): Ditto.
922 (chirp_emul_seek): Ditto.
923 (chirp_emul_package_to_path): Ditto (for phandle).
924 (chirp_emul_package_to_path): Return the length.
926 * psim.c (psim_merge_device_file): Allow continuation lines.
928 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
930 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
933 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
934 members - *_cell not host dependant int.
936 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
938 * interrupts.c (perform_oea_interrupt): Print additional
939 information if a double interrupt is encountered.
941 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
943 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
944 being specified with the -f option.
945 (psim_merge_device_file): Correct check for end of string.
947 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
949 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
950 list of devices. Return zero to the client instead.
951 * emul_chirp.c (chirp_emul_child): Ditto
952 * emul_chirp.c (chirp_emul_parent): Ditto
954 * device.c (device_root): Assert assumption about the device being
957 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
959 * emul_chirp.c (emul_chirp_create): Add description property to
960 each significant node in the device tree.
961 * emul_bugapi.c (emul_bugapi_create): Ditto.
963 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
965 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
966 tempoary two byte buffer. Single byte read with fgets will not
968 * main.c: Include errno.h.
969 (sim_io_read_stdin): For non-STDIO, make it work.
971 * emul_chirp.c (chirp_emul_read): Return the correct error status.
973 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
975 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
976 Instead have each emulation default it to DO_USE_STDIO.
978 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
979 mechanism as the default if enabled or if nothing selected.
981 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
983 (sim_io_write_stdout): Ditto.
984 (sim_io_write_stderr): Ditto.
985 * main.c (sim_io_write_stdout): Ditto.
986 (sim_io_write_stderr): Ditto.
987 (sim_io_read_stdin): Ditto.
989 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
991 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
993 * vm.c (om_effective_to_virtual): Ditto.
994 * events.c (event_queue_schedule{,_after_signal}): Ditto.
995 (event_queue_{deschedule,process}): Ditto.
996 * hw_htab.c (htab_decode_hash_table): Ditto.
997 (htab_map_{page,binary}): Ditto.
998 * hw_opic.c (hw_opic_init_data): Ditto.
999 (handle_interrupt): Ditto.
1000 (do_processor_init_register_{read,write}): Ditto.
1001 (write_vector_priority_register): Ditto.
1002 ({read,write}_destination_register): Ditto.
1003 (do_suprious_vector_register_{read,write}): Ditto.
1004 (do_current_task_priority_register_N_{read,write}): Ditto.
1005 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1006 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1007 (do_ipi_N_dispatch_register_write): Ditto.
1008 (do_vendor_identification_register_read): Ditto.
1009 (do_feature_reporting_register_N_read): Ditto.
1010 (do_global_configuration_register_N_{read,write}): Ditto.
1011 * hw_phb.c (hw_phb_attach_address): Ditto.
1012 (hw_phb_unit_decode): Ditto.
1013 (hw_phb_address_to_attach_address): Ditto.
1014 (hw_phb_io_{read,write}_buffer): Ditto.
1015 * hw_ide.c (setup_fifo): Ditto.
1017 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1018 files via -I<dir> instead of using "../../gdb/" prefixes.
1020 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1022 * debug.h: Add tracing for the pal device.
1025 * emul_chirp.c (chirp_emul_getprop): More tracing.
1027 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1029 * device.h, device.c (device_find_ihandle_runtime_property): New
1030 function. Reverse of add_ihandle_runtime property.
1031 (device_init_runtime_properties): Use it.
1033 * device.c (find_property_entry): New function returns the
1034 internal property spec.
1035 (device_set_property): Use.
1036 (device_find_property): Use.
1038 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1040 * psim.c (psim_merge_device_file): Strip newline from device
1043 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1045 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1046 merge the two. Also check that the merge is safe.
1048 * emul_chirp.c (emul_chirp_create): Add a description property to
1049 the pte's so that they are easier to identify.
1051 (emul_chirp_create): Don't specify a load address for the CHRP
1052 image. Always use the values specified by the executable.
1054 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1057 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1059 * hw_htab.c (htab_map_page): Formatting.
1061 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1062 method name when handling the client call. Also check for other
1065 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1066 etc to be overriden.
1068 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1070 * os_emul.c (os_emul_create): Use tree find property instead of
1071 device find property - sigh.
1073 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1075 * 961205: Release snapshot 961205.
1077 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1079 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1080 cannot contain a comma.
1081 (sim-warnings): Check for more potential errors.
1083 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1084 containing device tree specifications that should be merged into
1087 * configure.in: Sort options.
1088 * configure: Rebuild
1090 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1092 * psim.c (psim_usage): Add -n option - specify number of
1095 * emul_chirp.c: Add description.
1096 * emul_bugapi.c: Ditto.
1097 * emul_unix.c: Ditto.
1098 * emul_netbsd.c: Ditto.
1100 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1102 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1103 encountered, assume that it is the single disk.
1104 * hw_pal.c: Add generic device/size decode methods.
1106 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1107 property entry when determining the nvram size.
1109 * hw_core.c: Add generic address/size decode methods.
1111 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1112 nonzero status from client functions.
1114 * main.c (error): Always include a cariage return when writing out
1117 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1119 * sim_calls.c (sim_resume): Reset sim_should_run if single
1122 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1124 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1127 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1128 Attach the pal - for I/O - as a pseudo device haning from the
1131 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1132 the device tree at the address of the hi-mem interrupt vector
1133 addreses. Used by bugapi to establish its trap instructions.
1135 * debug.h: Add a new macro DITRACE for tracing device instances.
1137 * debug.h: Extend the DTRACE macro so that it can also tests for
1138 device specific tracint.
1140 * device.h, device.c (device_trace): Add method to determine
1141 device specific tracing.
1142 (device_init_address): Set the devices tracing level.
1144 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1146 * tree.h, tree.c (tree_device): New files - separate out the
1147 device parser and other tree operations from the device.
1149 * inline.h, inline.c (INLINE_TREE): Add.
1150 * device.h, device.c (device_tree_add_parsed): Delete.
1151 * Makefile.in (tree.c): Add rules for new file.
1152 * Makefile.in: Better order the emul_* files.
1154 * emul_generic.c (emul_add_tree_hardware): Update.
1155 * emul_netbsd.c (emul_netbsd_create): Update.
1156 * emul_unix.c (emul_unix_create): Ditto.
1157 * emul_chirp.c (emul_chirp_create): Ditto.
1158 * emul_bugapi.c (emul_bugapi_create): Ditto.
1159 * psim.c (psim_tree): Ditto.
1162 * emul_generic.h: Include tree.h
1163 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1165 * device.h, device.c (device_root): New function - returns the
1169 * device.h, device.c (device_clean): New function, clean up device
1170 ready for next simulation run. This includes things like deleting
1171 interrupt edges and properties created during the simulation and
1172 also scrubbing any pre-defined properties.
1173 * tree.c (tree_init): Use.
1175 * device.h, device.c (device_init_static_properties): New
1176 function. Initialize any static predefined properties. By static
1177 we mean those that have values that can be determined before the
1178 device tree initialization has started.
1179 * tree.c (tree_init): Use.
1181 * device.h, device.c (device_init_address): Add code to
1182 check/verify the devices #address-cells and #size-cells.
1183 (device_add_integer_property): Delete corresponding code.
1184 (device_nr_address_cells, device_nr_data_cells): Check for
1185 property when returning value.
1187 * device.h, device.c (device_init_runtime_properties): New
1188 function. Initialize those properties that are not `static'. At
1189 present the only such property is the ihandle.
1190 * tree.c (tree_init): Use.
1192 * device.h, device.c (reg, ranges): Rework these so that they use
1193 an array of the fundamental type - single reg or single range
1196 * device.h, device.c (device_add_ihandle_runtime_property):
1197 Re-implement the adding of an ihandle during tree construction so
1198 that it better fits in with device initialization.
1200 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1202 * device.h, device.c (device_ioctl): Add additional argument -
1203 request - so that the caller must always specify the type of
1206 * device_table.h: Update.
1207 * hw_trace.c (hw_trace_ioctl): Ditto.
1208 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1209 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1210 * psim.c (psim_options): Ditto.
1212 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1214 * BUGS: Updated a bit.
1216 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1218 * hw_opic.c: Finish - third round.
1220 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1222 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1224 (hw_glue_io_write_buffer_callback): Ditto.
1226 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1228 * events.c (event_queue_process): Was incorrectly consuming future
1229 events on the queue when they should be left alone.
1231 * debug.h, debug.c (events): Add support for event queue tracing.
1232 * events.c: Add event tracing.
1234 * debug.h, debug.c: Order device trace options.
1236 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1238 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1239 warnings generated by GCC.
1241 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1243 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1244 PCI devices which are little-endian.
1246 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1248 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1250 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1251 so that it is implementing a 1-1 address map.
1253 * emul_generic.c (emul_add_tree_hardware): Adjust.
1255 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1258 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1260 * device.c (split_find_device): Be tolerant of missing unit
1263 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1265 * basics.h (port_direction): New type, specify the direction of
1268 * device.h, device.c (device_interrupt_decode): Include
1269 specification of port direction in operations.
1270 (device_interrupt_encode): Ditto.
1272 * device_table.h: Add a direction field to the interrupt port
1275 * device.c (device_tree_add_parsed): Specify port direction.
1277 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1279 * hw_opic.c: Finish - second round.
1281 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1283 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1284 to be specified as an array which allows 64bit addresses.
1286 * device.c (device_find_integer_array_property): New function.
1287 Simplify the querying of elements of an integer array.
1288 (device_add_integer_property, device_find_integer_property):
1289 Update to correctly use the cell type.
1291 * vm.c (om_unpack_sr): Clarify shifting comment.
1292 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1294 * emul_chirp.c (emul_chirp_create): Initialize the segment
1297 * vm.c (om_effective_to_virtual): Trace segment register use.
1299 * hw_htab.c (htab_map_page): Print out the pteg base address to
1300 simplify cross checking between vm and the htab.
1301 (htab_decode_hash_table): Use device_error instead of error.
1302 (htab_map_page): Ditto.
1303 (htab_dma_binary): Ditto.
1304 (htab_map_binary): Ditto.
1305 (htab_init_data_callback): Ditto.
1307 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1309 * interrupts.h: Clarify what the optional instruction program
1310 interrupt is - a subset of illegal instruction program interrupt.
1312 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1313 optional instruction program interrupt is.
1314 (program_interrupt): For OEA mode, as per spec, generate an
1315 illegal instruction program interrupt when an optional instruction
1318 * gen-semantics.c (print_semantic_body): Delete code
1319 differentiating between an unimplemented floating point and normal
1320 instruction. Instead, such a case can be handled explicitly.
1322 * ppc-instructions (store floating-point as integer word indexed):
1324 (Floating Convert to Integer Doubleword): Make the floating point
1325 assist interrupt explicit.
1326 (Floating Convert To Integer Doubleword with round towards Zero):
1328 (Floating Convert To Integer Word): Ditto
1329 (Move From FPSCR): Ditto.
1330 (Move to Condition Register from FPSCR): Ditto.
1331 (Move To FPSCR Fields): Ditto.
1332 (Move To FPSCR Field Immediate): Ditto.
1333 (Move To FPSCR Bit 0): Ditto.
1334 (Move To FPSCR Bit 1): Ditto.
1336 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1338 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1339 breaking up transfers.
1341 * corefile.c: Adjust arguments so that the client server
1342 relationship is clarified.
1344 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1347 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1348 looking for things like overflow/underflow.
1350 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1352 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1353 PAL device instead of the IOBUS. The disk must be attached to a
1356 * hw_disk.c (hw_disk_init_address): Just use the unit address
1357 directly in the attach - the rest isn't relevant.
1359 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1361 * configure.in (sim-hardware, sim-packages): Allow additional
1362 hardware and packages to be prefixed as well as appended.
1364 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1365 packages when building them. Consequently, a user can override a
1366 standard device by prefixing their own version.
1368 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1370 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1372 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1374 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1375 (mon_print_info): Correct typo regarding # of unaligned reads and
1376 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1379 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1381 * configure.in (AC_CHECK_FUNCS): Add access.
1382 * config{.in,ure}: Regenerate.
1384 * emul_unix.c (do_unix_nop): System call that always succeeds.
1385 (do_unix_access): Support access system call.
1386 (solaris_descriptors): Make sigaltstack and sigaction nops.
1387 ({solaris,linux}_descriptors): Add support for access.
1389 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1391 * Makefile.in (clean): Move config.log to distclean.
1393 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1395 * corefile-n.h (core_map_write_N): Improve abort messages.
1397 * device.h, device.c (device_attach_address): Remove unused name
1399 (device_detach_address): Ditto.
1400 * device_table.h, device_table.c: Update.
1401 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1402 * hw_nvram.c (hw_nvram_init_address): Ditto.
1403 * hw_memory.c (hw_memory_init_address): Ditto.
1404 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1405 (hw_vm_attach_address): Ditto.
1406 (hw_vm_add_space): Ditto.
1407 * hw_init.c (update_for_binary_section): Ditto.
1408 * hw_core.c (hw_core_attach_address_callback): Ditto.
1410 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1411 configurable parent busses.
1413 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1415 * device_table.c (generic_device_size_to_attach_size): Provide
1416 limited support for multi-cell sizes.
1417 (generic_device_address_to_attach_address): Ditto for addresses.
1419 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1421 * device.c (device_add_integer_property): Check for setting of
1422 #address-cells and #size-cells properties. For these, update the
1423 corresponding device values.
1424 (device_nr_address_cells, device_nr_size_cells): Use the value
1425 from the device instead of the property.
1427 * hw_core.c: Use generic address and size conversions for the top
1430 * hw_memory.c (hw_memory_init_address): Tolerate case where
1431 #address and #size cells is greater than 1.
1433 * device.c (device_tree_print_device): Clean out printing of
1436 * device.c (split_device_specifier): Don't detect comments here -
1437 "#" can be a valid prefix - eg #size-cells.
1439 * psim.c (psim_merge_device_file): Suppress comments and blank
1442 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1443 pal unit address. Add the property /#address-cells to the root of
1446 * device.c (device_template_create_device): Check that the unit
1447 address was successfully parsed.
1449 * device_table.c (generic_device_unit_decode): Rewrite to better
1450 handle multi-cell addresses.
1451 (generic_device_unit_encode): Ditto.
1453 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1454 longer need the explicit array type - the parser takes care of it.
1456 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1459 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1461 * hw_ide.c: New file. Model of a basic IDE interface attached to
1464 * configure.in (hardware): Add the ide device to the default
1466 * configure: Regenerate.
1468 * debug.h, debug.c: Add tracing option for the IDE device.
1470 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1472 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1474 * configure.in (hardware): Add the phb to the list of devices to
1477 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1479 * hw_com.c: Review description.
1482 * hw_eeprom.c: Ditto.
1486 * hw_com.c: Update event handling.
1488 * hw_disk.c: Implement tracing.
1490 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1492 * device_table.c (generic_device_init_address): Use
1493 assigned-addresses property in preference to any other reg
1496 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1498 * device.h, device.c (device_find_ranges_property): New function.
1499 Simplify the manipulation of "ranges" properties.
1501 * device.c (device_add_parsed): Extend to include support for the
1504 * device.c (device_add_parsed): Add assigned-addresses to the list
1505 of reg type properties.
1507 * device.c (device_tree_print_device): Add code to format and
1508 print a ranges property.
1510 * device.h, device.c (device_nr_address_cells,
1511 device_nr_size_cells): New functions. Determine the values of the
1512 standard properties #address-cells and #size-cells. Both of which
1513 are optional and have default values of two and one respectfuly.
1514 Previously, code that determined #address-cells was incorrectly
1515 using a value of one.
1517 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1519 * debug.h, debug.c: Sort debug options, Add entries for the
1522 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1524 * ppc-instructions (Floating Select): Add support for fsel unless
1525 model is 601. Allow user to filter out instruction unless -Fs is
1527 (Store Floating-Point as Integer Word Indexed): Raise optional
1528 instruction program abort. Allow user to filter out instruction
1529 unless -Fs is passed to igen.
1530 (Floating Square Root{, Single}): Ditto.
1531 (Floating Reciprocal Estimate Single): Ditto.
1532 (Floating Reciprocal Square Root Estimate): Ditto.
1534 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1536 * configure: Regenerate.
1538 * interrupts.h (program_interrupt_reasons): Add
1539 optional_instruction_program_interrupt.
1541 * interrupts.c (program_interrupt): Call error with more detailed
1542 information on program interrupts, particularly in user mode. Add
1543 support for optional_instruction_program_interrupt.
1545 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1547 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1549 * debug.h, debug.c (trace_glue_device): Add tracing support for
1550 the interrupt glue logic device.
1552 * configure.in (hardware): Add glue device.
1553 * configure: Regenerate.
1555 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1557 * device.c (device_tree_parse_integer_property): New function,
1558 parse a list of integers as an array property.
1559 (device_tree_add_parsed): Call it.
1561 * device.c (device_tree_parse_string_property): New function,
1562 parse a list of strings as a string property (with embeded
1563 null's). For moment, don't try to implement a complext string
1565 (device_tree_add_parsed): Call it.
1567 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1569 * hw_opic.c: New file. OpenPIC interrupt controller.
1571 * configure.in (hardware): Add opic device.
1572 * configure: re-generate.
1574 * hw_pic.c: Delete, replaced with hw_opic.c.
1576 * debug.h, debug.c: Add debug option for OpenPIC device. -
1579 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1581 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1582 now the file that does all the inlining.
1584 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1585 library source code that could be involved in an inlining. Make
1586 idecode.o only dependant on the inlined library source code.
1588 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1591 * std-config.h (DEVICE_INLINE): Only inline locals when the
1592 default is to inline.
1594 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1596 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1599 * hw_htab.c (htab_map_binary): Depending on the value of the
1600 load-base, either map the program in as a contiguous section or as
1601 separate sections controled by th binaries lma values.
1602 (htab_init_data_callback): Ditto.
1604 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1606 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1608 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1609 struct. Don't require the load_base field to be present - just
1610 issue warning - it is a recent addition.
1611 (emul_chirp_create): Support both virtual and physical modes.
1613 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1614 property so that any arguments specified on the command line can
1615 be passed on to user programs.
1617 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1618 argument passing to the pseudo device stack.
1620 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1622 * device.c (device_error): Make it more tolerant to incomplete
1625 * hw_init.c (hw_data_init_data_callback): Extend the data device
1626 so that it can perform initialization operations either dma or a
1627 more complex instance open, seek, write operation.
1628 * hw_init.c: Update the description of the data device to reflect
1631 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1633 * device.c (device_event_queue_schedule,
1634 device_event_queue_deschedule, device_event_queue_time): Have the
1635 device object export the event operations. Making these available
1636 from the device object should hopefully simplify writing device
1639 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1641 * configure.in (sim-hardware): Add eeprom device to default build.
1643 * hw_eeprom.c: Rewrite so it works.
1645 * debug.h, debug.c: Add tracing support for the eeprom and com
1648 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1650 * debug.h: Add disklabel-package and disk-device trace options.
1651 debug.h (PTRACE): Add macro to simplify tracing in packages.
1653 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1655 * device.c (device_create_instance_from): Tighten up loop
1656 searching for device instances.
1657 (device_instance_delete): Ditto.
1658 (device_instance_delete): Only leaf instances need to be removed
1659 from a devices list of active instances.
1661 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1663 * hw_disk.c: Add the cdrom as an alias.
1665 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1666 delete the raw disk instance while we're at it.
1668 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1669 little bit more - still a long way to go.
1671 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1672 new head position after a read or write.
1674 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1676 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1677 the internal buffer.
1679 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1681 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1682 in the correct order.
1684 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1685 the address of the first stack argument passed in from the client
1688 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1690 * words.h: Add new types signed_cell and unsigned_cell which
1691 correspond to the signed and unsigned IEEE 1275 memory locations.
1692 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1693 memory cell, replace uses of unsigned32 with unsigned_cell.
1694 * device_table.h: Ditto.
1696 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
1697 convert cell sized values to from big endian.
1698 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
1699 use these new macros.
1701 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1703 * device.c (device_tree_add_parsed): Detect and report an
1704 interrupt being attached to an invalid device. Was dumping core.
1706 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1708 * device.h, device.c (device_address_to_attach_address,
1709 device_size_to_attach_size): New functions. Convert a devices
1710 unit address or unit size structure into a form suitable for
1711 passing on to the attach and detach functions.
1712 * device_table.h: Add extra methods to device table.
1714 * device.h, device.c (device_find_reg_property): New function.
1715 For a reg type property, return the selected address + size
1716 tupple, along with a positive success status. Add a reg_property
1717 to the list of property types.
1718 * (device_tree_add_parsed): Make array properties with the name
1719 reg or alternate-reg of type reg_property.
1721 * hw_memory.c (hw_memory_init_address): Rewrite to use new
1722 find_reg_property method.
1723 * hw_nvram.c (hw_nvram_init_address): Ditto.
1725 * device.c (device_tree_print_device): Add code to print out a reg
1728 * device_table.c (generic_device_address_to_attach_address,
1729 generic_device_size_to_attach_size ): New functions. Generic
1730 functions for converting between unit and attach address or size.
1732 * device_table.c (generic_device_init_address): Rewrite to use the
1733 new find_reg and address convert functions. Look for both reg and
1734 alternate-reg properties.
1736 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1738 * hw_com.c: New file. A '550 serial device that can quickly be
1739 attached to any bus.
1740 * configure.in (enable-sim-hardware): Add the com device.
1741 * configure: re-generate.
1743 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1745 * device.c (device_tree_verify_reg_unit_address): New
1746 function. Check that the unit address as specified by the reg
1747 property correctly corresponds to any unit address previously
1748 specified by the devices name.
1749 (device_tree_add_parsed): When adding a reg property, verify
1750 that the unit-address - first value of property - correctly
1751 matches any previous value specified when creating the device
1754 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1756 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
1758 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1760 * device.c (device_full_name): Cast strdup to char *, since AIX
1761 3.2.5 mistakenly declares the function to be const char *.
1762 (device_create_from): Ditto.
1763 (device_create_instance_from): Ditto.
1764 (device_add_property): Ditto.
1766 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1768 * debug.c (trace_option): For -t all, do not set the
1769 trace_dump_device_tree flag, so that the simulator is run.
1771 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1773 * Makefile.in (options.o): Depend on defines.h.
1774 (defines.h): New rule, go through config.h and make strings of all
1775 of the #define HAVE_xxx macros.
1776 (distclean): Remove defines.h.
1778 * options.c (print_options): Print whether many of the
1779 configuration macros are defined.
1781 * main.c (main): If -t options and no filename, just print the
1782 options, and don't print the usage message.
1784 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1786 * configure.in: Test whether /dev/zero works on the system, and if
1787 it does, define HAVE_DEVZERO.
1788 * configure: Regenerate.
1790 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
1791 if we don't have a working /dev/zero on the system.
1793 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
1794 defined, don't add disk support.
1795 (emul_bugapi_do_diskio): Ditto.
1796 (emul_bugapi_instruction_call): Ditto.
1798 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1800 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
1801 defined, make sure HAVE_TCGETATTR is #undef'ed
1803 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1805 * std-config.h (REGPARM): Only define REGPARM attributes if using
1806 GNU C. Test for __i686__ in case GCC ever defines it. If not on
1807 a x86 platform, define REGPARM as nothing.
1809 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
1812 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1814 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
1816 * gen-idecode.c: Ditto.
1818 * gen-idecode.c (print_idecode_table): Comment out check for
1819 switch/table combination until a bug with it is fixed.
1821 * ppc-opcode-goto: New file. Like complex and flat but uses
1822 goto-switch instead of padded-switch for the tables.
1824 * gen-idecode.c (print_goto_switch_name): New function.
1825 (print_goto_switch_table_leaf): New function.
1826 (print_goto_switch_break): New function.
1827 (print_goto_switch_table): New function. Prints a jump table
1828 that can be jumped into instead of a switch statement.
1830 * gen-idecode.c (*switch_*): As an option output a switch that is
1831 implemented using a jump table but only if the switch is not
1834 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1836 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
1837 * configure: Regenerate.
1839 * device.c (device_instance_call_method): Fixup format message in
1840 error case. Return 0 in case of error to shut up compiler
1843 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1845 * device_table.c (generic_device_unit_decode): Require a comma
1846 between elements of a unit address.
1848 * device.c (device_tree_print_device): For reg, alternate-reg and
1849 ranges properties use special print functions.
1850 (device_print_ranges_property): Print formatted ranges property.
1851 (device_print_reg_property): Print formatted reg property.
1853 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1855 * device.c (device_tree_add_parsed): For reg, ranges and
1856 alternate-reg properties use a special parser.
1857 (device_tree_parse_reg_property): New function to parse a reg
1859 (device_tree_parse_ranges_property): New function to parse a
1861 (device_encode_unit): Wrapper for encode_unit callback.
1862 (device_decoce_unit): Wrapper for decode_unit callback.
1864 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1866 * device_table.h (device_instance_callbacks): Relace the claim and
1867 release methods with a more general table mapping from method-name
1870 * device.c (device_instance_call_method): New function. Implement
1871 the OpenBoot call-method client interface. Attempts to locate the
1872 instances method in the callback table.
1873 (device_instance_claim, device_instance_release): Delete.
1874 Replaced with call-method and a lookup table.
1876 * emul_chirp.c (chirp_emul_call_method): Use the new device
1877 instance call method and let that handle a client claim call.
1879 * hw_htab.c (claim_memory): Wrapper function to call the memory
1880 devices "claim" method using the new device-instance call-method
1881 interface. Replaces the previous direct calls to claim.
1882 (htab_map_region): Use claim_memory.
1883 (htab_init_data_callback): Ditto.
1885 * hw_memory.c (hw_memory_instance_claim): Update function
1886 interface so that it is compatible with call-method.
1887 (hw_memory_instance_release): Ditto.
1888 (hw_memory_instance_methods): New table of memory specific
1889 methods claim and release. Add to the hw_memory_callback
1892 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1894 * psim.c (psim_init): Back out of change to initial value of
1897 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1899 * sim_callbacks.h (sim_io_printf_filtered): Replace
1900 printf_filtered with a local simulator specific version. Add
1901 #define printf_filtered to simplify updating of existing code.
1903 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
1904 sim_io_write_stderr): New functions. Read / write to the
1905 simulations stdin and stdout and stderr interfaces. Merge in code
1906 from hw_pal that previously handled async I/O.
1907 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
1908 flush_stdoutput to simplify updating of existing code.
1910 * hw_pal.c (scan_hw_pal, write_hw_pal,
1911 hw_pal_instance_write_callback): Use the new sim_io functions.
1913 * main.c: Implement standalone versions of the new sim_io
1914 functions. Include support for async I/O.
1915 * sim_calls.c: Ditto. This time using the gdb callback table.
1917 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
1918 stdio configuration so that it works in the same way as the rest
1920 * psim.c (psim_create): Initialize current_stdio from the device
1922 * emul_generic.c (emul_add_tree_options): Enter a default value
1923 for use-stdio in the device tree.
1925 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1927 * gen-idecode.c (print_jump): Was always generating a jump back to
1928 idecode. Only necessary at tail of semantic code.
1929 (print_jump): Was always setting the processor's cia, even during
1930 startup when the processor was still undefined.
1931 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
1934 * options.c (print_options): Add printing of WITH_REGPARM and
1937 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
1938 (disabled) values if not defined.
1940 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1942 * ppc-cache-rules (cache): Change RS and RB to cache instead of
1943 compute. The block move instructions use them.
1945 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
1947 (CR_FIELD): New macro, extract specific CR register.
1948 (FPSCR_FIELD): New macro, extract specific FPSCR register.
1950 * registers.h (GPR): New macro, simplify accesses to GPR[i].
1952 * bits.c (INSERTED): Covert INSERTED macro into a function.
1953 (EXTRACTED): Conditionally compile on correct bit size macro.
1955 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
1957 * ppc-instructions: With hints from Paul Martin, type in missing
1958 some instruction semantics. Leave disabled for the moment.
1959 (Load Multiple Word): Ditto.
1960 (Store Multiple Word): Ditto.
1961 (Load String Word Immediate): Ditto.
1962 (Load String Word Indexed): Ditto.
1963 (Store String Word Immedate): Ditto.
1964 (Store String Word Indexed): Ditto.
1965 (Move to Condition Register from XER): Ditto.
1966 (Move From Condition Register): Ditto.
1967 (Move From FPSCR): Ditto.
1968 (Move to Condition Register from FPSCR): Ditto.
1969 (Move To FPSCR Field Immediate): Ditto.
1970 (Move To FPSCR Fields): Ditto.
1971 (Move To FPSCR Bit 0): Ditto.
1972 (Move To FPSCR Bit 1): Ditto.
1974 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1976 * std-config.h (SEMANTICS_INLINE): By default, mask out the
1977 inlining of semantic functions from DEFAULT_INLINE. Almost all
1978 configurations call the semantic code via a pointer so there is
1981 * std-config.h (ICACHE_INLINE): Ditto.
1983 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1985 * configure.in (sim_regparm): Add configuration option for
1986 enabling GCC's regparm attribute.
1987 * (sim_stdcall): Add configuration option for enabling GCC's
1990 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
1992 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
1994 * std-config.h (REGPARM): Extend construction of REGPARM macro so
1995 that it can include __stdcall__ function attribute.
1997 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
1999 * options.c (print_options): Include SUPPORT_INLINE in information
2002 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2003 termination test if creating idecode_run_until_stop. Push the
2004 loop termination test back into each alternative branch.
2006 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2008 * gen-icache.c (print_icache_function): Have the cache function
2009 always update the cache_entries semantic and address fields.
2011 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2012 when generating illegal instructions. This was commented out
2013 which is a hangover from looking a at switch statements generated
2014 using indirect jumps.
2016 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2018 * igen.c (print_my_defines): Replaces print_define_my_index.
2019 Print both a definition for MY_INDEX and MY_PREFIX.
2020 * gen-icache.c (print_icache_function): Adjust.
2021 * gen-idecode.c (print_jump_insn): Adjust.
2022 * gen-semantics.c (print_c_semantic): Adjust.
2024 * gen-support.c (gen_support_h): Add optional include to created
2025 support.h so that, like cpu, it is optionally inlined for all
2026 modules that include it.
2027 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2030 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2031 name for a lable and then branch to it.
2033 * ppc-instructions (convert_to_integer, Floating Round to
2034 Single-Precision, Floating Convert from Integer Doubleword): Use
2035 LABEL and GOTO instead of the recently added switch statements.
2037 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2039 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2042 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2044 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2045 * (--enable-sim-inline): Reorder patern matching of arguments so
2046 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2048 * configure: rebuild.
2050 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2052 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2053 configuration options. Let the user specify the packages or
2054 hardware devices that are to be included in the build. Makes it
2055 possible for user packages to be specified.
2057 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2058 hardware instead of checking it using ls. configure.in should
2059 have taken care of any problems.
2060 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2062 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2064 * psim.c (psim_options): Enter the argument to the memory size
2065 option directly into the device tree. Was using atol() which is
2066 dangerously non portable.
2068 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2070 * configure.in (icache): Extend icache flag to include an insn
2071 option. If specifyed the insn - aka instruction - is included in
2072 the instruction cache. Make this the default.
2073 * configure: re-generate.
2075 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2076 that the instruction should be included in the icache.
2078 * gen-icache.c (print_icache_body): If enabled, output code to put
2079 the instruction into the icache.
2080 (print_icache_struct): If enabled, add insn to the icache struct.
2082 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2084 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2087 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2089 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2090 the strict-alignment option when hardwired for non-strict
2093 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2095 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2097 * ppc-instructions: Adjust so that references are to MY_INDEX and
2100 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2102 * gen-idecode.c: Output the complete run_until_stop function
2103 instead of just the code to handle a single instruction issue.
2104 * : Have the generated idecode.c include inline.c (instead of psim.c).
2106 * std-config.h: Change psim.c so that it isn't inlined (as this is
2109 * psim.c (run_until_stop): Delete the old run_until_stop function
2110 instead calling the idecode_run and idecode_run_until_stop
2111 functions that gen-idecode.c is now creating.
2113 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2115 * dgen.c: Maintenance - update to use new features found in lf.c.
2117 * filter_filename.c (filter_filename): Maintenance - make the
2120 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2122 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2123 eliminate trace statements.
2125 * debug.c: Change trace format so that it is consistent
2126 (file:line-nr) with CC's error output.
2128 * gen-itable.c (itable_c_insn): Add the source file name and
2129 source line number to the instruction's informational entry.
2131 * debug.c (ITRACE): Use the itable (and my_index) to get the
2132 current instructions name and source line number.
2134 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2135 match new interface.
2137 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2138 corresponding call to ITRACE so that it still matches.
2140 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2141 of ITRACE. The CPP line directives would have previously set the
2142 line-nr and file name so ITRACE isn't needed.
2144 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2146 * gen-idecode.c (print_jump_until_stop_body): New function and
2147 idecode generation option. Instead of generating and calling
2148 separate functions containing the semantic and icache code
2149 generate a single monolythic function and use goto's (and GCC's
2150 indirect jump) to move between code blocks.
2152 * Makefile.in: Add sim_jump flag to those passed to igen.
2154 * configure.in: New option --enable-sim-jump (default disabled)
2156 * ppc-instructions: Eliminate any uses of labels and goto's.
2157 These result in duplicate declarations when a single flat function
2160 * ppc-opcode-jump: New file. Set of opcode rules useful when
2161 testing jumping idecodes.
2163 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2165 * gen-idecode.c: Optionally include the semantic code for an
2166 instruction in the function that is doing the decoding.
2168 * igen.c: Add option (-C) to generate semantics in the instruction
2171 * configure.in (--enable-sim-icache): Accept an option list such
2172 as 1024,define. Add a new choice to the list - semantic - which
2173 will cause igen to generate instruction decode functions that
2174 include the corresponding semantic code.
2176 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2178 * configure.in: New option --enable-sim-line-nr (default enabled).
2179 Enable/disable the inclusion of CPP line directives in the
2180 generated files. Such directives refer back to the source files
2181 used when generating the simulator code.
2183 * Makefile.in (sim_line_nr): Pass to igen.
2185 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2187 * igen.c (main): Revamp the options so that more letters are
2190 * configure.in: Adjust to match igen's revamped options
2192 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2194 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2195 that they use the same technique as igen (ie a dummy targets
2196 tmp-pk and tmp-hw are created).
2198 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2200 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2202 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2204 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2205 out the loading of each of the tables from the rest of igen.
2206 * Makefile.in: Adjust.
2209 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2210 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2211 code creating each separate set of generated files.
2212 * Makefile.in: Adjust.
2215 * gen-support.[ch]: New files. Output the support functions (found
2216 in the ppc-instructions file) into a separate file.
2218 * inline.h, inline.c: Add.
2219 * std-config.h: Add.
2221 * ld-cache.c: Re-design the cache table format.
2222 * ppc-cache-rules: Update to new format.
2224 * ld-decode.c: Re-design the decode table format.
2225 * ppc-opcode-simple: Update to new format
2226 * ppc-opcode-complex: Ditto
2227 * ppc-opcode-flat: Ditto
2229 * filter.h, filter.c: New files. Separate the opcode filter table
2230 reading code from the rest of igen.c. Re-design the filter so that
2231 it works inclusivly not exclusivly.
2232 * igen.c: Remove the opcode filter table loading code.
2233 * Makefile.in (filter.o): Adjust
2234 * configure.in: Adjust filter flag so that default includes 32bit
2236 * ppc-instructions: Clean up filter fields so that only in use
2237 entries are specifed (ie delete `be').
2239 * misc.c (name2i, i2name): New function. Map between a string and
2242 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2244 * sim_calls.c (sim_close): If simulator not created, skip printing
2247 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2249 * registers.c (register_description): Typo, insns not insn.
2251 * ppc-instructions (model_get_number_of_stalls): New model function,
2252 returns number of stalls for the specified processor.
2253 * psim.c (psim_read_register): Add call to new function
2254 model_get_number_of_stalls().
2256 * ppc-instructions (model_get_number_of_cycles): New model function,
2257 returns number of stalls for the specified processor.
2258 * psim.c (psim_read_register): Add call to new function
2259 model_get_number_of_cycles().
2261 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2263 * device_table.h: Don't pass the parent device into a devices
2264 create function. This makes the create function consistent with
2266 * device.c (device_template_create_device): Ditto
2267 * hw_pal.c (hw_pal_create): Ditto
2268 * hw_core.c (hw_core_create): Ditto
2269 * hw_vm.c (hw_vm_create): Ditto
2270 * hw_disk.c (hw_disk_create): Ditto
2271 * hw_nvram.c (hw_nvram_create): Ditto
2272 * hw_memory.c (hw_memory_create): Ditto
2273 * hw_cpu.c (hw_cpu_create): Ditto.
2275 * device.c (split_find_device): Allow a null initial parent device.
2276 (device_template_create_device): Ditto.
2278 * device.c (device_create_from): Make local (static) only used
2280 * device_table.h: typedef device_callbacks moved here (from
2281 device.h) where it belongs.
2283 * hw_core.c: New file. Implements just the core device using the
2286 * corefile.c: Moved all core device functions into the new
2287 hw_core.c file. core_device_create() disapears.
2289 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2292 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2294 * hw_init.c: Correct typo in comment.
2296 * corefile.c (core_init): Remove any remaining references to a
2298 (core_map_find_mapping): Ditto.
2300 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2302 * corefile.c (core_init): Make function global so that other
2303 devices are able to use the full core object.
2305 * corefile.c (core_create, core_from_device): Break core_create
2306 into two functions. The first creates a core object, the second
2307 returns the core object associated with a core device.
2309 * corefile.c (core_device_create): Use core_create to make the
2312 * psim.c (psim_create): Use core_from_device() instead of
2315 * device.c (device_template_create_device): Make static as only
2316 needed by functions internal to device.c.
2318 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2320 * ppc-opcode-test-2: Remove description of fields.
2321 * ppc-opcode-complex: Ditto
2322 * ppc-opcode-flat: Ditto
2323 * ppc-opcode-simple: Ditto
2324 * ppc-opcode-stupid: Ditto
2325 * ppc-opcode-test-1: Ditto
2326 * ppc-cache-rules: Ditto
2328 * igen.c: Add description of files as a comment at the front.
2330 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2332 * configure.in: Check for whether the termios and termio
2333 structures are really defined, and whether or not, they define the
2335 * configure: Regenerate.
2337 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2340 * emul_unix.c: Various changes to allow for building on systems
2341 with different termio and termios structures. If host has both
2342 termio and termios, just use termios. No longer include
2345 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2347 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2348 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2350 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2351 (AC_PROG_INSTALL): Added.
2352 * configure: Rebuilt.
2354 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2356 * corefile.h: Rewrite documentation so that it can be extracted and
2357 converted into texinfo (and hence ready for translation into html,
2361 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2363 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2365 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2367 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2368 is the source of SEEK_SET.
2370 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2372 * psim.c (psim_options): Correct type of dummy arguments being
2373 passed to a device_ioctl call.
2375 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2376 (write_stack_arguments): Ditto.
2377 * hw_trace.c: Instance callback entry no longer a table.
2379 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2381 * emul_unix.c (do_unix_umask): Cast printf argument.
2382 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2384 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2386 * hw_init.c (update_for_binary_section): Abort if we find an
2387 .interp section, which indicates the need for shared libraries to
2390 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2392 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2393 for time, gettimeofday, and getrusage system calls.
2394 ({solaris,linux}_descriptors): Add new system calls.
2395 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2396 (do_get{,p}pid): Use pic_t types.
2398 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2399 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2400 * config{.in,ure}: Regenerate.
2402 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2404 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2405 `ppc-elf' and `ppc-xcoff' for the stack-type.
2406 * emul_unix.c (emul_unix_create): Ditto.
2407 * emul_bugapi.c (emul_bugapi_create): Ditto.
2408 * hw_init.c: Reconize the new names.
2410 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2411 call is used (no system parameter).
2413 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2415 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2418 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2419 (os_emul.o): Depend on emul_unix.h.
2420 (emul_unix.o): New dependency.
2422 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2423 alignment to 0, which means use appropriate alignment for mode.
2424 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2425 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2426 * config.in: Regenerate.
2427 * configure: Regenerate.
2429 * emul_generic.c (emul_write2_status): New function to return
2430 results in r3 and r4 for Solaris system calls.
2431 (emul_do_system_call): If the system call is not support, but
2432 there is a string for the system call name, print out the string
2433 instead of the system call number.
2435 * emul_generic.h (emul_write2_status): Declare it.
2437 * emul_netbsd.c: Use /* */ around comment on #endif.
2439 * os_emul.c: Include emul_unix.h.
2440 (os_emulations): Add emulations for Solaris, and Linux.
2442 * psim.c (psim_usage): Add message about solaris, linux
2445 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2447 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2449 * README: Correct PSIM's title
2451 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2453 * basics.h: New global type object_disposition, used to indicate
2454 the status of objects when things are restarted.
2456 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2458 * device_table.h: Change the interrupt descriptor structure so
2459 that it includes an additional member - an upper bound on the
2460 interrupts by that name.
2462 * device.c (device_interrupt_decode): Allow a range of interrupt
2463 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2465 * device.c (device_tree_print_device): Include a list of valid
2466 interrupt ports when listing supported devices.
2468 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2470 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2471 the interrupt net so that it uses int0 .. intN.
2473 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2475 * device.h, device.c (device_ioctl): Drop the system argument.
2476 Devices can not obtain this using the device_system() call.
2477 * device_table.h: Adjust accordingly.
2478 * hw_*.c: Adjust accordingly.
2479 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2480 * psim.c (psim_options): Use a device_ioctl call to force the
2481 hw_trace device to update the trace options.
2482 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2485 * psim.c (psim_init): Re-order initialization so that the
2486 os-emulation is initialized after the device tree. Without this,
2487 os-emul's are not able to create instances or access properties
2488 that contain an instance handle.
2490 * device.h, device.c (device_add_*_property): Make these functions
2491 internal to device.c. The user has access to the more generic
2492 device_tree_add_parsed function. Differentiate between the initial
2493 and current value for each property.
2494 * (clean_device_properties): New function that deletes any
2495 properties created after the start of a simulation and restores
2496 the initial value of any others (ignoring ihandles).
2497 * (init_device_properties): (Re)Initialize any properties that
2498 contain ihandles. create
2500 * (device_tree_init): Include calls to clean the device tree's
2501 properties and then initialize them. Document this in the device.h
2504 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2506 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2507 interrupt even if it is not yet possible to deliver it.
2509 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2511 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2512 visable adjusting the arguments so that the interface is correct.
2513 (mon_print_info): Adjust calls.
2515 * registers.h, registers.c (register_description): Add phony
2516 cycle, insn and stall registers.
2518 * psim.c (psim_read_register): Return nr of instructions for given
2521 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2523 * hw_htab.c: New file. Extract contents from disk_table.c.
2524 Contains a device that, during initialization will create a
2525 PowerPC htab in memory.
2526 * hw_register.c: New file. Extract contents from disk_table.c.
2527 Contains a device that, during initialization, will parse its
2528 property list and use that to initialize various processor
2529 registers (not target specific).
2530 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2531 a device that handles accesses to invalid virtual memory addresses
2533 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2534 devices that can initialize memory from a file.
2535 * hw_trace.c: New file. Extract contents from disk_table.c.
2536 Configure trace options from property values.
2538 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2539 hw_trace.c): Add new device files.
2541 * device_table.c: Remove above code, now in separate independant
2544 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2546 * hw_disk.c: New file. Disk and CDROM device.
2548 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2550 * pk_disklabel.c: New file. Implement the miss-named disk-label
2553 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2556 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2557 they are re-created when the makefile is updated.
2559 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2560 (below the iobus) to the device tree. Include an ihandle of
2561 the disk as /chosen/disk.
2563 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2564 output and (new) disk handles yet.
2565 * (emul_bugapi_init): Initialize the input, output (and just added)
2567 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2568 what I think the behavour is).
2569 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2570 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2571 though this isn't part of the spec - makes it possible for machine
2572 code to signal the aporting of a simulation run.
2574 * emul_chirp.c (chirp_emul_call_method): Add support for the
2575 claim/release methods.
2576 * (chirp_emul_exit): Add an optional exit status argument to
2577 the exit method. Makes it possible for chirp emul simulations
2578 to abort upon an error.
2579 * device.h, device.c (device_instance_claim,
2580 device_instance_release): New methods for claiming and releasing
2582 * hw_memory.c: add claim and release memory methods.
2583 * hw_*: Use the claim memory method when allocating physical
2586 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2588 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2589 time when updating the clock.
2591 * hw_nvram.c: Tidy up documentation
2593 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2595 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2596 macros to determine whether or not the appropriate st_<xxx> fields
2597 exist in the stat structure.
2598 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2599 the real basic ones like open, read, write, etc.
2600 * config{.in,ure}: Regenerate.
2602 * emul_netbsd.c: Add support for missing system calls, and/or
2603 missing stat fields.
2604 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2607 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2609 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2610 F_SETFL not defined.
2612 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2614 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2617 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2619 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2620 * config{.in,ure}: Regenerate.
2621 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2624 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2626 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2629 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2631 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2632 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2635 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2637 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2638 fgets to read line. If not using stdio, do a simple blocking read
2641 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2643 * Makefile.in: Correctly build simulator for build machine != host
2646 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2648 * configure.in (--enable-hostendian): Rework so the default uses
2649 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2651 * configure: Regenerate.
2653 * sim-endian.h: Add more tests for host endian to support more
2654 platforms in a cross compilation environment.
2656 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2658 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2659 use stdio, instead of unpended read/printf_filtered.
2660 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2661 flush stdout after writing the characters.
2663 * options.c (print_options): Print out WITH_STDIO.
2665 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2666 configuration variable.
2667 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2668 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2669 files to contain directory pieces.
2671 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2672 should use stdio for console input.
2673 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2675 * configure.in (--enable-sim-stdio): Add new switch to control
2676 whether stdio is used for console I/O.
2677 * configure: Regenerate.
2679 * interrupts.c (external_interrupt): Declare it to be
2680 INLINE_INTERRUPTS, not INLINE_CPU.
2682 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2684 * events.c (insert_event_entry): Allow events to be scheduled
2685 *NOW* (at delta time 0). Add assertions to clarify behavour of
2688 * events.c (update_time_from_event): New function. Calculates the
2689 number of ticks from the next event. Use this.
2691 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2693 * emul_netbsd.c (do_break): Return 0 if success (instead of
2696 * device_table.c (vm_ioctl_callback): Don't return adjusted break
2699 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
2701 * device_table.h: Change type of the device ioctl so that it
2702 returns an int (status).
2703 * device.h (device_ioctl): Ditto.
2704 * device.c (device_ioctl): Ditto.
2706 * device_table.c (stack_ioctl_callback): Return 0 status.
2707 (vm_ioctl_callback): Ditto
2709 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2711 * emul_netbsd.c (do_read): Correctly set the return value.
2714 (do_geteuid): Ditto.
2716 (do_getegid): Ditto.
2718 (do_sigprocmask): Ditto.
2721 (do_gettimeofday): Ditto.
2722 (do_getrusage): Ditto.
2726 (do___sysctl): Ditto.
2728 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2730 * device_table.c (vm_ioctl_callback): Don't access the processor
2731 registers directly, instead leave it to the caller to handle this.
2733 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
2734 perform a break. Pass in the new break value and set the
2735 registers according to the result.
2737 * emul_generic.c (emul_write_status): Change so that r3 contains
2738 either status or errno and failure is indicated by SO.
2740 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2742 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
2745 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
2747 * interrupts.h (interrupts): New structure contains state of
2750 * cpu.c (cpu_interrupts): New function. Pending interrupt status
2751 in the cpu and grant access to it. Add interrupts to cpu
2754 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
2756 * device.c (device_tree_add_parsed): Check that the creation of a
2757 device instance worked before using it.
2759 * psim.c (psim_halt): Remove cia argument from psim_halt. This
2760 function does not save the CIA so do not pass it in.
2762 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
2764 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
2765 found in device_table.c into a single hack pal.
2767 * device_table.c (halt, icu, console): Delete.
2769 * Makefile.in (hw_pal.o): New dependency.
2771 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
2772 so that it uses the pal instead of the icu/halt/console devices.
2773 Wire the pal's interrupt ports up to the cpu nodes.
2775 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
2777 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
2778 device_table.c to here.
2780 * Makefile.in (hw_iobus.o): New dependency.
2782 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2784 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
2785 (emul_bugapi_create): Create input, output from /chosen/stdin and
2787 (emul_bugapi_do_{read,write}): Switch to use device_instance
2789 (emul_bugapi_instruction_call): Change calls to
2790 emul_bugapi_do_{read,write} to pass device instance argument.
2792 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2794 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
2795 default is not written out if a default was already written.
2797 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
2798 size cooked_buf, not sizeof natural_word, since floating point
2799 registers are 8 bytes.
2801 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2803 * configure: Regenerate with autoconf 2.9.
2805 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
2807 * device_table.h: Always include string headers.
2809 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2811 * main.c (error): Be careful to not try to print out statistics
2812 when the simulation was never created.
2814 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2816 * basics.h: Move the event queue's definition to here so that it
2817 can be refered to globally with out importing all of events.h.
2819 * psim.h, psim.c (psim_event_queue): New function. Grant access
2820 to the simulation event queue. Will make this the single point of
2821 access (there is after all only one event queue in the
2824 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
2825 queue instead of it being passed in. No longer allow access to
2826 the cpu's copy of the event queue.
2828 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2830 * events.h, events.c (event_handler): Remove event_queue from
2831 arguments passed to an event handler. That argument is redundant
2832 - the `data' should refer to a data structure that contains the
2833 event queue if queing is needed.
2835 * cpu.c (cpu_decrement_event): adjust
2837 * events.c (event_queue_process): adjust
2839 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2841 * device.h, device.c (device_system): New, returns a handle for
2842 the system given the device.
2844 * device.c (device_address_init): Store a pointer back to the
2845 system in each devices node.
2847 * device_table.h: Don't pass `system' into each device when it is
2848 being initialized, this is now available using device_system(me).
2850 * device.c (device_address_init, device_data_init): Adjust.
2852 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
2855 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2857 * interrupts.c (decrementer_interrupt, external_interrupt):
2858 Remember that an interrupt wasn't delivered so that it can be
2861 * interrupts.c (check_masked_interrupt): New function. (re)
2862 checks for the posibility that a recent change to the MSR may have
2863 made it possible to deliver an interrupt that was previously
2864 masked be the EE bit.
2866 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
2867 a pending interrupt being delivered using check_masked_interrupt().
2869 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
2870 leaving it to that module to handle both interrupt synchronization
2873 * cpu.c (struct _cpu): remove variables that were going to record
2874 pending decrementer and external interrupts.
2876 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2878 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
2879 between the interrupt controller and the simulators internal
2880 processor model. Maps device interrupts onto the processor
2881 interrupt function calls.
2883 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2885 * hw_nvram.c: NVRAM device that includes a real-time clock that is
2886 updated each second.
2888 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2890 * device.h (attach_type): Remove attach_default type address
2891 spaces. Will replace with levels of callback memory.
2893 * corefile.h, corefile.c (new_core_mapping), corefile.c
2894 (core_map_attach): Replace default attach with a layerd callback
2897 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2899 * device.c (split_property_specifier): ensure that only a single
2901 (split_value): New function, parses the value part of a device
2904 * device.c (device_tree_add_parsed): Use the interrupt conversion
2905 functions to determine the interrupt port numbers.
2907 * device_table.h: Add table that maps between an interrupts
2908 symbolic name and its port number.
2910 * device.h, device.c (device_interrupt_decode,
2911 device_interrupt_encode): new functions use the recently added
2912 interrupt port name/number tables to perform conversion.
2914 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2916 * device.h, device.c (device_set_array_property,
2917 device_set_boolean_property, device_set_ihandle_property,
2918 device_set_integer_property, device_set_string_property): New
2919 functions - allow the value of a given property to be changed.
2921 * device.h, device.c: Re-order declaration and definition of
2924 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2926 * device.c (device_tree_print_device, device_tree_add_parsed):
2927 Remove references to phandle properties.
2929 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2931 * Makefile.in (corefile.o): missing dependency on device_table.h
2934 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2936 * device_table.h: Revamp device init callbacks so that they are a
2938 * device.c (device_init_data, device_init_address): If an init
2939 callback is NULL assume it should do nothing.
2940 * device_table.c (ignore_device_init, unimp_device_init): delete
2942 * device_table.c, hw_memory.c: adjust.
2946 * (device_instance): ditto.
2948 * (address nee config_address): ditto.
2949 * (interrupt): ditto.
2951 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2953 * igen.c (idecode_switch_end): Output a default entry when the
2954 switch statement is perfect. Firstly stops GCC complaining about
2955 an incomplete switch and secondly it will be eliminated by a good
2958 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2960 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
2961 hw_*.c files. hw.h declares a device descriptor table for each hw
2962 device while hw.c lists those tables in a form suitable for the
2963 construction of a top leveltable in device_table.c.
2965 * Makefile.in (device_table.o): now depends on hw.c a generated
2968 * device_table.c (device_table): Re-arange the table of devices so
2969 that two levels are possible. Make use of hw.c.
2970 * device_table.h: ditto.
2972 * device.c (device_template_create_device): Handle new two level
2973 device lookup table.
2974 * device.c (device_usage): ditto.
2976 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2978 * device_table.c: Delete the memory device (moved to hw_memory.c).
2980 * hw_memory.c: New file. Just an OpenBoot memory device.
2982 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
2984 * device.c (device_init_address): New. Split initialization into
2985 two stages, address and address spaces
2986 * device.c (device_init_data): New. ... and data or other work.
2987 With out this, devices try to modify memory before it as been
2990 * device.c (device_tree_init): Update to perform staged
2993 * device.c (device_init): Delete.
2995 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
2997 * device_table.c (data_*): Rewrite to make heaver use of property
2998 nodes. Allow initialization by different data types.
2999 * device_table.c (htab_* pte_*): Rewrite to use properties.
3001 * emul_chirp.c (emul_chirp_create): Use
3002 * emul_bugapi.c (emul_bugapi_create): Ditto
3003 * emul_netbsd.c (emul_netbsd_create): Ditto
3005 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3007 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3008 with options that haven't yet been specified.
3009 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3010 with demo devices and properties.
3012 * emul_chirp.c (emul_chirp_create): Update to use new
3013 device_tree_add_parsed call and additional information now
3014 included in the device tree. Use emul_add_tree* functions to add
3015 any missing details.
3016 * emul_bugapi.c (emul_bugapi_create): Ditto
3017 * emul_netbsd.c (emul_netbsd_create): Ditto
3019 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3021 * device.c (device_instance_create): New. Create/delete and
3022 operate on instances of a device.
3023 * device.c (device_instance_delete): Ditto
3024 * device.c (device_instance_read): Ditto
3025 * device.c (device_instance_write): Ditto
3026 * device.c (device_instance_seek): Ditto
3027 * device.c (device_instance_data): Ditto
3028 * device.c (device_instance_name): Ditto
3029 * device.c (device_instance_path): Ditto
3031 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3032 * emul_chirp.c (chirp_emul_close): Ditto
3033 * emul_chirp.c (chirp_emul_read): Ditto
3034 * emul_chirp.c (chirp_emul_write): Ditto
3035 * emul_chirp.c (chirp_emul_seek): Ditto
3037 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3038 Being careful to convert all from target to host byte order.
3039 * emul_chirp.c (chirp_write_h2t_args): Converse.
3041 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3043 * device.c (device_tree_add_parsed): New. Rewrite code to add
3044 devices to the device tree so that a single printf style function
3047 * device.c (device_tree_add_*): Delete. Replaced by above.
3049 * device.c (split_device_specifier): Functions to manipulate a
3050 device specifier (path) breaking it into its components
3051 * device.c (split_property_specifier): Ditto
3052 * device.c (split_device_name): Ditto
3053 * device.c (split_find_device): Ditto
3055 * device.c (scan_*): Delete
3057 * device.c (device_tree_find_device): Rewrite to use above.
3058 * device.c (device_add_property): Ditto
3060 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3062 * psim.c(psim_options): Parse the psim options, installing their
3063 value in the device tree. Options are now first entered into a
3064 device tree and then extracted out again when needed. This allows
3065 greater flexability in configuration.
3067 * psim.c (psim_tree): Returns a basic device tree ready for
3068 parsing by psim_options.
3069 * psim.c (psim_usage): New. Give usage to varing levels of detail
3070 according to the verbosity. In turn output device and trace
3073 * main.c (main): Update to use new system
3074 * sim_calls.c (sim_open, sim_do_command): Ditto
3076 * psim.c (psim_options): Add `r' option - ram size.
3077 * psim.c (psim_options): Add `o' option - openboot tree entry.
3078 * psim.c (psim_options): Add `h'/`H' options - more help.
3080 * debug.c (trace_usage): Add more detailed help.
3081 * device.c (device_usage): New. Output help including a list of
3082 the devices currently available in the device table.
3083 * device_table.c: Add usage operator to each device.
3085 * corefile.c (core_create, core_device_create): Adjust so that the
3086 core device is created earlier for psim_tree(). Core can later be
3089 * psim.c (psim_create): Update to handle above way of creating
3090 things. Extract all information from the device tree.
3092 * device_tree.c (trace_*): New device node, its properties are
3093 used to set the value of the trace options. Init this device (in
3094 psim_options) when ever the options are updated.
3096 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3098 * debug.h: Add trace_print_info, trace_print_device_tree and
3099 trace_dump_device_tree. The first is a replacement for the
3100 variable `print_info' found in main.c and sim_calls.c. The latter
3101 two enable the dumping of the entire device tree.
3103 * debug.c: Add to trace_description table.
3105 * main.c (main): Use above trace instead of local variable
3106 * sim_calls.c (sim_close): Ditto
3108 * device.c (device_tree_print_device): New. Prints the device
3109 tree in a format that is consistent with what can be parsed by the
3110 device tree load from file code.
3112 * psim.c (psim_create): Dump device tree if enabled. If nump
3113 selected, exit psim immediatly.
3115 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3117 * corefile-n.h (core_map_read_N): When mapping from an address to
3118 a device, do not subtract the devices base. The device its self
3119 can do this. Brings the behavour into line with OpenBoot.
3120 * corefile-n.h (core_map_write_N): Ditto
3121 * corefile.c (core_map_read_buffer): Ditto
3122 * corefile.c (core_map_write_buffer): Ditto
3124 * device_table.c (console_io_read_buffer_callback): Adjust to
3125 handle biased address.
3126 * device_table.c (console_io_write_buffer_callback): Ditto
3128 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3130 * device.c (attach_device_interrupt_edge): New. Interrupt model
3131 did not allow interrupts to be wired up as a general net (edges).
3132 Re-implement so that interrupt events can be passed to multiple
3133 controllers and interrupt controllers can further propogate
3136 * device.c (attach_device_interrupt_edge) : New, Ditto
3137 * device.c (detach_device_interrupt_edge) : New, Ditto
3138 * device.c (clean_device_interrupt_edges) : New, Ditto
3139 * device.c (device_interrupt_event) : New, Ditto
3140 * device.c (device_interrupt_attach) : New, Ditto
3141 * device.c (device_interrupt_detach) : New, Ditto
3142 * device.c (device_child_interrupt_attach) : New, Ditto
3143 * device.c (device_child_interrupt_detach) : New, Ditto
3145 * device.c (device_attach_interrupt) : Delete old
3146 * device.c (device_detach_interrupt) : Delete old
3147 * device.c (device_interrupt) : Delete old
3148 * device.c (device_interrupt_ack) : Delete old
3150 * device_table.c (unimp_*) : Update to match
3152 * device_table.c (icu_io_write_buffer_callback) : Update to use
3154 * device_table.c (icu_interrupt_event_callback) : Ditto
3156 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3158 * device.c (external_to_device) : New function that provides a
3159 standard mapping between a devices internal representation (a
3160 pointer) and its external (or what is passed to a client)
3161 representation (a phandle). Implement using the cap object
3162 attached to the root node.
3164 * device.c (device_to_external) : Ditto
3165 * device.c (external_to_device_instance) : Ditto but for ihandle
3166 and device instance.
3167 * device.c (device_instance_to_external) : Ditto
3169 * Makefile (device.o): Add dependency on cap.
3171 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3172 needing to translate between internal and external representations
3173 changed to use the external_to_device et.al. device operations.
3174 * emul_chirp.c (chirp_emul_*) : Ditto
3176 * Makefile (emul_chirp.o): Remove dependency on cap
3178 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3180 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3181 on OpenBoot note section.
3183 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3185 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3186 read/write calls for buffer transfers. This will cause a fault to
3187 occure if the transfer fails. CHRP catches the fault while the
3188 others suffer the consequences.
3189 (emul_read_buffer): Ditto.
3190 (emul_write_word): Ditto.
3191 (emul_read_word): Ditto.
3192 (emul_read_string): Ditto.
3194 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3196 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3197 emul_generic (emul_blr_instruction): Use a real blr instruction to
3198 return from a client service call.
3200 * emul_chirp.c (services): Add all OpenBoot services to table.
3202 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3203 (emul_chirp_create) : Use names instead of numbers for
3204 instructions being stored in memory.
3206 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3208 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3209 (From NetBSD) files.
3211 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3213 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes