1 2001-12-01 Andrew Cagney <ac131313@redhat.com>
4 * ppc-spr-table: Add SDA and PIR.
6 2001-10-29 Andrew Cagney <ac131313@redhat.com>
8 * tree.c (parse_size): Assert #size-cells > 0.
9 (parse_address): Ditto for #address-cells.
10 (parse_reg_property): Only parse the size when #size-cells is
13 2001-10-25 Andrew Cagney <ac131313@redhat.com>
15 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
16 * hw_htab.c (htab_map_binary): Don't try to map the text section
18 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
20 (emul_chirp_create): Map in the interrupt table.
22 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
24 * Makefile.in: Add dependencies on $(CPU_H).
26 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
28 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
31 2001-03-04 Andrew Cagney <ac131313@redhat.com>
33 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
35 (do_stat): Only do SYS test when SYS_stat defined.
36 (do_sigprocmask): Ditto for SYS_sigprocmask.
37 (do_fstat): Ditto for SYS_fstat.
38 (do_getdirentries): Ditto for SYS_getdirentries.
39 (do_lstat): Ditto for SYS_lstat.
41 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
43 * emul_netbsd.c (do_open): Translate the flag parameter to the
44 open syscall to the numbers supported by the host.
46 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
48 * sim-endian.h: Don't have parameters on macro definitions which
49 are simply renaming functions, to permit use of XCONCAT2 in both
50 the macro name and the arguments in a use of such a definition.
52 2000-11-15 Jim Blandy <jimb@redhat.com>
54 * sim_calls.c: Doc fix.
55 (sim_fetch_register, sim_store_register): Call
56 gdbarch_register_name directly, instead of going through
59 2000-10-24 Geoff Keating <geoffk@cygnus.com>
61 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
63 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
65 * configure: Regenerated to track ../common/aclocal.m4 changes.
67 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
69 * events.c (event_queue_process): Call update_time_from_event
70 every time an event is removed from the queue.
71 (update_time_from_event): Delete assertion that a negative
72 time_from_event implies an empty event queue.
74 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
76 * interrupts.c (deliver_hardware_interrupt): Print time trace in
78 * events.c (event_queue_process): Cleanup trace message.
79 (update_time_from_event): Trace full event queue.
81 2000-03-25 Geoff Keating <geoffk@cygnus.com>
83 * ppc-instructions (Disabled_Exponent_Underflow): Increment
84 the exponent when denormalizing.
86 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
88 * configure: Regenerated to track ../common/aclocal.m4 changes.
90 1999-05-08 Felix Lee <flee@cygnus.com>
92 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
93 * configure: Regenerated to track ../common/aclocal.m4 changes.
95 1999-04-02 Keith Seitz <keiths@cygnus.com>
97 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
98 the frequency at which the poll_quit callback is called.
99 (poll_quit_count): New global.
100 (sim_io_poll_quit): Only call the poll_quit callback
101 after the specified POLL_QUIT_INTERVAL.
103 1999-02-22 Jim Lemke <jlemke@cygnus.com>
105 * dc-complex: Force expansion on all bits of field BO.
106 Previously, the least-significant (prediction) bit was ignored.
107 * ppc-instructions (conditional branches): Implement mpc860c0 option.
108 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
109 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
110 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
111 * interrupts.c (program_interrupt): Added handling for above interrupt.
113 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
115 Make the simulator compatible with the MPC750. It would be nicer
116 to make this a real multi-sim, but that's more work than we have
118 * emul_generic.c (emul_add_tree_options): Only require strict
119 alignment if it was explicitly requested at configuration time.
120 Don't make it the default for little-endian machines.
121 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
122 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
123 THRM2, THRM3): Plop in the MPC750 SPR registers.
124 (DABR): This is weird. This was HID5, but the PPC spec says this
125 should be DABR; why did some random processor use it for something
126 else? The HID5 entry dates back to the original checkin of the
127 simulator code in 1995, so remove it.
128 * sim_calls.c (register_names): Delete this; since the user can
129 now change GDB's list of register names dynamically, we can't
130 pretend there's a static mapping here.
131 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
132 function to get the register name. That ought to be accurate.
133 However, we're changing a compile-time dependency (using the
134 REGISTER_NAMES macro) into a link- and run-time dependency
135 (calling REGISTER_NAME, which happens to be a function call on the
138 1999-01-22 Jim Lemke <jlemke@cygnus.com>
140 * igen.c(gen_semantics_[ch]): setup/use of new option
142 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
143 ppc-instructions(the four branch insn groups): detect problematic br's.
144 psim.c(is_num - added, psim_options): Parse and init new option.
145 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
147 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
149 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
151 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
153 * main.c (sim_io_poll_quit): Stub function.
155 * events.c (SIM_EVENTS_POLL_RATE): Define.
156 (sim_events_poll): Copy function from common/sim-events.c.
157 (event_queue_init): Copy scheduling of sim_events_poll from same.
159 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
160 poll the external environment.
162 1998-11-19 Michael Meissner <meissner@cygnus.com>
164 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
165 fractional type, so that quiet NaN's aren't treated like
168 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
170 * table.c (table_open): For cygwin hosts, we need to use the
171 return value from the read routine as the number of bytes to
172 process. This apparently is due to text-mode vs binary-mode. If
173 the mounts are done text-mode, then the size returnedby fstat()
174 may be different than the number of bytes "read" in text mode.
176 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
178 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
183 1998-09-03 Michael Meissner <meissner@cygnus.com>
185 * emul_{netbsd,unix}.c: Update copyright year.
187 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
189 * sim_calls.c (sim_fetch_register, sim_store_register):
190 return zero when nothing to do.
192 1998-06-26 Michael Meissner <meissner@cygnus.com>
194 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
195 * configure: Regenerate.
196 * emul_{netbsd,unix}.c (toplevel): No longer try to include
197 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
199 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
201 * Makefile.in: The run target depended on a target psim$(EXEEXT),
202 but there was no such target, only plain psim. So I changed the
203 run target to depend on psim.
205 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
207 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
208 now defined in ../common/aclocal.m4, and the double definition causes
209 problems with AC_SUBST of EXEEXT.
210 * configure: Regenerate.
212 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
214 * aclocal.m4: new file for AM_EXEEXT macro
215 * configure.in: call AM_EXEEXT
216 * configure: regenerate with autoconf 2.12.1.
217 * Makefile.in: add EXEEXT support
219 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
221 * configure: Regenerated to track ../common/aclocal.m4 changes.
224 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
226 * acconfig.h: New file.
227 * configure.in: Reverted change of Apr 24; use sinclude again.
228 Don't call AC_C_CROSS.
230 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
232 * configure: Regenerated to track ../common/aclocal.m4 changes.
235 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
237 * Makefile.in (top_builddir): New macro.
238 (INTLLIBS): New macro.
239 (INTLDEPS): Likewise.
240 (psim): Depend on INTLDEPS; link against INTLLIBS.
241 * configure.in: Call CY_GNU_GETTEXT.
243 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
245 * configure: Regenerate with autoconf 2.12.1.
247 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
249 * psim.c (psim_read_register, psim_write_register): Handle updates
252 * registers.c (register_description): Reconize "FPSCR".
254 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
255 MSR FP exception mode. Do not enable FPSCR bits.
256 * emul_unix.c (emul_unix_create): Ditto.
258 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
260 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
261 length parameter. Return -1.
263 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
265 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
266 (is_invalid_zero_divide, invalid_zero_divide_operation): New
269 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
271 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
274 1997-11-05 Felix Lee <flee@cygnus.com>
276 * emul_chirp.c: #ifdef HAVE_UNISTD_H
278 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
280 * corefile.c (core_attach): Pad out allocated memory regions so
281 that they are always correctly aligned.
282 (struct _core_mapping, core_map_attach, core_init,
283 new_core_mapping): Change free_buffer to type void*.
285 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
287 * sim_calls.c (zfree): Call free correctly.
289 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
291 * sim_calls.c (zfree): Use free, not mfree.
292 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
295 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
297 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
298 mask extracting shift amount. Correctly condition for setting XER
300 (ldhau): From Johannes Reisinger, update rA after load.
302 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
304 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
306 * words.h: __int64 instead of long long for MSVC.
308 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
310 * sim_calls.c (sim_create_inferior): Check the simulator was
311 initialized before creating inferior.
313 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
314 sign bit using 64 bit and not a 32 bit mask.
316 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
318 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
319 it has been used, not before.
321 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
323 * sim_calls.c (sim_kill): Delete.
324 (sim_create_inferior): Add ABFD argument.
325 (entry_point): Delete variable.
326 (sim_load): Move setting of PC from here.
327 (sim_create_inferior): To here.
329 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
331 * sim_calls.c (sim_open): Add ABFD argument.
333 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
335 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
336 CR register updates dependant on RC value had logic backwards.
338 * ppc-instructions (Load String Word Immediate): From Brad Parker
339 - sense of wrap test in check for overwriting RA wrong.
340 (Load String Word Indexed): Ditto.
342 * configure.in: From Erik Landry - set sim_default_model not
343 sim_model for sim-default-model option.
344 * configure: Regenerate.
346 * interrupts.c (check_masked_interrupts): Schedule a hardware
347 interrupt delivery when FP interrupts get enabled.
348 (program_interrupt): Generate FP exceptions instead of aborting.
349 (deliver_hardware_interrupt): Deliver a FP exception if so
352 * registers.h: Add definition of fpscr_vx_bits.
354 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
356 (FPSCR_END): Explicitly check for possible floating point
357 exception conditions.
358 (FPSCR_BEGIN): Simplify.
360 * ppc-instructions (Move From FPSCR): Enable.
361 (Move To FPSCR Bit 1): Ditto.
362 (Move To FPSCR Bit 0): Ditto.
363 (Move To FPSCR Field Immediate): Ditto.
364 (Move to Condition Register from FPSCR): Simplify.
365 (invalid_arithemetic_operation): Generate a QNaN when invalid
366 operation exception disabled.
368 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
370 * sim_calls.c (sim_open): Add callback argument.
371 (sim_set_callbacks): Delete.
373 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
375 * sim_callbacks.h (error): Make declaration match gdb's.
376 * main.c (error): Ditto.
378 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
380 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
381 stopped/SIGINT. Exit implies a status code.
383 * psim.c (cntrl_c_simulation): From main.c. Event function that
385 (psim_stop): New. Asynchronously schedule a stop simulator event.
386 (psim_run_until_stop): Delete. Made redundant by psim_stop.
388 * main.c (cntrl_c): Update.
389 (cntrl_c_simulation): Moved to psim.c.
391 * sim_calls.c (sim_stop): New function. Use psim_stop which
392 schedules a stop event.
393 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
394 (sim_resume): Use psim_run as stop variable no longer needed.
396 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
398 * psim.c (psim_options): Handle -E option correctly.
399 (psim_usage): Document.
401 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
403 * psim.c (psim_options): Ignore -E option (sets endianness).
404 * sim_calls.c: #include bfd.h.
405 (entry_point): New static local.
406 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
407 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
409 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
411 * Makefile.in (INSTALL): Set to @INSTALL@.
412 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
413 (install): Depend upon installdirs. Use $(program_transform_name)
414 directly, rather than using $(INSTALL_XFORM).
415 (installdirs): New target.
417 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
419 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
420 rather than the non-portable cat -n.
422 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
424 * Makefile.in (INSTALL): Change install.sh to install-sh.
426 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
428 * ppc-instructions: Change milhwu to mulhwu.
430 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
432 * sim_calls.c (sim_open): New arg `kind'.
434 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
436 * COPYING: Update FSF address.
438 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
440 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
441 all the required features are supported by the host OS.
443 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
445 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
447 * configure.in (enable-sim-endain): Correct typo in usage (from
448 Erik Landry <landry@ENGR.ORST.EDU>).
449 * configure: Re-generate.
451 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
453 * Makefile.in (targ-vals.def): Re-do rule so that it works with
454 FreeBSD's make. Didn't like $<.
456 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
458 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
460 (other sim_*): New SIM_DESC argument.
462 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
464 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
465 ppc-opcode-simple-switch, ppc-opcode-complex-array,
466 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
467 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
468 superseeded by --sim-decode-mechanism option.
470 * ppc-opcode-simple, dc-simple: Rename to be 8.3
471 * ppc-opcode-complex, dc-complex: Ditto.
472 * ppc-opcode-stupid, dc-stupid: Ditto.
473 * ppc-opcode-test-1, dc-test.01: Ditto.
474 * ppc-opcode-test-2, dc-test.02: Ditto.
476 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
479 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
481 * Many of the ppc-opcode-* files are identical baring the type of
482 lookup table. Instead of having multiple tables, igen can do this
483 via an additional option.
485 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
486 allow the type of generated table specified in the decode file to
489 * ld-decode.c (load_decode_table): Allow the table type to be
492 * igen.c (main): Add -T <mechanism> option so that an overriding
493 instruction decode mechanism can be specified.
495 * configure.in: New option --sim-decode-mechanism to control
496 igen's new -T <mechanism> flag.
497 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
499 * configure: Regenerate.
501 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
503 * events.c (event_queue_create): Don't use NULL to initialize an
505 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
506 of sigprocmask to appropriate autoconf test.
508 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
510 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
512 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
513 includes our config.h.
515 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
517 * configure.in: Fix typo in test for callback.c.
518 * configure: Regenerated.
520 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
522 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
523 found in the device tree.
525 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
527 * Property create/initialization still wasn't correctly ordered.
528 Should be delaying everything related to ihandle creation until
529 after the rest of the tree has been established.
531 * device.c (device_find_ihandle_runtime_property): Update.
532 (device_add_ihandle_runtime_property): Update.
534 * tree.c (parse_ihandle_property): Delay lookup of the device to
535 be opened until the ihandle initialization phase.
536 * tree.c (print_properties): Update.
538 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
540 * gen-icache.c (print_icache_extraction): Add a reason parameter.
541 Augment each extracted field with a comment citing the codes
542 origin. Should simplify tracking down incorrect cache
545 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
547 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
548 works for normal and boolean table entries.
550 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
551 valid. Handle this just like *_{read,write}_register now handles
554 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
556 * events.c (insert_event_entry): Correct loop termination
559 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
561 * psim.c (psim_options): Add new option -c for max-iterations or
563 (psim_usage): Document.
564 (psim_max_iterations_exceeded): New function, abort simulation if
565 max iterations exceeded.
567 * gen-idecode.c: Re-work the table lookup code so that it assumes
568 that the entry is a leaf by default. Simplify the boolean table
569 entry code so that it involves a mask + test instead of shift +
572 * gen-idecode.c: Correct generated igen body so that it no drops
573 or doubles clock interrupts.
576 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
578 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
581 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
582 if common callback is present.
584 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
586 * configure.in (sim_callback): If the gdb is post 4.16, configure
587 callback support from the common directory.
588 * configure: Regenerate.
590 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
592 (GDB_OBJ): Add callback support configured in.
593 (gentmap,targ-vals.def): Build from common directory.
594 (targ-vals.h,targ-map.c): Build by running gentmap.
595 (callback.o): Build from source in common directory.
596 (targ-map.o): Add dependency.
597 (clean): Remove gentmap.
599 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
601 * igen wasn't aborting if the opcode table contained no valid
604 * misc.c (name2i): Possibly abort if an invalid name is
606 * ld-decode.c: Abort if the table type isn't found.
608 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
610 * When performance monitoring is disabled, it is still possible to
611 determine the simulation speed by looking at the number of elapsed
612 ticks recorded by the event queue.
614 * psim.c (psim_write_register, psim_read_register): Force the cpu
615 to zero when it is either of `-1' or `nr_cpus'. In both cases the
616 next cpu would be zero any way.
618 * mon.c (mon_print_info): If possible, print the system cycle
619 performance. This is an indication of the number of instructions
622 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
624 * The code to allow an event queue to be updated during a signal
625 was missing. For main.c, a cntrl-c simulation termination wasn't
628 * The simulation would not correctly restart if an event requested
629 that the simulation be halted.
631 * psim.c (psim_options): Add hack to -i option to optionally
632 include a level vis -i2.
633 (psim_usage): Document.
635 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
636 cntrl-c occures schedule an event to halt the simulation.
637 (main): Catch CNTRL-C signals with the function cntrl_c.
639 * events.c (event_queue_process): Mask interrupts while
640 manipulating the async event queue.
641 (event_queue_init): Ditto.
642 (event_queue_schedule_after_signal): Ditto.
644 * events.c (event_queue_process): Mark the event queue as being in
645 the processing state when processing has started. Adjust code
646 so that it is tolerant of halts.
647 (event_queue_init): Start the event queue out with processing
649 (event_queue_tick): Check that processing isn't still being
652 * gen-idecode.c (print_run_until_stop_body): Call
653 event_queue_process_events to clear possibly pending events before
654 starting a simulation run. Re-arange main loop so that simulator
655 is correctly restarted when an event halts the simulation.
657 * psim.c (psim_halt): Handle an event halting the simulation.
658 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
661 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
663 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
664 RA. Based on instruction frequency stats, expand additional
666 * ppc-instructions: Change all `RA == 0' to RA_is_0.
668 * ppc-opcode-stupid: Move all but the basic table in -complex into
669 here. Update to new format.
671 * Makefile.in (tmp-defines): New target. Force defines.h to always
672 be built. Hence get ppc-opcode-goto to build.
674 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
676 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
679 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
681 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
682 to be initialized independant of the rest of the simulation
683 initalization. Otherwize a trace option explictly set from gdb
684 could be overridden by hw_trace.
686 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
688 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
689 debug.c. It could be much simpler.
691 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
693 * Some devices support removable media. Add hooks to the disk
694 device so that it supports this.
696 * device.c (device_add_string_array_property,
697 device_find_string_array_property): New functions, manipulate
698 properties containing an array of strings.
699 (device_find_string_property): Allow a string array.
700 (device_init_static_properties): Update.
701 (device_init_runtime_properties): Update.
703 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
704 media. If no file image is specified, use the next one in the
706 (hw_disk_init_address): Change the file property so that it is a
707 string array - use the first entry for the initial file image.
709 * tree.c (print_string_aray_property): New function - print a
711 (print_properties): Adjust.
712 (print_string): Write a string, handling double quotes.
714 * device.h: Define an ioctl to `change-media' with an optional new
717 * hw_disk.c: Allow floppy disk devices to be specified.
719 * psim.c (psim_command): New function, parse more complex psim
720 commands such as "change-media" and "trace".
721 * sim_calls.c (sim_do_command): Use.
723 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
725 * For expressions like (RA == 0) that are entered in to the cache
726 as RA_is_0. If possible generate the result of the expression so
727 that the compiler gets a better chance of eliminating dead
730 * gen-icache.c (print_icache_extraction): For a cache entry of
731 the form <name>_is_<const> where it is a boolean field, generate
732 the result of the expression instead of the expression its self.
733 (print_icache_body): Remove code that was looking for *_is_0 and
734 then generating corresponding definitions.
736 * gen-icache.c (print_icache_struct): If there is no cache, do not
737 output expressions in idecode.h file.
739 * gen-icache.c (print_icache_body): Output them here.
741 * ppc-opcode-complex: Clarify constant values for SPR==LR register
744 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
746 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
748 * The code that put values in and extracted values from the cache
749 was too compilicated. The cache table did not allow values to be
750 computed from cache entries. #defines could only be used when a
751 cache was present, remove the restriction.
753 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
754 scratch variable is defined when a cache entry is beinf
755 filled. Change the definition of a COMPUTE variable to be defined
756 when the cache entry is being used.
757 * gen-icache.c: Update.
759 * ld-cache.h, ld-cache.c: Change field names so that their meaning
760 is more obvious. old_name->field_name, new_name->derived_name.
761 * gen-icache.c: Update
763 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
764 different types of cache code - put into cache, extract from
765 cache, no cache - an explicit argument to print_icache_body.
766 * gen-icache.c (print_icache_extraction): Ditto.
768 * gen-semantics.c (print_c_semantic): Update use.
769 * gen-idecode.c (print_jump_insn): Update use.
770 * gen-icache.c (print_icache_function): Update use.
772 * igen.c (main): Change 'R' option so that it does not force the
775 * configure.in (enable-sim-icache): Clarify description. Make
776 #define one of the defaults regardless of the cache. Probably
777 should revamp and add a separate option.
779 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
781 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
783 (pk_disklabel_create_instance): Partition 1..4 are valid - not
785 (is_iso9660): New function, verify a CD9660 File system.
786 (pk_disklabel_create_instance): Start expanding so that active
787 partition selection is supported.
789 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
791 * The cap object was retaining a reference to the instance of a
792 device after it was deleted. Instead add and remove cap's from the
793 cap db as they are created and deleted. This ensuring that a
794 capibility is only used during the lifetime of the corresponding
797 * cap.h, cap.c: Correct cap type - was signed32 should be
800 * cap.c (cap_add, cap_remove): New methods for cap object that
801 allow the explicit addition and removal of internal objects that
804 * cap.c (cap_init): Rewrite. Verify that the only objects
805 remaining in the cap data base are those that were entered first.
806 Thse objects will be the permenant ones.
807 * device.c (device_init_address): Remember to initialize the cap
810 * device.c (device_create_instance_from): Explicitly add device
811 instances to the cap database. Simplify create code.
812 (device_instance_delete): Explicitly remove device instances from
815 * device.c (device_create_from): Explicitly add a device to the
818 * device.c (device_create_from): Always set the cap members.
820 * hw_disk.c: Output the instance when tracing.
822 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
824 * tree.c (split_device_specifier): Add support for aliases when
825 looking up a device. Now needs a device as an argument.
826 (split_property_specifier): Ditto.
828 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
830 * The memory "claim" and "release" methods take an address and
831 size as arguments. These may be multi cell values. Initially fix
832 the memory code so that they check/detect this. Leave the
833 adjustment of any clients to later.
835 * hw_memory.c (hw_memory_instance_claim,
836 hw_memory_instance_release): Handle multi-cell memory devices.
838 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
839 release of memory regions that were not claimed.
841 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
843 * device.h, device.c (device_instance_call_method): Correct return
844 type - can return either 0 or -1, hence should be a signed type.
845 * device_table.h: Ditto.
847 * hw_memory.c (hw_memory_instance_claim,
848 hw_memory_instance_release): Update.
849 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
850 hw_disk_nr_blocks): Ditto.
852 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
854 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
855 method belonging to "/chosen/memory".
856 (chirm_emul_release): Ditto.
858 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
859 that are inlined. These modules are called via a table and are
862 * hw_init.c (update_for_binary_section): Fix failure to allocate
863 memory used by the binary in real-mode executions. If "claim"
864 property is present, allocate memory from the "/chosen/memory"
867 * emul_chirp.c (emul_chirp_create): Specify that memory should be
868 claimed when loading a real image.
870 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
873 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
874 when merging adjacent memory chunks.
876 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
878 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
879 optional PROCESSOR & CIA args so that this routine also abort an
882 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
883 miss-aligned access when a transfer fails abort.
885 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
886 instead of the vm_read_buffer.
887 * emul_netbsd.c (do_write): Ditto.
888 * emul_unix.c (do_unix_write): Ditto.
890 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
892 * configure.in (--enable-sim-jump): Default is NULL and not -E.
893 * configure: Regenerate.
895 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
896 (UNUSED): Only enable UNUSED if GCC >= 2.7.
898 * gen-icache.c (print_icache_extraction): Print UNUSED macro
899 instead of explicit __unused__ attribute.
900 (print_icache_body): Ditto.
901 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
903 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
905 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
908 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
909 arguments so that there is a reference point for recovery.
910 (vm_synchronize_context): Pass processor+cia for errors.
911 (om_unpack_sr): Ditto.
912 (om_unpack_srs): Ditto.
913 * vm.c (vm_create): Review error messages.
915 * vm.c: Include "cpu.h" so that cpu_error is visible.
917 * ppc-instructions (Return From Interrupt): Pass CIA.
918 (Instruction Synchronize): Ditto.
919 * psim.c (psim_init): Ditto.
921 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
923 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
924 but also saves current processor state.
926 * basics.h: Move #include <stdarg.h> to here from device_table.h.
928 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
929 when simulation aborted.
930 (program_interrupt): Ditto.
931 (floating_point_unavailable_interrupt): Ditto.
932 (alignment_interrupt): Ditto.
933 (floating_point_assist_interrupt): Ditto.
934 (perform_oea_interrupt): Ditto.
935 (machine_check_interrupt): Ditto.
937 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
939 * ppc-instructions (Move from Special Purpose Register): Support
942 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
944 * debug.h, debug.c: Add "interrupts" trace option.
946 * interrupts.c (data_storage_interrupt): Add tracing.
947 (machine_check_interrupt): Ditto.
948 (instruction_storage_interrupt): Ditto.
949 (alignment_interrupt): Ditto.
950 (program_interrupt): Ditto.
951 (floating_point_unavailable_interrupt): Ditto.
952 (system_call_interrupt): Ditto.
953 (floating_point_assist_interrupt): Ditto.
954 (deliver_hardware_interrupt): Ditto.
956 * interrupts.c (program_interrupt): For UEA mode, halt the
957 processor - so that the current state is saved - instead of
959 (floating_point_unavailable_interrupt): Ditto.
960 (floating_point_assist_interrupt): Ditto.
962 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
964 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
967 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
969 * ppc-instructions (Store Multiple Word, Load Multiple Word):
972 * tree.c (print_properties): For an array consider printing it out
975 * hw_memory.c (hw_memory_init_address): If an "available" property
976 is present, use that to initialize the available memory instead of
977 using the reg property.
979 * emul_generic.c (emul_add_tree_hardware): Add "available"
980 property to memory device.
982 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
984 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
986 * device.c (device_instance_call_method): Was only looking at the
989 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
990 (hw_disk_block_size): Implement block-size method.
991 (hw_disk_max_transfer): Implement max-transfer method.
993 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
995 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
997 (chirp_emul_instance_to_package): Ditto.
998 (chirp_emul_method): Ditto.
999 (chirp_emul_read): Ditto.
1000 (chirp_emul_write): Ditto.
1001 (chirp_emul_close): Ditto.
1002 (chirp_emul_seek): Ditto.
1003 (chirp_emul_package_to_path): Ditto (for phandle).
1004 (chirp_emul_package_to_path): Return the length.
1006 * psim.c (psim_merge_device_file): Allow continuation lines.
1008 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1010 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1013 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1014 members - *_cell not host dependant int.
1016 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1018 * interrupts.c (perform_oea_interrupt): Print additional
1019 information if a double interrupt is encountered.
1021 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1023 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1024 being specified with the -f option.
1025 (psim_merge_device_file): Correct check for end of string.
1027 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1029 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1030 list of devices. Return zero to the client instead.
1031 * emul_chirp.c (chirp_emul_child): Ditto
1032 * emul_chirp.c (chirp_emul_parent): Ditto
1034 * device.c (device_root): Assert assumption about the device being
1037 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1039 * emul_chirp.c (emul_chirp_create): Add description property to
1040 each significant node in the device tree.
1041 * emul_bugapi.c (emul_bugapi_create): Ditto.
1043 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1045 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1046 tempoary two byte buffer. Single byte read with fgets will not
1048 * main.c: Include errno.h.
1049 (sim_io_read_stdin): For non-STDIO, make it work.
1051 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1053 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1055 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1056 Instead have each emulation default it to DO_USE_STDIO.
1058 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1059 mechanism as the default if enabled or if nothing selected.
1061 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1063 (sim_io_write_stdout): Ditto.
1064 (sim_io_write_stderr): Ditto.
1065 * main.c (sim_io_write_stdout): Ditto.
1066 (sim_io_write_stderr): Ditto.
1067 (sim_io_read_stdin): Ditto.
1069 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1071 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1073 * vm.c (om_effective_to_virtual): Ditto.
1074 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1075 (event_queue_{deschedule,process}): Ditto.
1076 * hw_htab.c (htab_decode_hash_table): Ditto.
1077 (htab_map_{page,binary}): Ditto.
1078 * hw_opic.c (hw_opic_init_data): Ditto.
1079 (handle_interrupt): Ditto.
1080 (do_processor_init_register_{read,write}): Ditto.
1081 (write_vector_priority_register): Ditto.
1082 ({read,write}_destination_register): Ditto.
1083 (do_suprious_vector_register_{read,write}): Ditto.
1084 (do_current_task_priority_register_N_{read,write}): Ditto.
1085 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1086 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1087 (do_ipi_N_dispatch_register_write): Ditto.
1088 (do_vendor_identification_register_read): Ditto.
1089 (do_feature_reporting_register_N_read): Ditto.
1090 (do_global_configuration_register_N_{read,write}): Ditto.
1091 * hw_phb.c (hw_phb_attach_address): Ditto.
1092 (hw_phb_unit_decode): Ditto.
1093 (hw_phb_address_to_attach_address): Ditto.
1094 (hw_phb_io_{read,write}_buffer): Ditto.
1095 * hw_ide.c (setup_fifo): Ditto.
1097 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1098 files via -I<dir> instead of using "../../gdb/" prefixes.
1100 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1102 * debug.h: Add tracing for the pal device.
1105 * emul_chirp.c (chirp_emul_getprop): More tracing.
1107 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1109 * device.h, device.c (device_find_ihandle_runtime_property): New
1110 function. Reverse of add_ihandle_runtime property.
1111 (device_init_runtime_properties): Use it.
1113 * device.c (find_property_entry): New function returns the
1114 internal property spec.
1115 (device_set_property): Use.
1116 (device_find_property): Use.
1118 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1120 * psim.c (psim_merge_device_file): Strip newline from device
1123 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1125 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1126 merge the two. Also check that the merge is safe.
1128 * emul_chirp.c (emul_chirp_create): Add a description property to
1129 the pte's so that they are easier to identify.
1131 (emul_chirp_create): Don't specify a load address for the CHRP
1132 image. Always use the values specified by the executable.
1134 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1137 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1139 * hw_htab.c (htab_map_page): Formatting.
1141 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1142 method name when handling the client call. Also check for other
1145 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1146 etc to be overriden.
1148 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1150 * os_emul.c (os_emul_create): Use tree find property instead of
1151 device find property - sigh.
1153 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1155 * 961205: Release snapshot 961205.
1157 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1159 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1160 cannot contain a comma.
1161 (sim-warnings): Check for more potential errors.
1163 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1164 containing device tree specifications that should be merged into
1167 * configure.in: Sort options.
1168 * configure: Rebuild
1170 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1172 * psim.c (psim_usage): Add -n option - specify number of
1175 * emul_chirp.c: Add description.
1176 * emul_bugapi.c: Ditto.
1177 * emul_unix.c: Ditto.
1178 * emul_netbsd.c: Ditto.
1180 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1182 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1183 encountered, assume that it is the single disk.
1184 * hw_pal.c: Add generic device/size decode methods.
1186 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1187 property entry when determining the nvram size.
1189 * hw_core.c: Add generic address/size decode methods.
1191 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1192 nonzero status from client functions.
1194 * main.c (error): Always include a cariage return when writing out
1197 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1199 * sim_calls.c (sim_resume): Reset sim_should_run if single
1202 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1204 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1207 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1208 Attach the pal - for I/O - as a pseudo device haning from the
1211 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1212 the device tree at the address of the hi-mem interrupt vector
1213 addreses. Used by bugapi to establish its trap instructions.
1215 * debug.h: Add a new macro DITRACE for tracing device instances.
1217 * debug.h: Extend the DTRACE macro so that it can also tests for
1218 device specific tracint.
1220 * device.h, device.c (device_trace): Add method to determine
1221 device specific tracing.
1222 (device_init_address): Set the devices tracing level.
1224 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1226 * tree.h, tree.c (tree_device): New files - separate out the
1227 device parser and other tree operations from the device.
1229 * inline.h, inline.c (INLINE_TREE): Add.
1230 * device.h, device.c (device_tree_add_parsed): Delete.
1231 * Makefile.in (tree.c): Add rules for new file.
1232 * Makefile.in: Better order the emul_* files.
1234 * emul_generic.c (emul_add_tree_hardware): Update.
1235 * emul_netbsd.c (emul_netbsd_create): Update.
1236 * emul_unix.c (emul_unix_create): Ditto.
1237 * emul_chirp.c (emul_chirp_create): Ditto.
1238 * emul_bugapi.c (emul_bugapi_create): Ditto.
1239 * psim.c (psim_tree): Ditto.
1242 * emul_generic.h: Include tree.h
1243 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1245 * device.h, device.c (device_root): New function - returns the
1249 * device.h, device.c (device_clean): New function, clean up device
1250 ready for next simulation run. This includes things like deleting
1251 interrupt edges and properties created during the simulation and
1252 also scrubbing any pre-defined properties.
1253 * tree.c (tree_init): Use.
1255 * device.h, device.c (device_init_static_properties): New
1256 function. Initialize any static predefined properties. By static
1257 we mean those that have values that can be determined before the
1258 device tree initialization has started.
1259 * tree.c (tree_init): Use.
1261 * device.h, device.c (device_init_address): Add code to
1262 check/verify the devices #address-cells and #size-cells.
1263 (device_add_integer_property): Delete corresponding code.
1264 (device_nr_address_cells, device_nr_data_cells): Check for
1265 property when returning value.
1267 * device.h, device.c (device_init_runtime_properties): New
1268 function. Initialize those properties that are not `static'. At
1269 present the only such property is the ihandle.
1270 * tree.c (tree_init): Use.
1272 * device.h, device.c (reg, ranges): Rework these so that they use
1273 an array of the fundamental type - single reg or single range
1276 * device.h, device.c (device_add_ihandle_runtime_property):
1277 Re-implement the adding of an ihandle during tree construction so
1278 that it better fits in with device initialization.
1280 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1282 * device.h, device.c (device_ioctl): Add additional argument -
1283 request - so that the caller must always specify the type of
1286 * device_table.h: Update.
1287 * hw_trace.c (hw_trace_ioctl): Ditto.
1288 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1289 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1290 * psim.c (psim_options): Ditto.
1292 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1294 * BUGS: Updated a bit.
1296 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1298 * hw_opic.c: Finish - third round.
1300 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1302 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1304 (hw_glue_io_write_buffer_callback): Ditto.
1306 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1308 * events.c (event_queue_process): Was incorrectly consuming future
1309 events on the queue when they should be left alone.
1311 * debug.h, debug.c (events): Add support for event queue tracing.
1312 * events.c: Add event tracing.
1314 * debug.h, debug.c: Order device trace options.
1316 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1318 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1319 warnings generated by GCC.
1321 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1323 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1324 PCI devices which are little-endian.
1326 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1328 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1330 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1331 so that it is implementing a 1-1 address map.
1333 * emul_generic.c (emul_add_tree_hardware): Adjust.
1335 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1338 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1340 * device.c (split_find_device): Be tolerant of missing unit
1343 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1345 * basics.h (port_direction): New type, specify the direction of
1348 * device.h, device.c (device_interrupt_decode): Include
1349 specification of port direction in operations.
1350 (device_interrupt_encode): Ditto.
1352 * device_table.h: Add a direction field to the interrupt port
1355 * device.c (device_tree_add_parsed): Specify port direction.
1357 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1359 * hw_opic.c: Finish - second round.
1361 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1363 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1364 to be specified as an array which allows 64bit addresses.
1366 * device.c (device_find_integer_array_property): New function.
1367 Simplify the querying of elements of an integer array.
1368 (device_add_integer_property, device_find_integer_property):
1369 Update to correctly use the cell type.
1371 * vm.c (om_unpack_sr): Clarify shifting comment.
1372 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1374 * emul_chirp.c (emul_chirp_create): Initialize the segment
1377 * vm.c (om_effective_to_virtual): Trace segment register use.
1379 * hw_htab.c (htab_map_page): Print out the pteg base address to
1380 simplify cross checking between vm and the htab.
1381 (htab_decode_hash_table): Use device_error instead of error.
1382 (htab_map_page): Ditto.
1383 (htab_dma_binary): Ditto.
1384 (htab_map_binary): Ditto.
1385 (htab_init_data_callback): Ditto.
1387 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1389 * interrupts.h: Clarify what the optional instruction program
1390 interrupt is - a subset of illegal instruction program interrupt.
1392 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1393 optional instruction program interrupt is.
1394 (program_interrupt): For OEA mode, as per spec, generate an
1395 illegal instruction program interrupt when an optional instruction
1398 * gen-semantics.c (print_semantic_body): Delete code
1399 differentiating between an unimplemented floating point and normal
1400 instruction. Instead, such a case can be handled explicitly.
1402 * ppc-instructions (store floating-point as integer word indexed):
1404 (Floating Convert to Integer Doubleword): Make the floating point
1405 assist interrupt explicit.
1406 (Floating Convert To Integer Doubleword with round towards Zero):
1408 (Floating Convert To Integer Word): Ditto
1409 (Move From FPSCR): Ditto.
1410 (Move to Condition Register from FPSCR): Ditto.
1411 (Move To FPSCR Fields): Ditto.
1412 (Move To FPSCR Field Immediate): Ditto.
1413 (Move To FPSCR Bit 0): Ditto.
1414 (Move To FPSCR Bit 1): Ditto.
1416 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1418 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1419 breaking up transfers.
1421 * corefile.c: Adjust arguments so that the client server
1422 relationship is clarified.
1424 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1427 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1428 looking for things like overflow/underflow.
1430 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1432 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1433 PAL device instead of the IOBUS. The disk must be attached to a
1436 * hw_disk.c (hw_disk_init_address): Just use the unit address
1437 directly in the attach - the rest isn't relevant.
1439 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1441 * configure.in (sim-hardware, sim-packages): Allow additional
1442 hardware and packages to be prefixed as well as appended.
1444 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1445 packages when building them. Consequently, a user can override a
1446 standard device by prefixing their own version.
1448 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1450 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1452 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1454 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1455 (mon_print_info): Correct typo regarding # of unaligned reads and
1456 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1459 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1461 * configure.in (AC_CHECK_FUNCS): Add access.
1462 * config{.in,ure}: Regenerate.
1464 * emul_unix.c (do_unix_nop): System call that always succeeds.
1465 (do_unix_access): Support access system call.
1466 (solaris_descriptors): Make sigaltstack and sigaction nops.
1467 ({solaris,linux}_descriptors): Add support for access.
1469 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1471 * Makefile.in (clean): Move config.log to distclean.
1473 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1475 * corefile-n.h (core_map_write_N): Improve abort messages.
1477 * device.h, device.c (device_attach_address): Remove unused name
1479 (device_detach_address): Ditto.
1480 * device_table.h, device_table.c: Update.
1481 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1482 * hw_nvram.c (hw_nvram_init_address): Ditto.
1483 * hw_memory.c (hw_memory_init_address): Ditto.
1484 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1485 (hw_vm_attach_address): Ditto.
1486 (hw_vm_add_space): Ditto.
1487 * hw_init.c (update_for_binary_section): Ditto.
1488 * hw_core.c (hw_core_attach_address_callback): Ditto.
1490 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1491 configurable parent busses.
1493 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1495 * device_table.c (generic_device_size_to_attach_size): Provide
1496 limited support for multi-cell sizes.
1497 (generic_device_address_to_attach_address): Ditto for addresses.
1499 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1501 * device.c (device_add_integer_property): Check for setting of
1502 #address-cells and #size-cells properties. For these, update the
1503 corresponding device values.
1504 (device_nr_address_cells, device_nr_size_cells): Use the value
1505 from the device instead of the property.
1507 * hw_core.c: Use generic address and size conversions for the top
1510 * hw_memory.c (hw_memory_init_address): Tolerate case where
1511 #address and #size cells is greater than 1.
1513 * device.c (device_tree_print_device): Clean out printing of
1516 * device.c (split_device_specifier): Don't detect comments here -
1517 "#" can be a valid prefix - eg #size-cells.
1519 * psim.c (psim_merge_device_file): Suppress comments and blank
1522 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1523 pal unit address. Add the property /#address-cells to the root of
1526 * device.c (device_template_create_device): Check that the unit
1527 address was successfully parsed.
1529 * device_table.c (generic_device_unit_decode): Rewrite to better
1530 handle multi-cell addresses.
1531 (generic_device_unit_encode): Ditto.
1533 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1534 longer need the explicit array type - the parser takes care of it.
1536 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1539 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1541 * hw_ide.c: New file. Model of a basic IDE interface attached to
1544 * configure.in (hardware): Add the ide device to the default
1546 * configure: Regenerate.
1548 * debug.h, debug.c: Add tracing option for the IDE device.
1550 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1552 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1554 * configure.in (hardware): Add the phb to the list of devices to
1557 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1559 * hw_com.c: Review description.
1562 * hw_eeprom.c: Ditto.
1566 * hw_com.c: Update event handling.
1568 * hw_disk.c: Implement tracing.
1570 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1572 * device_table.c (generic_device_init_address): Use
1573 assigned-addresses property in preference to any other reg
1576 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1578 * device.h, device.c (device_find_ranges_property): New function.
1579 Simplify the manipulation of "ranges" properties.
1581 * device.c (device_add_parsed): Extend to include support for the
1584 * device.c (device_add_parsed): Add assigned-addresses to the list
1585 of reg type properties.
1587 * device.c (device_tree_print_device): Add code to format and
1588 print a ranges property.
1590 * device.h, device.c (device_nr_address_cells,
1591 device_nr_size_cells): New functions. Determine the values of the
1592 standard properties #address-cells and #size-cells. Both of which
1593 are optional and have default values of two and one respectfuly.
1594 Previously, code that determined #address-cells was incorrectly
1595 using a value of one.
1597 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1599 * debug.h, debug.c: Sort debug options, Add entries for the
1602 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1604 * ppc-instructions (Floating Select): Add support for fsel unless
1605 model is 601. Allow user to filter out instruction unless -Fs is
1607 (Store Floating-Point as Integer Word Indexed): Raise optional
1608 instruction program abort. Allow user to filter out instruction
1609 unless -Fs is passed to igen.
1610 (Floating Square Root{, Single}): Ditto.
1611 (Floating Reciprocal Estimate Single): Ditto.
1612 (Floating Reciprocal Square Root Estimate): Ditto.
1614 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1616 * configure: Regenerate.
1618 * interrupts.h (program_interrupt_reasons): Add
1619 optional_instruction_program_interrupt.
1621 * interrupts.c (program_interrupt): Call error with more detailed
1622 information on program interrupts, particularly in user mode. Add
1623 support for optional_instruction_program_interrupt.
1625 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1627 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1629 * debug.h, debug.c (trace_glue_device): Add tracing support for
1630 the interrupt glue logic device.
1632 * configure.in (hardware): Add glue device.
1633 * configure: Regenerate.
1635 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1637 * device.c (device_tree_parse_integer_property): New function,
1638 parse a list of integers as an array property.
1639 (device_tree_add_parsed): Call it.
1641 * device.c (device_tree_parse_string_property): New function,
1642 parse a list of strings as a string property (with embeded
1643 null's). For moment, don't try to implement a complext string
1645 (device_tree_add_parsed): Call it.
1647 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1649 * hw_opic.c: New file. OpenPIC interrupt controller.
1651 * configure.in (hardware): Add opic device.
1652 * configure: re-generate.
1654 * hw_pic.c: Delete, replaced with hw_opic.c.
1656 * debug.h, debug.c: Add debug option for OpenPIC device. -
1659 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1661 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1662 now the file that does all the inlining.
1664 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1665 library source code that could be involved in an inlining. Make
1666 idecode.o only dependant on the inlined library source code.
1668 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1671 * std-config.h (DEVICE_INLINE): Only inline locals when the
1672 default is to inline.
1674 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1676 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1679 * hw_htab.c (htab_map_binary): Depending on the value of the
1680 load-base, either map the program in as a contiguous section or as
1681 separate sections controled by th binaries lma values.
1682 (htab_init_data_callback): Ditto.
1684 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1686 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1688 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1689 struct. Don't require the load_base field to be present - just
1690 issue warning - it is a recent addition.
1691 (emul_chirp_create): Support both virtual and physical modes.
1693 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1694 property so that any arguments specified on the command line can
1695 be passed on to user programs.
1697 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1698 argument passing to the pseudo device stack.
1700 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1702 * device.c (device_error): Make it more tolerant to incomplete
1705 * hw_init.c (hw_data_init_data_callback): Extend the data device
1706 so that it can perform initialization operations either dma or a
1707 more complex instance open, seek, write operation.
1708 * hw_init.c: Update the description of the data device to reflect
1711 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1713 * device.c (device_event_queue_schedule,
1714 device_event_queue_deschedule, device_event_queue_time): Have the
1715 device object export the event operations. Making these available
1716 from the device object should hopefully simplify writing device
1719 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1721 * configure.in (sim-hardware): Add eeprom device to default build.
1723 * hw_eeprom.c: Rewrite so it works.
1725 * debug.h, debug.c: Add tracing support for the eeprom and com
1728 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1730 * debug.h: Add disklabel-package and disk-device trace options.
1731 debug.h (PTRACE): Add macro to simplify tracing in packages.
1733 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1735 * device.c (device_create_instance_from): Tighten up loop
1736 searching for device instances.
1737 (device_instance_delete): Ditto.
1738 (device_instance_delete): Only leaf instances need to be removed
1739 from a devices list of active instances.
1741 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1743 * hw_disk.c: Add the cdrom as an alias.
1745 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1746 delete the raw disk instance while we're at it.
1748 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1749 little bit more - still a long way to go.
1751 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1752 new head position after a read or write.
1754 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1756 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1757 the internal buffer.
1759 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1761 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1762 in the correct order.
1764 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1765 the address of the first stack argument passed in from the client
1768 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1770 * words.h: Add new types signed_cell and unsigned_cell which
1771 correspond to the signed and unsigned IEEE 1275 memory locations.
1772 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1773 memory cell, replace uses of unsigned32 with unsigned_cell.
1774 * device_table.h: Ditto.
1776 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
1777 convert cell sized values to from big endian.
1778 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
1779 use these new macros.
1781 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1783 * device.c (device_tree_add_parsed): Detect and report an
1784 interrupt being attached to an invalid device. Was dumping core.
1786 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1788 * device.h, device.c (device_address_to_attach_address,
1789 device_size_to_attach_size): New functions. Convert a devices
1790 unit address or unit size structure into a form suitable for
1791 passing on to the attach and detach functions.
1792 * device_table.h: Add extra methods to device table.
1794 * device.h, device.c (device_find_reg_property): New function.
1795 For a reg type property, return the selected address + size
1796 tupple, along with a positive success status. Add a reg_property
1797 to the list of property types.
1798 * (device_tree_add_parsed): Make array properties with the name
1799 reg or alternate-reg of type reg_property.
1801 * hw_memory.c (hw_memory_init_address): Rewrite to use new
1802 find_reg_property method.
1803 * hw_nvram.c (hw_nvram_init_address): Ditto.
1805 * device.c (device_tree_print_device): Add code to print out a reg
1808 * device_table.c (generic_device_address_to_attach_address,
1809 generic_device_size_to_attach_size ): New functions. Generic
1810 functions for converting between unit and attach address or size.
1812 * device_table.c (generic_device_init_address): Rewrite to use the
1813 new find_reg and address convert functions. Look for both reg and
1814 alternate-reg properties.
1816 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1818 * hw_com.c: New file. A '550 serial device that can quickly be
1819 attached to any bus.
1820 * configure.in (enable-sim-hardware): Add the com device.
1821 * configure: re-generate.
1823 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1825 * device.c (device_tree_verify_reg_unit_address): New
1826 function. Check that the unit address as specified by the reg
1827 property correctly corresponds to any unit address previously
1828 specified by the devices name.
1829 (device_tree_add_parsed): When adding a reg property, verify
1830 that the unit-address - first value of property - correctly
1831 matches any previous value specified when creating the device
1834 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1836 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
1838 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1840 * device.c (device_full_name): Cast strdup to char *, since AIX
1841 3.2.5 mistakenly declares the function to be const char *.
1842 (device_create_from): Ditto.
1843 (device_create_instance_from): Ditto.
1844 (device_add_property): Ditto.
1846 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1848 * debug.c (trace_option): For -t all, do not set the
1849 trace_dump_device_tree flag, so that the simulator is run.
1851 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1853 * Makefile.in (options.o): Depend on defines.h.
1854 (defines.h): New rule, go through config.h and make strings of all
1855 of the #define HAVE_xxx macros.
1856 (distclean): Remove defines.h.
1858 * options.c (print_options): Print whether many of the
1859 configuration macros are defined.
1861 * main.c (main): If -t options and no filename, just print the
1862 options, and don't print the usage message.
1864 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1866 * configure.in: Test whether /dev/zero works on the system, and if
1867 it does, define HAVE_DEVZERO.
1868 * configure: Regenerate.
1870 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
1871 if we don't have a working /dev/zero on the system.
1873 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
1874 defined, don't add disk support.
1875 (emul_bugapi_do_diskio): Ditto.
1876 (emul_bugapi_instruction_call): Ditto.
1878 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1880 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
1881 defined, make sure HAVE_TCGETATTR is #undef'ed
1883 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1885 * std-config.h (REGPARM): Only define REGPARM attributes if using
1886 GNU C. Test for __i686__ in case GCC ever defines it. If not on
1887 a x86 platform, define REGPARM as nothing.
1889 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
1892 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1894 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
1896 * gen-idecode.c: Ditto.
1898 * gen-idecode.c (print_idecode_table): Comment out check for
1899 switch/table combination until a bug with it is fixed.
1901 * ppc-opcode-goto: New file. Like complex and flat but uses
1902 goto-switch instead of padded-switch for the tables.
1904 * gen-idecode.c (print_goto_switch_name): New function.
1905 (print_goto_switch_table_leaf): New function.
1906 (print_goto_switch_break): New function.
1907 (print_goto_switch_table): New function. Prints a jump table
1908 that can be jumped into instead of a switch statement.
1910 * gen-idecode.c (*switch_*): As an option output a switch that is
1911 implemented using a jump table but only if the switch is not
1914 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1916 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
1917 * configure: Regenerate.
1919 * device.c (device_instance_call_method): Fixup format message in
1920 error case. Return 0 in case of error to shut up compiler
1923 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1925 * device_table.c (generic_device_unit_decode): Require a comma
1926 between elements of a unit address.
1928 * device.c (device_tree_print_device): For reg, alternate-reg and
1929 ranges properties use special print functions.
1930 (device_print_ranges_property): Print formatted ranges property.
1931 (device_print_reg_property): Print formatted reg property.
1933 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1935 * device.c (device_tree_add_parsed): For reg, ranges and
1936 alternate-reg properties use a special parser.
1937 (device_tree_parse_reg_property): New function to parse a reg
1939 (device_tree_parse_ranges_property): New function to parse a
1941 (device_encode_unit): Wrapper for encode_unit callback.
1942 (device_decoce_unit): Wrapper for decode_unit callback.
1944 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1946 * device_table.h (device_instance_callbacks): Relace the claim and
1947 release methods with a more general table mapping from method-name
1950 * device.c (device_instance_call_method): New function. Implement
1951 the OpenBoot call-method client interface. Attempts to locate the
1952 instances method in the callback table.
1953 (device_instance_claim, device_instance_release): Delete.
1954 Replaced with call-method and a lookup table.
1956 * emul_chirp.c (chirp_emul_call_method): Use the new device
1957 instance call method and let that handle a client claim call.
1959 * hw_htab.c (claim_memory): Wrapper function to call the memory
1960 devices "claim" method using the new device-instance call-method
1961 interface. Replaces the previous direct calls to claim.
1962 (htab_map_region): Use claim_memory.
1963 (htab_init_data_callback): Ditto.
1965 * hw_memory.c (hw_memory_instance_claim): Update function
1966 interface so that it is compatible with call-method.
1967 (hw_memory_instance_release): Ditto.
1968 (hw_memory_instance_methods): New table of memory specific
1969 methods claim and release. Add to the hw_memory_callback
1972 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1974 * psim.c (psim_init): Back out of change to initial value of
1977 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1979 * sim_callbacks.h (sim_io_printf_filtered): Replace
1980 printf_filtered with a local simulator specific version. Add
1981 #define printf_filtered to simplify updating of existing code.
1983 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
1984 sim_io_write_stderr): New functions. Read / write to the
1985 simulations stdin and stdout and stderr interfaces. Merge in code
1986 from hw_pal that previously handled async I/O.
1987 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
1988 flush_stdoutput to simplify updating of existing code.
1990 * hw_pal.c (scan_hw_pal, write_hw_pal,
1991 hw_pal_instance_write_callback): Use the new sim_io functions.
1993 * main.c: Implement standalone versions of the new sim_io
1994 functions. Include support for async I/O.
1995 * sim_calls.c: Ditto. This time using the gdb callback table.
1997 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
1998 stdio configuration so that it works in the same way as the rest
2000 * psim.c (psim_create): Initialize current_stdio from the device
2002 * emul_generic.c (emul_add_tree_options): Enter a default value
2003 for use-stdio in the device tree.
2005 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2007 * gen-idecode.c (print_jump): Was always generating a jump back to
2008 idecode. Only necessary at tail of semantic code.
2009 (print_jump): Was always setting the processor's cia, even during
2010 startup when the processor was still undefined.
2011 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2014 * options.c (print_options): Add printing of WITH_REGPARM and
2017 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2018 (disabled) values if not defined.
2020 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2022 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2023 compute. The block move instructions use them.
2025 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2027 (CR_FIELD): New macro, extract specific CR register.
2028 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2030 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2032 * bits.c (INSERTED): Covert INSERTED macro into a function.
2033 (EXTRACTED): Conditionally compile on correct bit size macro.
2035 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2037 * ppc-instructions: With hints from Paul Martin, type in missing
2038 some instruction semantics. Leave disabled for the moment.
2039 (Load Multiple Word): Ditto.
2040 (Store Multiple Word): Ditto.
2041 (Load String Word Immediate): Ditto.
2042 (Load String Word Indexed): Ditto.
2043 (Store String Word Immedate): Ditto.
2044 (Store String Word Indexed): Ditto.
2045 (Move to Condition Register from XER): Ditto.
2046 (Move From Condition Register): Ditto.
2047 (Move From FPSCR): Ditto.
2048 (Move to Condition Register from FPSCR): Ditto.
2049 (Move To FPSCR Field Immediate): Ditto.
2050 (Move To FPSCR Fields): Ditto.
2051 (Move To FPSCR Bit 0): Ditto.
2052 (Move To FPSCR Bit 1): Ditto.
2054 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2056 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2057 inlining of semantic functions from DEFAULT_INLINE. Almost all
2058 configurations call the semantic code via a pointer so there is
2061 * std-config.h (ICACHE_INLINE): Ditto.
2063 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2065 * configure.in (sim_regparm): Add configuration option for
2066 enabling GCC's regparm attribute.
2067 * (sim_stdcall): Add configuration option for enabling GCC's
2070 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2072 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2074 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2075 that it can include __stdcall__ function attribute.
2077 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2079 * options.c (print_options): Include SUPPORT_INLINE in information
2082 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2083 termination test if creating idecode_run_until_stop. Push the
2084 loop termination test back into each alternative branch.
2086 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2088 * gen-icache.c (print_icache_function): Have the cache function
2089 always update the cache_entries semantic and address fields.
2091 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2092 when generating illegal instructions. This was commented out
2093 which is a hangover from looking a at switch statements generated
2094 using indirect jumps.
2096 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2098 * igen.c (print_my_defines): Replaces print_define_my_index.
2099 Print both a definition for MY_INDEX and MY_PREFIX.
2100 * gen-icache.c (print_icache_function): Adjust.
2101 * gen-idecode.c (print_jump_insn): Adjust.
2102 * gen-semantics.c (print_c_semantic): Adjust.
2104 * gen-support.c (gen_support_h): Add optional include to created
2105 support.h so that, like cpu, it is optionally inlined for all
2106 modules that include it.
2107 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2110 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2111 name for a lable and then branch to it.
2113 * ppc-instructions (convert_to_integer, Floating Round to
2114 Single-Precision, Floating Convert from Integer Doubleword): Use
2115 LABEL and GOTO instead of the recently added switch statements.
2117 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2119 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2122 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2124 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2125 * (--enable-sim-inline): Reorder patern matching of arguments so
2126 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2128 * configure: rebuild.
2130 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2132 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2133 configuration options. Let the user specify the packages or
2134 hardware devices that are to be included in the build. Makes it
2135 possible for user packages to be specified.
2137 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2138 hardware instead of checking it using ls. configure.in should
2139 have taken care of any problems.
2140 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2142 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2144 * psim.c (psim_options): Enter the argument to the memory size
2145 option directly into the device tree. Was using atol() which is
2146 dangerously non portable.
2148 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2150 * configure.in (icache): Extend icache flag to include an insn
2151 option. If specifyed the insn - aka instruction - is included in
2152 the instruction cache. Make this the default.
2153 * configure: re-generate.
2155 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2156 that the instruction should be included in the icache.
2158 * gen-icache.c (print_icache_body): If enabled, output code to put
2159 the instruction into the icache.
2160 (print_icache_struct): If enabled, add insn to the icache struct.
2162 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2164 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2167 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2169 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2170 the strict-alignment option when hardwired for non-strict
2173 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2175 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2177 * ppc-instructions: Adjust so that references are to MY_INDEX and
2180 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2182 * gen-idecode.c: Output the complete run_until_stop function
2183 instead of just the code to handle a single instruction issue.
2184 * : Have the generated idecode.c include inline.c (instead of psim.c).
2186 * std-config.h: Change psim.c so that it isn't inlined (as this is
2189 * psim.c (run_until_stop): Delete the old run_until_stop function
2190 instead calling the idecode_run and idecode_run_until_stop
2191 functions that gen-idecode.c is now creating.
2193 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2195 * dgen.c: Maintenance - update to use new features found in lf.c.
2197 * filter_filename.c (filter_filename): Maintenance - make the
2200 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2202 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2203 eliminate trace statements.
2205 * debug.c: Change trace format so that it is consistent
2206 (file:line-nr) with CC's error output.
2208 * gen-itable.c (itable_c_insn): Add the source file name and
2209 source line number to the instruction's informational entry.
2211 * debug.c (ITRACE): Use the itable (and my_index) to get the
2212 current instructions name and source line number.
2214 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2215 match new interface.
2217 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2218 corresponding call to ITRACE so that it still matches.
2220 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2221 of ITRACE. The CPP line directives would have previously set the
2222 line-nr and file name so ITRACE isn't needed.
2224 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2226 * gen-idecode.c (print_jump_until_stop_body): New function and
2227 idecode generation option. Instead of generating and calling
2228 separate functions containing the semantic and icache code
2229 generate a single monolythic function and use goto's (and GCC's
2230 indirect jump) to move between code blocks.
2232 * Makefile.in: Add sim_jump flag to those passed to igen.
2234 * configure.in: New option --enable-sim-jump (default disabled)
2236 * ppc-instructions: Eliminate any uses of labels and goto's.
2237 These result in duplicate declarations when a single flat function
2240 * ppc-opcode-jump: New file. Set of opcode rules useful when
2241 testing jumping idecodes.
2243 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2245 * gen-idecode.c: Optionally include the semantic code for an
2246 instruction in the function that is doing the decoding.
2248 * igen.c: Add option (-C) to generate semantics in the instruction
2251 * configure.in (--enable-sim-icache): Accept an option list such
2252 as 1024,define. Add a new choice to the list - semantic - which
2253 will cause igen to generate instruction decode functions that
2254 include the corresponding semantic code.
2256 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2258 * configure.in: New option --enable-sim-line-nr (default enabled).
2259 Enable/disable the inclusion of CPP line directives in the
2260 generated files. Such directives refer back to the source files
2261 used when generating the simulator code.
2263 * Makefile.in (sim_line_nr): Pass to igen.
2265 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2267 * igen.c (main): Revamp the options so that more letters are
2270 * configure.in: Adjust to match igen's revamped options
2272 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2274 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2275 that they use the same technique as igen (ie a dummy targets
2276 tmp-pk and tmp-hw are created).
2278 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2280 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2282 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2284 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2285 out the loading of each of the tables from the rest of igen.
2286 * Makefile.in: Adjust.
2289 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2290 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2291 code creating each separate set of generated files.
2292 * Makefile.in: Adjust.
2295 * gen-support.[ch]: New files. Output the support functions (found
2296 in the ppc-instructions file) into a separate file.
2298 * inline.h, inline.c: Add.
2299 * std-config.h: Add.
2301 * ld-cache.c: Re-design the cache table format.
2302 * ppc-cache-rules: Update to new format.
2304 * ld-decode.c: Re-design the decode table format.
2305 * ppc-opcode-simple: Update to new format
2306 * ppc-opcode-complex: Ditto
2307 * ppc-opcode-flat: Ditto
2309 * filter.h, filter.c: New files. Separate the opcode filter table
2310 reading code from the rest of igen.c. Re-design the filter so that
2311 it works inclusivly not exclusivly.
2312 * igen.c: Remove the opcode filter table loading code.
2313 * Makefile.in (filter.o): Adjust
2314 * configure.in: Adjust filter flag so that default includes 32bit
2316 * ppc-instructions: Clean up filter fields so that only in use
2317 entries are specifed (ie delete `be').
2319 * misc.c (name2i, i2name): New function. Map between a string and
2322 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2324 * sim_calls.c (sim_close): If simulator not created, skip printing
2327 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2329 * registers.c (register_description): Typo, insns not insn.
2331 * ppc-instructions (model_get_number_of_stalls): New model function,
2332 returns number of stalls for the specified processor.
2333 * psim.c (psim_read_register): Add call to new function
2334 model_get_number_of_stalls().
2336 * ppc-instructions (model_get_number_of_cycles): New model function,
2337 returns number of stalls for the specified processor.
2338 * psim.c (psim_read_register): Add call to new function
2339 model_get_number_of_cycles().
2341 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2343 * device_table.h: Don't pass the parent device into a devices
2344 create function. This makes the create function consistent with
2346 * device.c (device_template_create_device): Ditto
2347 * hw_pal.c (hw_pal_create): Ditto
2348 * hw_core.c (hw_core_create): Ditto
2349 * hw_vm.c (hw_vm_create): Ditto
2350 * hw_disk.c (hw_disk_create): Ditto
2351 * hw_nvram.c (hw_nvram_create): Ditto
2352 * hw_memory.c (hw_memory_create): Ditto
2353 * hw_cpu.c (hw_cpu_create): Ditto.
2355 * device.c (split_find_device): Allow a null initial parent device.
2356 (device_template_create_device): Ditto.
2358 * device.c (device_create_from): Make local (static) only used
2360 * device_table.h: typedef device_callbacks moved here (from
2361 device.h) where it belongs.
2363 * hw_core.c: New file. Implements just the core device using the
2366 * corefile.c: Moved all core device functions into the new
2367 hw_core.c file. core_device_create() disapears.
2369 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2372 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2374 * hw_init.c: Correct typo in comment.
2376 * corefile.c (core_init): Remove any remaining references to a
2378 (core_map_find_mapping): Ditto.
2380 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2382 * corefile.c (core_init): Make function global so that other
2383 devices are able to use the full core object.
2385 * corefile.c (core_create, core_from_device): Break core_create
2386 into two functions. The first creates a core object, the second
2387 returns the core object associated with a core device.
2389 * corefile.c (core_device_create): Use core_create to make the
2392 * psim.c (psim_create): Use core_from_device() instead of
2395 * device.c (device_template_create_device): Make static as only
2396 needed by functions internal to device.c.
2398 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2400 * ppc-opcode-test-2: Remove description of fields.
2401 * ppc-opcode-complex: Ditto
2402 * ppc-opcode-flat: Ditto
2403 * ppc-opcode-simple: Ditto
2404 * ppc-opcode-stupid: Ditto
2405 * ppc-opcode-test-1: Ditto
2406 * ppc-cache-rules: Ditto
2408 * igen.c: Add description of files as a comment at the front.
2410 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2412 * configure.in: Check for whether the termios and termio
2413 structures are really defined, and whether or not, they define the
2415 * configure: Regenerate.
2417 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2420 * emul_unix.c: Various changes to allow for building on systems
2421 with different termio and termios structures. If host has both
2422 termio and termios, just use termios. No longer include
2425 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2427 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2428 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2430 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2431 (AC_PROG_INSTALL): Added.
2432 * configure: Rebuilt.
2434 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2436 * corefile.h: Rewrite documentation so that it can be extracted and
2437 converted into texinfo (and hence ready for translation into html,
2441 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2443 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2445 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2447 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2448 is the source of SEEK_SET.
2450 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2452 * psim.c (psim_options): Correct type of dummy arguments being
2453 passed to a device_ioctl call.
2455 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2456 (write_stack_arguments): Ditto.
2457 * hw_trace.c: Instance callback entry no longer a table.
2459 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2461 * emul_unix.c (do_unix_umask): Cast printf argument.
2462 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2464 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2466 * hw_init.c (update_for_binary_section): Abort if we find an
2467 .interp section, which indicates the need for shared libraries to
2470 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2472 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2473 for time, gettimeofday, and getrusage system calls.
2474 ({solaris,linux}_descriptors): Add new system calls.
2475 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2476 (do_get{,p}pid): Use pic_t types.
2478 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2479 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2480 * config{.in,ure}: Regenerate.
2482 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2484 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2485 `ppc-elf' and `ppc-xcoff' for the stack-type.
2486 * emul_unix.c (emul_unix_create): Ditto.
2487 * emul_bugapi.c (emul_bugapi_create): Ditto.
2488 * hw_init.c: Reconize the new names.
2490 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2491 call is used (no system parameter).
2493 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2495 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2498 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2499 (os_emul.o): Depend on emul_unix.h.
2500 (emul_unix.o): New dependency.
2502 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2503 alignment to 0, which means use appropriate alignment for mode.
2504 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2505 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2506 * config.in: Regenerate.
2507 * configure: Regenerate.
2509 * emul_generic.c (emul_write2_status): New function to return
2510 results in r3 and r4 for Solaris system calls.
2511 (emul_do_system_call): If the system call is not support, but
2512 there is a string for the system call name, print out the string
2513 instead of the system call number.
2515 * emul_generic.h (emul_write2_status): Declare it.
2517 * emul_netbsd.c: Use /* */ around comment on #endif.
2519 * os_emul.c: Include emul_unix.h.
2520 (os_emulations): Add emulations for Solaris, and Linux.
2522 * psim.c (psim_usage): Add message about solaris, linux
2525 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2527 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2529 * README: Correct PSIM's title
2531 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2533 * basics.h: New global type object_disposition, used to indicate
2534 the status of objects when things are restarted.
2536 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2538 * device_table.h: Change the interrupt descriptor structure so
2539 that it includes an additional member - an upper bound on the
2540 interrupts by that name.
2542 * device.c (device_interrupt_decode): Allow a range of interrupt
2543 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2545 * device.c (device_tree_print_device): Include a list of valid
2546 interrupt ports when listing supported devices.
2548 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2550 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2551 the interrupt net so that it uses int0 .. intN.
2553 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2555 * device.h, device.c (device_ioctl): Drop the system argument.
2556 Devices can not obtain this using the device_system() call.
2557 * device_table.h: Adjust accordingly.
2558 * hw_*.c: Adjust accordingly.
2559 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2560 * psim.c (psim_options): Use a device_ioctl call to force the
2561 hw_trace device to update the trace options.
2562 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2565 * psim.c (psim_init): Re-order initialization so that the
2566 os-emulation is initialized after the device tree. Without this,
2567 os-emul's are not able to create instances or access properties
2568 that contain an instance handle.
2570 * device.h, device.c (device_add_*_property): Make these functions
2571 internal to device.c. The user has access to the more generic
2572 device_tree_add_parsed function. Differentiate between the initial
2573 and current value for each property.
2574 * (clean_device_properties): New function that deletes any
2575 properties created after the start of a simulation and restores
2576 the initial value of any others (ignoring ihandles).
2577 * (init_device_properties): (Re)Initialize any properties that
2578 contain ihandles. create
2580 * (device_tree_init): Include calls to clean the device tree's
2581 properties and then initialize them. Document this in the device.h
2584 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2586 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2587 interrupt even if it is not yet possible to deliver it.
2589 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2591 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2592 visable adjusting the arguments so that the interface is correct.
2593 (mon_print_info): Adjust calls.
2595 * registers.h, registers.c (register_description): Add phony
2596 cycle, insn and stall registers.
2598 * psim.c (psim_read_register): Return nr of instructions for given
2601 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2603 * hw_htab.c: New file. Extract contents from disk_table.c.
2604 Contains a device that, during initialization will create a
2605 PowerPC htab in memory.
2606 * hw_register.c: New file. Extract contents from disk_table.c.
2607 Contains a device that, during initialization, will parse its
2608 property list and use that to initialize various processor
2609 registers (not target specific).
2610 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2611 a device that handles accesses to invalid virtual memory addresses
2613 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2614 devices that can initialize memory from a file.
2615 * hw_trace.c: New file. Extract contents from disk_table.c.
2616 Configure trace options from property values.
2618 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2619 hw_trace.c): Add new device files.
2621 * device_table.c: Remove above code, now in separate independant
2624 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2626 * hw_disk.c: New file. Disk and CDROM device.
2628 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2630 * pk_disklabel.c: New file. Implement the miss-named disk-label
2633 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2636 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2637 they are re-created when the makefile is updated.
2639 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2640 (below the iobus) to the device tree. Include an ihandle of
2641 the disk as /chosen/disk.
2643 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2644 output and (new) disk handles yet.
2645 * (emul_bugapi_init): Initialize the input, output (and just added)
2647 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2648 what I think the behavour is).
2649 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2650 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2651 though this isn't part of the spec - makes it possible for machine
2652 code to signal the aporting of a simulation run.
2654 * emul_chirp.c (chirp_emul_call_method): Add support for the
2655 claim/release methods.
2656 * (chirp_emul_exit): Add an optional exit status argument to
2657 the exit method. Makes it possible for chirp emul simulations
2658 to abort upon an error.
2659 * device.h, device.c (device_instance_claim,
2660 device_instance_release): New methods for claiming and releasing
2662 * hw_memory.c: add claim and release memory methods.
2663 * hw_*: Use the claim memory method when allocating physical
2666 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2668 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2669 time when updating the clock.
2671 * hw_nvram.c: Tidy up documentation
2673 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2675 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2676 macros to determine whether or not the appropriate st_<xxx> fields
2677 exist in the stat structure.
2678 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2679 the real basic ones like open, read, write, etc.
2680 * config{.in,ure}: Regenerate.
2682 * emul_netbsd.c: Add support for missing system calls, and/or
2683 missing stat fields.
2684 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2687 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2689 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2690 F_SETFL not defined.
2692 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2694 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2697 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2699 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2700 * config{.in,ure}: Regenerate.
2701 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2704 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2706 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2709 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2711 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2712 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2715 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2717 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2718 fgets to read line. If not using stdio, do a simple blocking read
2721 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2723 * Makefile.in: Correctly build simulator for build machine != host
2726 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2728 * configure.in (--enable-hostendian): Rework so the default uses
2729 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2731 * configure: Regenerate.
2733 * sim-endian.h: Add more tests for host endian to support more
2734 platforms in a cross compilation environment.
2736 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2738 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2739 use stdio, instead of unpended read/printf_filtered.
2740 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2741 flush stdout after writing the characters.
2743 * options.c (print_options): Print out WITH_STDIO.
2745 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2746 configuration variable.
2747 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2748 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2749 files to contain directory pieces.
2751 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2752 should use stdio for console input.
2753 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2755 * configure.in (--enable-sim-stdio): Add new switch to control
2756 whether stdio is used for console I/O.
2757 * configure: Regenerate.
2759 * interrupts.c (external_interrupt): Declare it to be
2760 INLINE_INTERRUPTS, not INLINE_CPU.
2762 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2764 * events.c (insert_event_entry): Allow events to be scheduled
2765 *NOW* (at delta time 0). Add assertions to clarify behavour of
2768 * events.c (update_time_from_event): New function. Calculates the
2769 number of ticks from the next event. Use this.
2771 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2773 * emul_netbsd.c (do_break): Return 0 if success (instead of
2776 * device_table.c (vm_ioctl_callback): Don't return adjusted break
2779 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
2781 * device_table.h: Change type of the device ioctl so that it
2782 returns an int (status).
2783 * device.h (device_ioctl): Ditto.
2784 * device.c (device_ioctl): Ditto.
2786 * device_table.c (stack_ioctl_callback): Return 0 status.
2787 (vm_ioctl_callback): Ditto
2789 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2791 * emul_netbsd.c (do_read): Correctly set the return value.
2794 (do_geteuid): Ditto.
2796 (do_getegid): Ditto.
2798 (do_sigprocmask): Ditto.
2801 (do_gettimeofday): Ditto.
2802 (do_getrusage): Ditto.
2806 (do___sysctl): Ditto.
2808 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2810 * device_table.c (vm_ioctl_callback): Don't access the processor
2811 registers directly, instead leave it to the caller to handle this.
2813 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
2814 perform a break. Pass in the new break value and set the
2815 registers according to the result.
2817 * emul_generic.c (emul_write_status): Change so that r3 contains
2818 either status or errno and failure is indicated by SO.
2820 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2822 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
2825 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
2827 * interrupts.h (interrupts): New structure contains state of
2830 * cpu.c (cpu_interrupts): New function. Pending interrupt status
2831 in the cpu and grant access to it. Add interrupts to cpu
2834 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
2836 * device.c (device_tree_add_parsed): Check that the creation of a
2837 device instance worked before using it.
2839 * psim.c (psim_halt): Remove cia argument from psim_halt. This
2840 function does not save the CIA so do not pass it in.
2842 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
2844 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
2845 found in device_table.c into a single hack pal.
2847 * device_table.c (halt, icu, console): Delete.
2849 * Makefile.in (hw_pal.o): New dependency.
2851 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
2852 so that it uses the pal instead of the icu/halt/console devices.
2853 Wire the pal's interrupt ports up to the cpu nodes.
2855 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
2857 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
2858 device_table.c to here.
2860 * Makefile.in (hw_iobus.o): New dependency.
2862 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2864 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
2865 (emul_bugapi_create): Create input, output from /chosen/stdin and
2867 (emul_bugapi_do_{read,write}): Switch to use device_instance
2869 (emul_bugapi_instruction_call): Change calls to
2870 emul_bugapi_do_{read,write} to pass device instance argument.
2872 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2874 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
2875 default is not written out if a default was already written.
2877 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
2878 size cooked_buf, not sizeof natural_word, since floating point
2879 registers are 8 bytes.
2881 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2883 * configure: Regenerate with autoconf 2.9.
2885 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
2887 * device_table.h: Always include string headers.
2889 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2891 * main.c (error): Be careful to not try to print out statistics
2892 when the simulation was never created.
2894 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2896 * basics.h: Move the event queue's definition to here so that it
2897 can be refered to globally with out importing all of events.h.
2899 * psim.h, psim.c (psim_event_queue): New function. Grant access
2900 to the simulation event queue. Will make this the single point of
2901 access (there is after all only one event queue in the
2904 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
2905 queue instead of it being passed in. No longer allow access to
2906 the cpu's copy of the event queue.
2908 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2910 * events.h, events.c (event_handler): Remove event_queue from
2911 arguments passed to an event handler. That argument is redundant
2912 - the `data' should refer to a data structure that contains the
2913 event queue if queing is needed.
2915 * cpu.c (cpu_decrement_event): adjust
2917 * events.c (event_queue_process): adjust
2919 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2921 * device.h, device.c (device_system): New, returns a handle for
2922 the system given the device.
2924 * device.c (device_address_init): Store a pointer back to the
2925 system in each devices node.
2927 * device_table.h: Don't pass `system' into each device when it is
2928 being initialized, this is now available using device_system(me).
2930 * device.c (device_address_init, device_data_init): Adjust.
2932 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
2935 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2937 * interrupts.c (decrementer_interrupt, external_interrupt):
2938 Remember that an interrupt wasn't delivered so that it can be
2941 * interrupts.c (check_masked_interrupt): New function. (re)
2942 checks for the posibility that a recent change to the MSR may have
2943 made it possible to deliver an interrupt that was previously
2944 masked be the EE bit.
2946 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
2947 a pending interrupt being delivered using check_masked_interrupt().
2949 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
2950 leaving it to that module to handle both interrupt synchronization
2953 * cpu.c (struct _cpu): remove variables that were going to record
2954 pending decrementer and external interrupts.
2956 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2958 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
2959 between the interrupt controller and the simulators internal
2960 processor model. Maps device interrupts onto the processor
2961 interrupt function calls.
2963 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2965 * hw_nvram.c: NVRAM device that includes a real-time clock that is
2966 updated each second.
2968 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2970 * device.h (attach_type): Remove attach_default type address
2971 spaces. Will replace with levels of callback memory.
2973 * corefile.h, corefile.c (new_core_mapping), corefile.c
2974 (core_map_attach): Replace default attach with a layerd callback
2977 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2979 * device.c (split_property_specifier): ensure that only a single
2981 (split_value): New function, parses the value part of a device
2984 * device.c (device_tree_add_parsed): Use the interrupt conversion
2985 functions to determine the interrupt port numbers.
2987 * device_table.h: Add table that maps between an interrupts
2988 symbolic name and its port number.
2990 * device.h, device.c (device_interrupt_decode,
2991 device_interrupt_encode): new functions use the recently added
2992 interrupt port name/number tables to perform conversion.
2994 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2996 * device.h, device.c (device_set_array_property,
2997 device_set_boolean_property, device_set_ihandle_property,
2998 device_set_integer_property, device_set_string_property): New
2999 functions - allow the value of a given property to be changed.
3001 * device.h, device.c: Re-order declaration and definition of
3004 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3006 * device.c (device_tree_print_device, device_tree_add_parsed):
3007 Remove references to phandle properties.
3009 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3011 * Makefile.in (corefile.o): missing dependency on device_table.h
3014 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3016 * device_table.h: Revamp device init callbacks so that they are a
3018 * device.c (device_init_data, device_init_address): If an init
3019 callback is NULL assume it should do nothing.
3020 * device_table.c (ignore_device_init, unimp_device_init): delete
3022 * device_table.c, hw_memory.c: adjust.
3026 * (device_instance): ditto.
3028 * (address nee config_address): ditto.
3029 * (interrupt): ditto.
3031 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3033 * igen.c (idecode_switch_end): Output a default entry when the
3034 switch statement is perfect. Firstly stops GCC complaining about
3035 an incomplete switch and secondly it will be eliminated by a good
3038 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3040 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3041 hw_*.c files. hw.h declares a device descriptor table for each hw
3042 device while hw.c lists those tables in a form suitable for the
3043 construction of a top leveltable in device_table.c.
3045 * Makefile.in (device_table.o): now depends on hw.c a generated
3048 * device_table.c (device_table): Re-arange the table of devices so
3049 that two levels are possible. Make use of hw.c.
3050 * device_table.h: ditto.
3052 * device.c (device_template_create_device): Handle new two level
3053 device lookup table.
3054 * device.c (device_usage): ditto.
3056 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3058 * device_table.c: Delete the memory device (moved to hw_memory.c).
3060 * hw_memory.c: New file. Just an OpenBoot memory device.
3062 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3064 * device.c (device_init_address): New. Split initialization into
3065 two stages, address and address spaces
3066 * device.c (device_init_data): New. ... and data or other work.
3067 With out this, devices try to modify memory before it as been
3070 * device.c (device_tree_init): Update to perform staged
3073 * device.c (device_init): Delete.
3075 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3077 * device_table.c (data_*): Rewrite to make heaver use of property
3078 nodes. Allow initialization by different data types.
3079 * device_table.c (htab_* pte_*): Rewrite to use properties.
3081 * emul_chirp.c (emul_chirp_create): Use
3082 * emul_bugapi.c (emul_bugapi_create): Ditto
3083 * emul_netbsd.c (emul_netbsd_create): Ditto
3085 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3087 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3088 with options that haven't yet been specified.
3089 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3090 with demo devices and properties.
3092 * emul_chirp.c (emul_chirp_create): Update to use new
3093 device_tree_add_parsed call and additional information now
3094 included in the device tree. Use emul_add_tree* functions to add
3095 any missing details.
3096 * emul_bugapi.c (emul_bugapi_create): Ditto
3097 * emul_netbsd.c (emul_netbsd_create): Ditto
3099 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3101 * device.c (device_instance_create): New. Create/delete and
3102 operate on instances of a device.
3103 * device.c (device_instance_delete): Ditto
3104 * device.c (device_instance_read): Ditto
3105 * device.c (device_instance_write): Ditto
3106 * device.c (device_instance_seek): Ditto
3107 * device.c (device_instance_data): Ditto
3108 * device.c (device_instance_name): Ditto
3109 * device.c (device_instance_path): Ditto
3111 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3112 * emul_chirp.c (chirp_emul_close): Ditto
3113 * emul_chirp.c (chirp_emul_read): Ditto
3114 * emul_chirp.c (chirp_emul_write): Ditto
3115 * emul_chirp.c (chirp_emul_seek): Ditto
3117 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3118 Being careful to convert all from target to host byte order.
3119 * emul_chirp.c (chirp_write_h2t_args): Converse.
3121 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3123 * device.c (device_tree_add_parsed): New. Rewrite code to add
3124 devices to the device tree so that a single printf style function
3127 * device.c (device_tree_add_*): Delete. Replaced by above.
3129 * device.c (split_device_specifier): Functions to manipulate a
3130 device specifier (path) breaking it into its components
3131 * device.c (split_property_specifier): Ditto
3132 * device.c (split_device_name): Ditto
3133 * device.c (split_find_device): Ditto
3135 * device.c (scan_*): Delete
3137 * device.c (device_tree_find_device): Rewrite to use above.
3138 * device.c (device_add_property): Ditto
3140 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3142 * psim.c(psim_options): Parse the psim options, installing their
3143 value in the device tree. Options are now first entered into a
3144 device tree and then extracted out again when needed. This allows
3145 greater flexability in configuration.
3147 * psim.c (psim_tree): Returns a basic device tree ready for
3148 parsing by psim_options.
3149 * psim.c (psim_usage): New. Give usage to varing levels of detail
3150 according to the verbosity. In turn output device and trace
3153 * main.c (main): Update to use new system
3154 * sim_calls.c (sim_open, sim_do_command): Ditto
3156 * psim.c (psim_options): Add `r' option - ram size.
3157 * psim.c (psim_options): Add `o' option - openboot tree entry.
3158 * psim.c (psim_options): Add `h'/`H' options - more help.
3160 * debug.c (trace_usage): Add more detailed help.
3161 * device.c (device_usage): New. Output help including a list of
3162 the devices currently available in the device table.
3163 * device_table.c: Add usage operator to each device.
3165 * corefile.c (core_create, core_device_create): Adjust so that the
3166 core device is created earlier for psim_tree(). Core can later be
3169 * psim.c (psim_create): Update to handle above way of creating
3170 things. Extract all information from the device tree.
3172 * device_tree.c (trace_*): New device node, its properties are
3173 used to set the value of the trace options. Init this device (in
3174 psim_options) when ever the options are updated.
3176 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3178 * debug.h: Add trace_print_info, trace_print_device_tree and
3179 trace_dump_device_tree. The first is a replacement for the
3180 variable `print_info' found in main.c and sim_calls.c. The latter
3181 two enable the dumping of the entire device tree.
3183 * debug.c: Add to trace_description table.
3185 * main.c (main): Use above trace instead of local variable
3186 * sim_calls.c (sim_close): Ditto
3188 * device.c (device_tree_print_device): New. Prints the device
3189 tree in a format that is consistent with what can be parsed by the
3190 device tree load from file code.
3192 * psim.c (psim_create): Dump device tree if enabled. If nump
3193 selected, exit psim immediatly.
3195 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3197 * corefile-n.h (core_map_read_N): When mapping from an address to
3198 a device, do not subtract the devices base. The device its self
3199 can do this. Brings the behavour into line with OpenBoot.
3200 * corefile-n.h (core_map_write_N): Ditto
3201 * corefile.c (core_map_read_buffer): Ditto
3202 * corefile.c (core_map_write_buffer): Ditto
3204 * device_table.c (console_io_read_buffer_callback): Adjust to
3205 handle biased address.
3206 * device_table.c (console_io_write_buffer_callback): Ditto
3208 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3210 * device.c (attach_device_interrupt_edge): New. Interrupt model
3211 did not allow interrupts to be wired up as a general net (edges).
3212 Re-implement so that interrupt events can be passed to multiple
3213 controllers and interrupt controllers can further propogate
3216 * device.c (attach_device_interrupt_edge) : New, Ditto
3217 * device.c (detach_device_interrupt_edge) : New, Ditto
3218 * device.c (clean_device_interrupt_edges) : New, Ditto
3219 * device.c (device_interrupt_event) : New, Ditto
3220 * device.c (device_interrupt_attach) : New, Ditto
3221 * device.c (device_interrupt_detach) : New, Ditto
3222 * device.c (device_child_interrupt_attach) : New, Ditto
3223 * device.c (device_child_interrupt_detach) : New, Ditto
3225 * device.c (device_attach_interrupt) : Delete old
3226 * device.c (device_detach_interrupt) : Delete old
3227 * device.c (device_interrupt) : Delete old
3228 * device.c (device_interrupt_ack) : Delete old
3230 * device_table.c (unimp_*) : Update to match
3232 * device_table.c (icu_io_write_buffer_callback) : Update to use
3234 * device_table.c (icu_interrupt_event_callback) : Ditto
3236 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3238 * device.c (external_to_device) : New function that provides a
3239 standard mapping between a devices internal representation (a
3240 pointer) and its external (or what is passed to a client)
3241 representation (a phandle). Implement using the cap object
3242 attached to the root node.
3244 * device.c (device_to_external) : Ditto
3245 * device.c (external_to_device_instance) : Ditto but for ihandle
3246 and device instance.
3247 * device.c (device_instance_to_external) : Ditto
3249 * Makefile (device.o): Add dependency on cap.
3251 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3252 needing to translate between internal and external representations
3253 changed to use the external_to_device et.al. device operations.
3254 * emul_chirp.c (chirp_emul_*) : Ditto
3256 * Makefile (emul_chirp.o): Remove dependency on cap
3258 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3260 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3261 on OpenBoot note section.
3263 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3265 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3266 read/write calls for buffer transfers. This will cause a fault to
3267 occure if the transfer fails. CHRP catches the fault while the
3268 others suffer the consequences.
3269 (emul_read_buffer): Ditto.
3270 (emul_write_word): Ditto.
3271 (emul_read_word): Ditto.
3272 (emul_read_string): Ditto.
3274 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3276 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3277 emul_generic (emul_blr_instruction): Use a real blr instruction to
3278 return from a client service call.
3280 * emul_chirp.c (services): Add all OpenBoot services to table.
3282 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3283 (emul_chirp_create) : Use names instead of numbers for
3284 instructions being stored in memory.
3286 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3288 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3289 (From NetBSD) files.
3291 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3293 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes