1 2002-06-16 Andrew Cagney <ac131313@redhat.com>
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
5 2002-06-08 Andrew Cagney <cagney@redhat.com>
7 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
10 2002-05-30 DJ Delorie <dj@redhat.com>
12 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
14 * gen-idecode.c (print_run_until_stop_body): Likewise.
15 * gen-model.c (gen_model_c): Likewise.
17 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
19 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
20 AltiVec registers as a temporary stopgap.
22 2002-03-24 David O'Brien <obrien@FreeBSD.org>
24 * ppc/hw_disk.c: Export a disk device property.
26 2002-03-23 Andrew Cagney <ac131313@redhat.com>
28 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
29 * ppc-instructions (lswx): Do the register control with the
30 register count. Initialize the right register in the loop.
31 (mtfsfi) : Correct prefix for the instruction.
33 2002-02-24 Andrew Cagney <ac131313@redhat.com>
36 * std-config.h: Fix grammar and typos. Update copyright.
39 2002-01-12 matthew green <mrg@redhat.com>
41 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
42 * igen.c (main): Change -I to add include paths for :include:
44 Implement -G as per sim/igen, with just gen-icache=N support.
45 Call load_insn_table() with the built include path.
47 * ld-insn.c (parse_include_entry): New. Load an :include: file.
48 (load_insn_table): New `includes' argument. Look for :include:
49 entries and call parse_include_entry() for them.
50 (main): Adjust load_insn_table() call.
51 * ld-insn.h (model_include_fields): New enum.
52 (load_insn_table): Update prototype.
53 * table.c (struct _open_table, struct _table): Rework
54 structures to handle included files.
55 (table_push): Move the guts of table_open() here.
57 * table.c (struct _open table, struct table): Make table object an
58 indirect ptr to the current table file.
59 (current_line, new_table_entry, next_line): Make file arg type
61 (table_open): Use table_push.
62 (table_entry_read): Point variable file at current table, at eof, pop
65 * misc.h (NZALLOC): New macro. From sim/igen.
67 * table.h, table.c (table_push): New function.
69 2002-01-04 matthew green <mrg@redhat.com>
71 * bits.c (LSMASKED64): New inline function.
72 (LSEXTRACTED64): Likewise.
73 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
75 (LSMASKED64, LSEXTRACTED64): New functions definitions.
76 * Makefile.in (sim-bits.o): Remove target.
78 * main.c (zalloc): Fix typo in error message.
80 2001-12-16 Andrew Cagney <ac131313@redhat.com>
82 * configure.in (sim_fpu): Don't add sim-bits.o.
83 * configure: Re-generate.
85 2001-12-15 matthew green <mrg@redhat.com>
87 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
88 (sim_io_error): New function.
89 * sim_calls.c: (sim_io_error): New function.
91 2001-12-14 matthew green <mrg@redhat.com>
93 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
94 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
95 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
96 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
97 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
98 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
99 * configure: Regenerate.
100 * device.h (device_find_integer_array_property): Match function definition.
101 * gen-icache.c (print_icache_internal_function_declaration): Rename
102 INLINE_ICACHE to PSIM_INLINE_ICACHE.
103 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
104 to PSIM_INLINE_IDECODE.
105 * gen-semantics.c (print_semantic_function_header): Rename
106 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
107 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
109 * igen.c (print_function_name): Also escape `(' and `)'.
110 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
111 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
112 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
113 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
114 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
115 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
116 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
117 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
118 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
119 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
120 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
121 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
122 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
123 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
124 * options.c (options_inline): Fix names.
125 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
126 * sim-endian.h: Likewise.
127 * sim-main.h: New file.
128 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
130 2001-12-01 Andrew Cagney <ac131313@redhat.com>
133 * ppc-spr-table: Add SDA and PIR.
135 2001-10-29 Andrew Cagney <ac131313@redhat.com>
137 * tree.c (parse_size): Assert #size-cells > 0.
138 (parse_address): Ditto for #address-cells.
139 (parse_reg_property): Only parse the size when #size-cells is
142 2001-10-25 Andrew Cagney <ac131313@redhat.com>
144 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
145 * hw_htab.c (htab_map_binary): Don't try to map the text section
147 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
149 (emul_chirp_create): Map in the interrupt table.
151 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
153 * Makefile.in: Add dependencies on $(CPU_H).
155 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
157 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
160 2001-03-04 Andrew Cagney <ac131313@redhat.com>
162 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
164 (do_stat): Only do SYS test when SYS_stat defined.
165 (do_sigprocmask): Ditto for SYS_sigprocmask.
166 (do_fstat): Ditto for SYS_fstat.
167 (do_getdirentries): Ditto for SYS_getdirentries.
168 (do_lstat): Ditto for SYS_lstat.
170 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
172 * emul_netbsd.c (do_open): Translate the flag parameter to the
173 open syscall to the numbers supported by the host.
175 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
177 * sim-endian.h: Don't have parameters on macro definitions which
178 are simply renaming functions, to permit use of XCONCAT2 in both
179 the macro name and the arguments in a use of such a definition.
181 2000-11-15 Jim Blandy <jimb@redhat.com>
183 * sim_calls.c: Doc fix.
184 (sim_fetch_register, sim_store_register): Call
185 gdbarch_register_name directly, instead of going through
188 2000-10-24 Geoff Keating <geoffk@cygnus.com>
190 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
192 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
194 * configure: Regenerated to track ../common/aclocal.m4 changes.
196 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
198 * events.c (event_queue_process): Call update_time_from_event
199 every time an event is removed from the queue.
200 (update_time_from_event): Delete assertion that a negative
201 time_from_event implies an empty event queue.
203 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
205 * interrupts.c (deliver_hardware_interrupt): Print time trace in
207 * events.c (event_queue_process): Cleanup trace message.
208 (update_time_from_event): Trace full event queue.
210 2000-03-25 Geoff Keating <geoffk@cygnus.com>
212 * ppc-instructions (Disabled_Exponent_Underflow): Increment
213 the exponent when denormalizing.
215 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
217 * configure: Regenerated to track ../common/aclocal.m4 changes.
219 1999-05-08 Felix Lee <flee@cygnus.com>
221 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
222 * configure: Regenerated to track ../common/aclocal.m4 changes.
224 1999-04-02 Keith Seitz <keiths@cygnus.com>
226 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
227 the frequency at which the poll_quit callback is called.
228 (poll_quit_count): New global.
229 (sim_io_poll_quit): Only call the poll_quit callback
230 after the specified POLL_QUIT_INTERVAL.
232 1999-02-22 Jim Lemke <jlemke@cygnus.com>
234 * dc-complex: Force expansion on all bits of field BO.
235 Previously, the least-significant (prediction) bit was ignored.
236 * ppc-instructions (conditional branches): Implement mpc860c0 option.
237 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
238 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
239 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
240 * interrupts.c (program_interrupt): Added handling for above interrupt.
242 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
244 Make the simulator compatible with the MPC750. It would be nicer
245 to make this a real multi-sim, but that's more work than we have
247 * emul_generic.c (emul_add_tree_options): Only require strict
248 alignment if it was explicitly requested at configuration time.
249 Don't make it the default for little-endian machines.
250 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
251 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
252 THRM2, THRM3): Plop in the MPC750 SPR registers.
253 (DABR): This is weird. This was HID5, but the PPC spec says this
254 should be DABR; why did some random processor use it for something
255 else? The HID5 entry dates back to the original checkin of the
256 simulator code in 1995, so remove it.
257 * sim_calls.c (register_names): Delete this; since the user can
258 now change GDB's list of register names dynamically, we can't
259 pretend there's a static mapping here.
260 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
261 function to get the register name. That ought to be accurate.
262 However, we're changing a compile-time dependency (using the
263 REGISTER_NAMES macro) into a link- and run-time dependency
264 (calling REGISTER_NAME, which happens to be a function call on the
267 1999-01-22 Jim Lemke <jlemke@cygnus.com>
269 * igen.c(gen_semantics_[ch]): setup/use of new option
271 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
272 ppc-instructions(the four branch insn groups): detect problematic br's.
273 psim.c(is_num - added, psim_options): Parse and init new option.
274 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
276 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
278 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
280 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
282 * main.c (sim_io_poll_quit): Stub function.
284 * events.c (SIM_EVENTS_POLL_RATE): Define.
285 (sim_events_poll): Copy function from common/sim-events.c.
286 (event_queue_init): Copy scheduling of sim_events_poll from same.
288 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
289 poll the external environment.
291 1998-11-19 Michael Meissner <meissner@cygnus.com>
293 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
294 fractional type, so that quiet NaN's aren't treated like
297 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
299 * table.c (table_open): For cygwin hosts, we need to use the
300 return value from the read routine as the number of bytes to
301 process. This apparently is due to text-mode vs binary-mode. If
302 the mounts are done text-mode, then the size returnedby fstat()
303 may be different than the number of bytes "read" in text mode.
305 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
307 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
312 1998-09-03 Michael Meissner <meissner@cygnus.com>
314 * emul_{netbsd,unix}.c: Update copyright year.
316 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
318 * sim_calls.c (sim_fetch_register, sim_store_register):
319 return zero when nothing to do.
321 1998-06-26 Michael Meissner <meissner@cygnus.com>
323 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
324 * configure: Regenerate.
325 * emul_{netbsd,unix}.c (toplevel): No longer try to include
326 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
328 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
330 * Makefile.in: The run target depended on a target psim$(EXEEXT),
331 but there was no such target, only plain psim. So I changed the
332 run target to depend on psim.
334 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
336 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
337 now defined in ../common/aclocal.m4, and the double definition causes
338 problems with AC_SUBST of EXEEXT.
339 * configure: Regenerate.
341 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
343 * aclocal.m4: new file for AM_EXEEXT macro
344 * configure.in: call AM_EXEEXT
345 * configure: regenerate with autoconf 2.12.1.
346 * Makefile.in: add EXEEXT support
348 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
350 * configure: Regenerated to track ../common/aclocal.m4 changes.
353 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
355 * acconfig.h: New file.
356 * configure.in: Reverted change of Apr 24; use sinclude again.
357 Don't call AC_C_CROSS.
359 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
361 * configure: Regenerated to track ../common/aclocal.m4 changes.
364 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
366 * Makefile.in (top_builddir): New macro.
367 (INTLLIBS): New macro.
368 (INTLDEPS): Likewise.
369 (psim): Depend on INTLDEPS; link against INTLLIBS.
370 * configure.in: Call CY_GNU_GETTEXT.
372 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
374 * configure: Regenerate with autoconf 2.12.1.
376 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
378 * psim.c (psim_read_register, psim_write_register): Handle updates
381 * registers.c (register_description): Reconize "FPSCR".
383 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
384 MSR FP exception mode. Do not enable FPSCR bits.
385 * emul_unix.c (emul_unix_create): Ditto.
387 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
389 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
390 length parameter. Return -1.
392 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
394 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
395 (is_invalid_zero_divide, invalid_zero_divide_operation): New
398 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
400 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
403 1997-11-05 Felix Lee <flee@cygnus.com>
405 * emul_chirp.c: #ifdef HAVE_UNISTD_H
407 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
409 * corefile.c (core_attach): Pad out allocated memory regions so
410 that they are always correctly aligned.
411 (struct _core_mapping, core_map_attach, core_init,
412 new_core_mapping): Change free_buffer to type void*.
414 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
416 * sim_calls.c (zfree): Call free correctly.
418 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
420 * sim_calls.c (zfree): Use free, not mfree.
421 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
424 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
426 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
427 mask extracting shift amount. Correctly condition for setting XER
429 (ldhau): From Johannes Reisinger, update rA after load.
431 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
433 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
435 * words.h: __int64 instead of long long for MSVC.
437 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
439 * sim_calls.c (sim_create_inferior): Check the simulator was
440 initialized before creating inferior.
442 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
443 sign bit using 64 bit and not a 32 bit mask.
445 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
447 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
448 it has been used, not before.
450 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
452 * sim_calls.c (sim_kill): Delete.
453 (sim_create_inferior): Add ABFD argument.
454 (entry_point): Delete variable.
455 (sim_load): Move setting of PC from here.
456 (sim_create_inferior): To here.
458 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
460 * sim_calls.c (sim_open): Add ABFD argument.
462 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
464 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
465 CR register updates dependant on RC value had logic backwards.
467 * ppc-instructions (Load String Word Immediate): From Brad Parker
468 - sense of wrap test in check for overwriting RA wrong.
469 (Load String Word Indexed): Ditto.
471 * configure.in: From Erik Landry - set sim_default_model not
472 sim_model for sim-default-model option.
473 * configure: Regenerate.
475 * interrupts.c (check_masked_interrupts): Schedule a hardware
476 interrupt delivery when FP interrupts get enabled.
477 (program_interrupt): Generate FP exceptions instead of aborting.
478 (deliver_hardware_interrupt): Deliver a FP exception if so
481 * registers.h: Add definition of fpscr_vx_bits.
483 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
485 (FPSCR_END): Explicitly check for possible floating point
486 exception conditions.
487 (FPSCR_BEGIN): Simplify.
489 * ppc-instructions (Move From FPSCR): Enable.
490 (Move To FPSCR Bit 1): Ditto.
491 (Move To FPSCR Bit 0): Ditto.
492 (Move To FPSCR Field Immediate): Ditto.
493 (Move to Condition Register from FPSCR): Simplify.
494 (invalid_arithemetic_operation): Generate a QNaN when invalid
495 operation exception disabled.
497 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
499 * sim_calls.c (sim_open): Add callback argument.
500 (sim_set_callbacks): Delete.
502 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
504 * sim_callbacks.h (error): Make declaration match gdb's.
505 * main.c (error): Ditto.
507 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
509 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
510 stopped/SIGINT. Exit implies a status code.
512 * psim.c (cntrl_c_simulation): From main.c. Event function that
514 (psim_stop): New. Asynchronously schedule a stop simulator event.
515 (psim_run_until_stop): Delete. Made redundant by psim_stop.
517 * main.c (cntrl_c): Update.
518 (cntrl_c_simulation): Moved to psim.c.
520 * sim_calls.c (sim_stop): New function. Use psim_stop which
521 schedules a stop event.
522 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
523 (sim_resume): Use psim_run as stop variable no longer needed.
525 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
527 * psim.c (psim_options): Handle -E option correctly.
528 (psim_usage): Document.
530 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
532 * psim.c (psim_options): Ignore -E option (sets endianness).
533 * sim_calls.c: #include bfd.h.
534 (entry_point): New static local.
535 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
536 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
538 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
540 * Makefile.in (INSTALL): Set to @INSTALL@.
541 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
542 (install): Depend upon installdirs. Use $(program_transform_name)
543 directly, rather than using $(INSTALL_XFORM).
544 (installdirs): New target.
546 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
548 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
549 rather than the non-portable cat -n.
551 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
553 * Makefile.in (INSTALL): Change install.sh to install-sh.
555 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
557 * ppc-instructions: Change milhwu to mulhwu.
559 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
561 * sim_calls.c (sim_open): New arg `kind'.
563 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
565 * COPYING: Update FSF address.
567 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
569 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
570 all the required features are supported by the host OS.
572 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
574 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
576 * configure.in (enable-sim-endain): Correct typo in usage (from
577 Erik Landry <landry@ENGR.ORST.EDU>).
578 * configure: Re-generate.
580 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
582 * Makefile.in (targ-vals.def): Re-do rule so that it works with
583 FreeBSD's make. Didn't like $<.
585 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
587 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
589 (other sim_*): New SIM_DESC argument.
591 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
593 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
594 ppc-opcode-simple-switch, ppc-opcode-complex-array,
595 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
596 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
597 superseeded by --sim-decode-mechanism option.
599 * ppc-opcode-simple, dc-simple: Rename to be 8.3
600 * ppc-opcode-complex, dc-complex: Ditto.
601 * ppc-opcode-stupid, dc-stupid: Ditto.
602 * ppc-opcode-test-1, dc-test.01: Ditto.
603 * ppc-opcode-test-2, dc-test.02: Ditto.
605 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
608 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
610 * Many of the ppc-opcode-* files are identical baring the type of
611 lookup table. Instead of having multiple tables, igen can do this
612 via an additional option.
614 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
615 allow the type of generated table specified in the decode file to
618 * ld-decode.c (load_decode_table): Allow the table type to be
621 * igen.c (main): Add -T <mechanism> option so that an overriding
622 instruction decode mechanism can be specified.
624 * configure.in: New option --sim-decode-mechanism to control
625 igen's new -T <mechanism> flag.
626 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
628 * configure: Regenerate.
630 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
632 * events.c (event_queue_create): Don't use NULL to initialize an
634 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
635 of sigprocmask to appropriate autoconf test.
637 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
639 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
641 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
642 includes our config.h.
644 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
646 * configure.in: Fix typo in test for callback.c.
647 * configure: Regenerated.
649 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
651 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
652 found in the device tree.
654 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
656 * Property create/initialization still wasn't correctly ordered.
657 Should be delaying everything related to ihandle creation until
658 after the rest of the tree has been established.
660 * device.c (device_find_ihandle_runtime_property): Update.
661 (device_add_ihandle_runtime_property): Update.
663 * tree.c (parse_ihandle_property): Delay lookup of the device to
664 be opened until the ihandle initialization phase.
665 * tree.c (print_properties): Update.
667 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
669 * gen-icache.c (print_icache_extraction): Add a reason parameter.
670 Augment each extracted field with a comment citing the codes
671 origin. Should simplify tracking down incorrect cache
674 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
676 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
677 works for normal and boolean table entries.
679 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
680 valid. Handle this just like *_{read,write}_register now handles
683 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
685 * events.c (insert_event_entry): Correct loop termination
688 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
690 * psim.c (psim_options): Add new option -c for max-iterations or
692 (psim_usage): Document.
693 (psim_max_iterations_exceeded): New function, abort simulation if
694 max iterations exceeded.
696 * gen-idecode.c: Re-work the table lookup code so that it assumes
697 that the entry is a leaf by default. Simplify the boolean table
698 entry code so that it involves a mask + test instead of shift +
701 * gen-idecode.c: Correct generated igen body so that it no drops
702 or doubles clock interrupts.
705 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
707 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
710 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
711 if common callback is present.
713 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
715 * configure.in (sim_callback): If the gdb is post 4.16, configure
716 callback support from the common directory.
717 * configure: Regenerate.
719 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
721 (GDB_OBJ): Add callback support configured in.
722 (gentmap,targ-vals.def): Build from common directory.
723 (targ-vals.h,targ-map.c): Build by running gentmap.
724 (callback.o): Build from source in common directory.
725 (targ-map.o): Add dependency.
726 (clean): Remove gentmap.
728 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
730 * igen wasn't aborting if the opcode table contained no valid
733 * misc.c (name2i): Possibly abort if an invalid name is
735 * ld-decode.c: Abort if the table type isn't found.
737 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
739 * When performance monitoring is disabled, it is still possible to
740 determine the simulation speed by looking at the number of elapsed
741 ticks recorded by the event queue.
743 * psim.c (psim_write_register, psim_read_register): Force the cpu
744 to zero when it is either of `-1' or `nr_cpus'. In both cases the
745 next cpu would be zero any way.
747 * mon.c (mon_print_info): If possible, print the system cycle
748 performance. This is an indication of the number of instructions
751 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
753 * The code to allow an event queue to be updated during a signal
754 was missing. For main.c, a cntrl-c simulation termination wasn't
757 * The simulation would not correctly restart if an event requested
758 that the simulation be halted.
760 * psim.c (psim_options): Add hack to -i option to optionally
761 include a level vis -i2.
762 (psim_usage): Document.
764 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
765 cntrl-c occures schedule an event to halt the simulation.
766 (main): Catch CNTRL-C signals with the function cntrl_c.
768 * events.c (event_queue_process): Mask interrupts while
769 manipulating the async event queue.
770 (event_queue_init): Ditto.
771 (event_queue_schedule_after_signal): Ditto.
773 * events.c (event_queue_process): Mark the event queue as being in
774 the processing state when processing has started. Adjust code
775 so that it is tolerant of halts.
776 (event_queue_init): Start the event queue out with processing
778 (event_queue_tick): Check that processing isn't still being
781 * gen-idecode.c (print_run_until_stop_body): Call
782 event_queue_process_events to clear possibly pending events before
783 starting a simulation run. Re-arange main loop so that simulator
784 is correctly restarted when an event halts the simulation.
786 * psim.c (psim_halt): Handle an event halting the simulation.
787 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
790 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
792 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
793 RA. Based on instruction frequency stats, expand additional
795 * ppc-instructions: Change all `RA == 0' to RA_is_0.
797 * ppc-opcode-stupid: Move all but the basic table in -complex into
798 here. Update to new format.
800 * Makefile.in (tmp-defines): New target. Force defines.h to always
801 be built. Hence get ppc-opcode-goto to build.
803 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
805 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
808 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
810 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
811 to be initialized independant of the rest of the simulation
812 initalization. Otherwize a trace option explictly set from gdb
813 could be overridden by hw_trace.
815 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
817 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
818 debug.c. It could be much simpler.
820 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
822 * Some devices support removable media. Add hooks to the disk
823 device so that it supports this.
825 * device.c (device_add_string_array_property,
826 device_find_string_array_property): New functions, manipulate
827 properties containing an array of strings.
828 (device_find_string_property): Allow a string array.
829 (device_init_static_properties): Update.
830 (device_init_runtime_properties): Update.
832 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
833 media. If no file image is specified, use the next one in the
835 (hw_disk_init_address): Change the file property so that it is a
836 string array - use the first entry for the initial file image.
838 * tree.c (print_string_aray_property): New function - print a
840 (print_properties): Adjust.
841 (print_string): Write a string, handling double quotes.
843 * device.h: Define an ioctl to `change-media' with an optional new
846 * hw_disk.c: Allow floppy disk devices to be specified.
848 * psim.c (psim_command): New function, parse more complex psim
849 commands such as "change-media" and "trace".
850 * sim_calls.c (sim_do_command): Use.
852 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
854 * For expressions like (RA == 0) that are entered in to the cache
855 as RA_is_0. If possible generate the result of the expression so
856 that the compiler gets a better chance of eliminating dead
859 * gen-icache.c (print_icache_extraction): For a cache entry of
860 the form <name>_is_<const> where it is a boolean field, generate
861 the result of the expression instead of the expression its self.
862 (print_icache_body): Remove code that was looking for *_is_0 and
863 then generating corresponding definitions.
865 * gen-icache.c (print_icache_struct): If there is no cache, do not
866 output expressions in idecode.h file.
868 * gen-icache.c (print_icache_body): Output them here.
870 * ppc-opcode-complex: Clarify constant values for SPR==LR register
873 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
875 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
877 * The code that put values in and extracted values from the cache
878 was too compilicated. The cache table did not allow values to be
879 computed from cache entries. #defines could only be used when a
880 cache was present, remove the restriction.
882 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
883 scratch variable is defined when a cache entry is beinf
884 filled. Change the definition of a COMPUTE variable to be defined
885 when the cache entry is being used.
886 * gen-icache.c: Update.
888 * ld-cache.h, ld-cache.c: Change field names so that their meaning
889 is more obvious. old_name->field_name, new_name->derived_name.
890 * gen-icache.c: Update
892 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
893 different types of cache code - put into cache, extract from
894 cache, no cache - an explicit argument to print_icache_body.
895 * gen-icache.c (print_icache_extraction): Ditto.
897 * gen-semantics.c (print_c_semantic): Update use.
898 * gen-idecode.c (print_jump_insn): Update use.
899 * gen-icache.c (print_icache_function): Update use.
901 * igen.c (main): Change 'R' option so that it does not force the
904 * configure.in (enable-sim-icache): Clarify description. Make
905 #define one of the defaults regardless of the cache. Probably
906 should revamp and add a separate option.
908 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
910 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
912 (pk_disklabel_create_instance): Partition 1..4 are valid - not
914 (is_iso9660): New function, verify a CD9660 File system.
915 (pk_disklabel_create_instance): Start expanding so that active
916 partition selection is supported.
918 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
920 * The cap object was retaining a reference to the instance of a
921 device after it was deleted. Instead add and remove cap's from the
922 cap db as they are created and deleted. This ensuring that a
923 capibility is only used during the lifetime of the corresponding
926 * cap.h, cap.c: Correct cap type - was signed32 should be
929 * cap.c (cap_add, cap_remove): New methods for cap object that
930 allow the explicit addition and removal of internal objects that
933 * cap.c (cap_init): Rewrite. Verify that the only objects
934 remaining in the cap data base are those that were entered first.
935 Thse objects will be the permenant ones.
936 * device.c (device_init_address): Remember to initialize the cap
939 * device.c (device_create_instance_from): Explicitly add device
940 instances to the cap database. Simplify create code.
941 (device_instance_delete): Explicitly remove device instances from
944 * device.c (device_create_from): Explicitly add a device to the
947 * device.c (device_create_from): Always set the cap members.
949 * hw_disk.c: Output the instance when tracing.
951 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
953 * tree.c (split_device_specifier): Add support for aliases when
954 looking up a device. Now needs a device as an argument.
955 (split_property_specifier): Ditto.
957 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
959 * The memory "claim" and "release" methods take an address and
960 size as arguments. These may be multi cell values. Initially fix
961 the memory code so that they check/detect this. Leave the
962 adjustment of any clients to later.
964 * hw_memory.c (hw_memory_instance_claim,
965 hw_memory_instance_release): Handle multi-cell memory devices.
967 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
968 release of memory regions that were not claimed.
970 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
972 * device.h, device.c (device_instance_call_method): Correct return
973 type - can return either 0 or -1, hence should be a signed type.
974 * device_table.h: Ditto.
976 * hw_memory.c (hw_memory_instance_claim,
977 hw_memory_instance_release): Update.
978 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
979 hw_disk_nr_blocks): Ditto.
981 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
983 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
984 method belonging to "/chosen/memory".
985 (chirm_emul_release): Ditto.
987 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
988 that are inlined. These modules are called via a table and are
991 * hw_init.c (update_for_binary_section): Fix failure to allocate
992 memory used by the binary in real-mode executions. If "claim"
993 property is present, allocate memory from the "/chosen/memory"
996 * emul_chirp.c (emul_chirp_create): Specify that memory should be
997 claimed when loading a real image.
999 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1002 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1003 when merging adjacent memory chunks.
1005 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1007 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1008 optional PROCESSOR & CIA args so that this routine also abort an
1011 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1012 miss-aligned access when a transfer fails abort.
1014 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1015 instead of the vm_read_buffer.
1016 * emul_netbsd.c (do_write): Ditto.
1017 * emul_unix.c (do_unix_write): Ditto.
1019 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1021 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1022 * configure: Regenerate.
1024 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1025 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1027 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1028 instead of explicit __unused__ attribute.
1029 (print_icache_body): Ditto.
1030 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1032 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1034 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1037 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1038 arguments so that there is a reference point for recovery.
1039 (vm_synchronize_context): Pass processor+cia for errors.
1040 (om_unpack_sr): Ditto.
1041 (om_unpack_srs): Ditto.
1042 * vm.c (vm_create): Review error messages.
1044 * vm.c: Include "cpu.h" so that cpu_error is visible.
1046 * ppc-instructions (Return From Interrupt): Pass CIA.
1047 (Instruction Synchronize): Ditto.
1048 * psim.c (psim_init): Ditto.
1050 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1052 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1053 but also saves current processor state.
1055 * basics.h: Move #include <stdarg.h> to here from device_table.h.
1057 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
1058 when simulation aborted.
1059 (program_interrupt): Ditto.
1060 (floating_point_unavailable_interrupt): Ditto.
1061 (alignment_interrupt): Ditto.
1062 (floating_point_assist_interrupt): Ditto.
1063 (perform_oea_interrupt): Ditto.
1064 (machine_check_interrupt): Ditto.
1066 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1068 * ppc-instructions (Move from Special Purpose Register): Support
1071 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1073 * debug.h, debug.c: Add "interrupts" trace option.
1075 * interrupts.c (data_storage_interrupt): Add tracing.
1076 (machine_check_interrupt): Ditto.
1077 (instruction_storage_interrupt): Ditto.
1078 (alignment_interrupt): Ditto.
1079 (program_interrupt): Ditto.
1080 (floating_point_unavailable_interrupt): Ditto.
1081 (system_call_interrupt): Ditto.
1082 (floating_point_assist_interrupt): Ditto.
1083 (deliver_hardware_interrupt): Ditto.
1085 * interrupts.c (program_interrupt): For UEA mode, halt the
1086 processor - so that the current state is saved - instead of
1088 (floating_point_unavailable_interrupt): Ditto.
1089 (floating_point_assist_interrupt): Ditto.
1091 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1093 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1096 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1098 * ppc-instructions (Store Multiple Word, Load Multiple Word):
1101 * tree.c (print_properties): For an array consider printing it out
1102 as an integer array.
1104 * hw_memory.c (hw_memory_init_address): If an "available" property
1105 is present, use that to initialize the available memory instead of
1106 using the reg property.
1108 * emul_generic.c (emul_add_tree_hardware): Add "available"
1109 property to memory device.
1111 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1113 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1115 * device.c (device_instance_call_method): Was only looking at the
1118 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1119 (hw_disk_block_size): Implement block-size method.
1120 (hw_disk_max_transfer): Implement max-transfer method.
1122 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1124 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1126 (chirp_emul_instance_to_package): Ditto.
1127 (chirp_emul_method): Ditto.
1128 (chirp_emul_read): Ditto.
1129 (chirp_emul_write): Ditto.
1130 (chirp_emul_close): Ditto.
1131 (chirp_emul_seek): Ditto.
1132 (chirp_emul_package_to_path): Ditto (for phandle).
1133 (chirp_emul_package_to_path): Return the length.
1135 * psim.c (psim_merge_device_file): Allow continuation lines.
1137 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1139 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1142 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1143 members - *_cell not host dependant int.
1145 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1147 * interrupts.c (perform_oea_interrupt): Print additional
1148 information if a double interrupt is encountered.
1150 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1152 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1153 being specified with the -f option.
1154 (psim_merge_device_file): Correct check for end of string.
1156 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1158 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1159 list of devices. Return zero to the client instead.
1160 * emul_chirp.c (chirp_emul_child): Ditto
1161 * emul_chirp.c (chirp_emul_parent): Ditto
1163 * device.c (device_root): Assert assumption about the device being
1166 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1168 * emul_chirp.c (emul_chirp_create): Add description property to
1169 each significant node in the device tree.
1170 * emul_bugapi.c (emul_bugapi_create): Ditto.
1172 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1174 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1175 tempoary two byte buffer. Single byte read with fgets will not
1177 * main.c: Include errno.h.
1178 (sim_io_read_stdin): For non-STDIO, make it work.
1180 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1182 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1184 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1185 Instead have each emulation default it to DO_USE_STDIO.
1187 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1188 mechanism as the default if enabled or if nothing selected.
1190 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1192 (sim_io_write_stdout): Ditto.
1193 (sim_io_write_stderr): Ditto.
1194 * main.c (sim_io_write_stdout): Ditto.
1195 (sim_io_write_stderr): Ditto.
1196 (sim_io_read_stdin): Ditto.
1198 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1200 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1202 * vm.c (om_effective_to_virtual): Ditto.
1203 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1204 (event_queue_{deschedule,process}): Ditto.
1205 * hw_htab.c (htab_decode_hash_table): Ditto.
1206 (htab_map_{page,binary}): Ditto.
1207 * hw_opic.c (hw_opic_init_data): Ditto.
1208 (handle_interrupt): Ditto.
1209 (do_processor_init_register_{read,write}): Ditto.
1210 (write_vector_priority_register): Ditto.
1211 ({read,write}_destination_register): Ditto.
1212 (do_suprious_vector_register_{read,write}): Ditto.
1213 (do_current_task_priority_register_N_{read,write}): Ditto.
1214 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1215 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1216 (do_ipi_N_dispatch_register_write): Ditto.
1217 (do_vendor_identification_register_read): Ditto.
1218 (do_feature_reporting_register_N_read): Ditto.
1219 (do_global_configuration_register_N_{read,write}): Ditto.
1220 * hw_phb.c (hw_phb_attach_address): Ditto.
1221 (hw_phb_unit_decode): Ditto.
1222 (hw_phb_address_to_attach_address): Ditto.
1223 (hw_phb_io_{read,write}_buffer): Ditto.
1224 * hw_ide.c (setup_fifo): Ditto.
1226 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1227 files via -I<dir> instead of using "../../gdb/" prefixes.
1229 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1231 * debug.h: Add tracing for the pal device.
1234 * emul_chirp.c (chirp_emul_getprop): More tracing.
1236 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1238 * device.h, device.c (device_find_ihandle_runtime_property): New
1239 function. Reverse of add_ihandle_runtime property.
1240 (device_init_runtime_properties): Use it.
1242 * device.c (find_property_entry): New function returns the
1243 internal property spec.
1244 (device_set_property): Use.
1245 (device_find_property): Use.
1247 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1249 * psim.c (psim_merge_device_file): Strip newline from device
1252 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1254 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1255 merge the two. Also check that the merge is safe.
1257 * emul_chirp.c (emul_chirp_create): Add a description property to
1258 the pte's so that they are easier to identify.
1260 (emul_chirp_create): Don't specify a load address for the CHRP
1261 image. Always use the values specified by the executable.
1263 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1266 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1268 * hw_htab.c (htab_map_page): Formatting.
1270 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1271 method name when handling the client call. Also check for other
1274 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1275 etc to be overriden.
1277 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1279 * os_emul.c (os_emul_create): Use tree find property instead of
1280 device find property - sigh.
1282 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1284 * 961205: Release snapshot 961205.
1286 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1288 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1289 cannot contain a comma.
1290 (sim-warnings): Check for more potential errors.
1292 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1293 containing device tree specifications that should be merged into
1296 * configure.in: Sort options.
1297 * configure: Rebuild
1299 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1301 * psim.c (psim_usage): Add -n option - specify number of
1304 * emul_chirp.c: Add description.
1305 * emul_bugapi.c: Ditto.
1306 * emul_unix.c: Ditto.
1307 * emul_netbsd.c: Ditto.
1309 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1311 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1312 encountered, assume that it is the single disk.
1313 * hw_pal.c: Add generic device/size decode methods.
1315 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1316 property entry when determining the nvram size.
1318 * hw_core.c: Add generic address/size decode methods.
1320 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1321 nonzero status from client functions.
1323 * main.c (error): Always include a cariage return when writing out
1326 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1328 * sim_calls.c (sim_resume): Reset sim_should_run if single
1331 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1333 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1336 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1337 Attach the pal - for I/O - as a pseudo device haning from the
1340 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1341 the device tree at the address of the hi-mem interrupt vector
1342 addreses. Used by bugapi to establish its trap instructions.
1344 * debug.h: Add a new macro DITRACE for tracing device instances.
1346 * debug.h: Extend the DTRACE macro so that it can also tests for
1347 device specific tracint.
1349 * device.h, device.c (device_trace): Add method to determine
1350 device specific tracing.
1351 (device_init_address): Set the devices tracing level.
1353 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1355 * tree.h, tree.c (tree_device): New files - separate out the
1356 device parser and other tree operations from the device.
1358 * inline.h, inline.c (INLINE_TREE): Add.
1359 * device.h, device.c (device_tree_add_parsed): Delete.
1360 * Makefile.in (tree.c): Add rules for new file.
1361 * Makefile.in: Better order the emul_* files.
1363 * emul_generic.c (emul_add_tree_hardware): Update.
1364 * emul_netbsd.c (emul_netbsd_create): Update.
1365 * emul_unix.c (emul_unix_create): Ditto.
1366 * emul_chirp.c (emul_chirp_create): Ditto.
1367 * emul_bugapi.c (emul_bugapi_create): Ditto.
1368 * psim.c (psim_tree): Ditto.
1371 * emul_generic.h: Include tree.h
1372 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1374 * device.h, device.c (device_root): New function - returns the
1378 * device.h, device.c (device_clean): New function, clean up device
1379 ready for next simulation run. This includes things like deleting
1380 interrupt edges and properties created during the simulation and
1381 also scrubbing any pre-defined properties.
1382 * tree.c (tree_init): Use.
1384 * device.h, device.c (device_init_static_properties): New
1385 function. Initialize any static predefined properties. By static
1386 we mean those that have values that can be determined before the
1387 device tree initialization has started.
1388 * tree.c (tree_init): Use.
1390 * device.h, device.c (device_init_address): Add code to
1391 check/verify the devices #address-cells and #size-cells.
1392 (device_add_integer_property): Delete corresponding code.
1393 (device_nr_address_cells, device_nr_data_cells): Check for
1394 property when returning value.
1396 * device.h, device.c (device_init_runtime_properties): New
1397 function. Initialize those properties that are not `static'. At
1398 present the only such property is the ihandle.
1399 * tree.c (tree_init): Use.
1401 * device.h, device.c (reg, ranges): Rework these so that they use
1402 an array of the fundamental type - single reg or single range
1405 * device.h, device.c (device_add_ihandle_runtime_property):
1406 Re-implement the adding of an ihandle during tree construction so
1407 that it better fits in with device initialization.
1409 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1411 * device.h, device.c (device_ioctl): Add additional argument -
1412 request - so that the caller must always specify the type of
1415 * device_table.h: Update.
1416 * hw_trace.c (hw_trace_ioctl): Ditto.
1417 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1418 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1419 * psim.c (psim_options): Ditto.
1421 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1423 * BUGS: Updated a bit.
1425 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1427 * hw_opic.c: Finish - third round.
1429 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1431 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1433 (hw_glue_io_write_buffer_callback): Ditto.
1435 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1437 * events.c (event_queue_process): Was incorrectly consuming future
1438 events on the queue when they should be left alone.
1440 * debug.h, debug.c (events): Add support for event queue tracing.
1441 * events.c: Add event tracing.
1443 * debug.h, debug.c: Order device trace options.
1445 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1447 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1448 warnings generated by GCC.
1450 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1452 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1453 PCI devices which are little-endian.
1455 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1457 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1459 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1460 so that it is implementing a 1-1 address map.
1462 * emul_generic.c (emul_add_tree_hardware): Adjust.
1464 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1467 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1469 * device.c (split_find_device): Be tolerant of missing unit
1472 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1474 * basics.h (port_direction): New type, specify the direction of
1477 * device.h, device.c (device_interrupt_decode): Include
1478 specification of port direction in operations.
1479 (device_interrupt_encode): Ditto.
1481 * device_table.h: Add a direction field to the interrupt port
1484 * device.c (device_tree_add_parsed): Specify port direction.
1486 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1488 * hw_opic.c: Finish - second round.
1490 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1492 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1493 to be specified as an array which allows 64bit addresses.
1495 * device.c (device_find_integer_array_property): New function.
1496 Simplify the querying of elements of an integer array.
1497 (device_add_integer_property, device_find_integer_property):
1498 Update to correctly use the cell type.
1500 * vm.c (om_unpack_sr): Clarify shifting comment.
1501 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1503 * emul_chirp.c (emul_chirp_create): Initialize the segment
1506 * vm.c (om_effective_to_virtual): Trace segment register use.
1508 * hw_htab.c (htab_map_page): Print out the pteg base address to
1509 simplify cross checking between vm and the htab.
1510 (htab_decode_hash_table): Use device_error instead of error.
1511 (htab_map_page): Ditto.
1512 (htab_dma_binary): Ditto.
1513 (htab_map_binary): Ditto.
1514 (htab_init_data_callback): Ditto.
1516 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1518 * interrupts.h: Clarify what the optional instruction program
1519 interrupt is - a subset of illegal instruction program interrupt.
1521 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1522 optional instruction program interrupt is.
1523 (program_interrupt): For OEA mode, as per spec, generate an
1524 illegal instruction program interrupt when an optional instruction
1527 * gen-semantics.c (print_semantic_body): Delete code
1528 differentiating between an unimplemented floating point and normal
1529 instruction. Instead, such a case can be handled explicitly.
1531 * ppc-instructions (store floating-point as integer word indexed):
1533 (Floating Convert to Integer Doubleword): Make the floating point
1534 assist interrupt explicit.
1535 (Floating Convert To Integer Doubleword with round towards Zero):
1537 (Floating Convert To Integer Word): Ditto
1538 (Move From FPSCR): Ditto.
1539 (Move to Condition Register from FPSCR): Ditto.
1540 (Move To FPSCR Fields): Ditto.
1541 (Move To FPSCR Field Immediate): Ditto.
1542 (Move To FPSCR Bit 0): Ditto.
1543 (Move To FPSCR Bit 1): Ditto.
1545 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1547 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1548 breaking up transfers.
1550 * corefile.c: Adjust arguments so that the client server
1551 relationship is clarified.
1553 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1556 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1557 looking for things like overflow/underflow.
1559 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1561 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1562 PAL device instead of the IOBUS. The disk must be attached to a
1565 * hw_disk.c (hw_disk_init_address): Just use the unit address
1566 directly in the attach - the rest isn't relevant.
1568 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1570 * configure.in (sim-hardware, sim-packages): Allow additional
1571 hardware and packages to be prefixed as well as appended.
1573 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1574 packages when building them. Consequently, a user can override a
1575 standard device by prefixing their own version.
1577 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1579 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1581 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1583 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1584 (mon_print_info): Correct typo regarding # of unaligned reads and
1585 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1588 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1590 * configure.in (AC_CHECK_FUNCS): Add access.
1591 * config{.in,ure}: Regenerate.
1593 * emul_unix.c (do_unix_nop): System call that always succeeds.
1594 (do_unix_access): Support access system call.
1595 (solaris_descriptors): Make sigaltstack and sigaction nops.
1596 ({solaris,linux}_descriptors): Add support for access.
1598 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1600 * Makefile.in (clean): Move config.log to distclean.
1602 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1604 * corefile-n.h (core_map_write_N): Improve abort messages.
1606 * device.h, device.c (device_attach_address): Remove unused name
1608 (device_detach_address): Ditto.
1609 * device_table.h, device_table.c: Update.
1610 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1611 * hw_nvram.c (hw_nvram_init_address): Ditto.
1612 * hw_memory.c (hw_memory_init_address): Ditto.
1613 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1614 (hw_vm_attach_address): Ditto.
1615 (hw_vm_add_space): Ditto.
1616 * hw_init.c (update_for_binary_section): Ditto.
1617 * hw_core.c (hw_core_attach_address_callback): Ditto.
1619 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1620 configurable parent busses.
1622 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1624 * device_table.c (generic_device_size_to_attach_size): Provide
1625 limited support for multi-cell sizes.
1626 (generic_device_address_to_attach_address): Ditto for addresses.
1628 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1630 * device.c (device_add_integer_property): Check for setting of
1631 #address-cells and #size-cells properties. For these, update the
1632 corresponding device values.
1633 (device_nr_address_cells, device_nr_size_cells): Use the value
1634 from the device instead of the property.
1636 * hw_core.c: Use generic address and size conversions for the top
1639 * hw_memory.c (hw_memory_init_address): Tolerate case where
1640 #address and #size cells is greater than 1.
1642 * device.c (device_tree_print_device): Clean out printing of
1645 * device.c (split_device_specifier): Don't detect comments here -
1646 "#" can be a valid prefix - eg #size-cells.
1648 * psim.c (psim_merge_device_file): Suppress comments and blank
1651 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1652 pal unit address. Add the property /#address-cells to the root of
1655 * device.c (device_template_create_device): Check that the unit
1656 address was successfully parsed.
1658 * device_table.c (generic_device_unit_decode): Rewrite to better
1659 handle multi-cell addresses.
1660 (generic_device_unit_encode): Ditto.
1662 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1663 longer need the explicit array type - the parser takes care of it.
1665 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1668 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1670 * hw_ide.c: New file. Model of a basic IDE interface attached to
1673 * configure.in (hardware): Add the ide device to the default
1675 * configure: Regenerate.
1677 * debug.h, debug.c: Add tracing option for the IDE device.
1679 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1681 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1683 * configure.in (hardware): Add the phb to the list of devices to
1686 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1688 * hw_com.c: Review description.
1691 * hw_eeprom.c: Ditto.
1695 * hw_com.c: Update event handling.
1697 * hw_disk.c: Implement tracing.
1699 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1701 * device_table.c (generic_device_init_address): Use
1702 assigned-addresses property in preference to any other reg
1705 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1707 * device.h, device.c (device_find_ranges_property): New function.
1708 Simplify the manipulation of "ranges" properties.
1710 * device.c (device_add_parsed): Extend to include support for the
1713 * device.c (device_add_parsed): Add assigned-addresses to the list
1714 of reg type properties.
1716 * device.c (device_tree_print_device): Add code to format and
1717 print a ranges property.
1719 * device.h, device.c (device_nr_address_cells,
1720 device_nr_size_cells): New functions. Determine the values of the
1721 standard properties #address-cells and #size-cells. Both of which
1722 are optional and have default values of two and one respectfuly.
1723 Previously, code that determined #address-cells was incorrectly
1724 using a value of one.
1726 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1728 * debug.h, debug.c: Sort debug options, Add entries for the
1731 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1733 * ppc-instructions (Floating Select): Add support for fsel unless
1734 model is 601. Allow user to filter out instruction unless -Fs is
1736 (Store Floating-Point as Integer Word Indexed): Raise optional
1737 instruction program abort. Allow user to filter out instruction
1738 unless -Fs is passed to igen.
1739 (Floating Square Root{, Single}): Ditto.
1740 (Floating Reciprocal Estimate Single): Ditto.
1741 (Floating Reciprocal Square Root Estimate): Ditto.
1743 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1745 * configure: Regenerate.
1747 * interrupts.h (program_interrupt_reasons): Add
1748 optional_instruction_program_interrupt.
1750 * interrupts.c (program_interrupt): Call error with more detailed
1751 information on program interrupts, particularly in user mode. Add
1752 support for optional_instruction_program_interrupt.
1754 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1756 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1758 * debug.h, debug.c (trace_glue_device): Add tracing support for
1759 the interrupt glue logic device.
1761 * configure.in (hardware): Add glue device.
1762 * configure: Regenerate.
1764 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1766 * device.c (device_tree_parse_integer_property): New function,
1767 parse a list of integers as an array property.
1768 (device_tree_add_parsed): Call it.
1770 * device.c (device_tree_parse_string_property): New function,
1771 parse a list of strings as a string property (with embeded
1772 null's). For moment, don't try to implement a complext string
1774 (device_tree_add_parsed): Call it.
1776 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1778 * hw_opic.c: New file. OpenPIC interrupt controller.
1780 * configure.in (hardware): Add opic device.
1781 * configure: re-generate.
1783 * hw_pic.c: Delete, replaced with hw_opic.c.
1785 * debug.h, debug.c: Add debug option for OpenPIC device. -
1788 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1790 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1791 now the file that does all the inlining.
1793 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1794 library source code that could be involved in an inlining. Make
1795 idecode.o only dependant on the inlined library source code.
1797 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1800 * std-config.h (DEVICE_INLINE): Only inline locals when the
1801 default is to inline.
1803 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1805 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1808 * hw_htab.c (htab_map_binary): Depending on the value of the
1809 load-base, either map the program in as a contiguous section or as
1810 separate sections controled by th binaries lma values.
1811 (htab_init_data_callback): Ditto.
1813 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1815 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1817 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1818 struct. Don't require the load_base field to be present - just
1819 issue warning - it is a recent addition.
1820 (emul_chirp_create): Support both virtual and physical modes.
1822 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1823 property so that any arguments specified on the command line can
1824 be passed on to user programs.
1826 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1827 argument passing to the pseudo device stack.
1829 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1831 * device.c (device_error): Make it more tolerant to incomplete
1834 * hw_init.c (hw_data_init_data_callback): Extend the data device
1835 so that it can perform initialization operations either dma or a
1836 more complex instance open, seek, write operation.
1837 * hw_init.c: Update the description of the data device to reflect
1840 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1842 * device.c (device_event_queue_schedule,
1843 device_event_queue_deschedule, device_event_queue_time): Have the
1844 device object export the event operations. Making these available
1845 from the device object should hopefully simplify writing device
1848 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1850 * configure.in (sim-hardware): Add eeprom device to default build.
1852 * hw_eeprom.c: Rewrite so it works.
1854 * debug.h, debug.c: Add tracing support for the eeprom and com
1857 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1859 * debug.h: Add disklabel-package and disk-device trace options.
1860 debug.h (PTRACE): Add macro to simplify tracing in packages.
1862 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1864 * device.c (device_create_instance_from): Tighten up loop
1865 searching for device instances.
1866 (device_instance_delete): Ditto.
1867 (device_instance_delete): Only leaf instances need to be removed
1868 from a devices list of active instances.
1870 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1872 * hw_disk.c: Add the cdrom as an alias.
1874 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1875 delete the raw disk instance while we're at it.
1877 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1878 little bit more - still a long way to go.
1880 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1881 new head position after a read or write.
1883 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1885 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1886 the internal buffer.
1888 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1890 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1891 in the correct order.
1893 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1894 the address of the first stack argument passed in from the client
1897 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1899 * words.h: Add new types signed_cell and unsigned_cell which
1900 correspond to the signed and unsigned IEEE 1275 memory locations.
1901 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1902 memory cell, replace uses of unsigned32 with unsigned_cell.
1903 * device_table.h: Ditto.
1905 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
1906 convert cell sized values to from big endian.
1907 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
1908 use these new macros.
1910 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1912 * device.c (device_tree_add_parsed): Detect and report an
1913 interrupt being attached to an invalid device. Was dumping core.
1915 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1917 * device.h, device.c (device_address_to_attach_address,
1918 device_size_to_attach_size): New functions. Convert a devices
1919 unit address or unit size structure into a form suitable for
1920 passing on to the attach and detach functions.
1921 * device_table.h: Add extra methods to device table.
1923 * device.h, device.c (device_find_reg_property): New function.
1924 For a reg type property, return the selected address + size
1925 tupple, along with a positive success status. Add a reg_property
1926 to the list of property types.
1927 * (device_tree_add_parsed): Make array properties with the name
1928 reg or alternate-reg of type reg_property.
1930 * hw_memory.c (hw_memory_init_address): Rewrite to use new
1931 find_reg_property method.
1932 * hw_nvram.c (hw_nvram_init_address): Ditto.
1934 * device.c (device_tree_print_device): Add code to print out a reg
1937 * device_table.c (generic_device_address_to_attach_address,
1938 generic_device_size_to_attach_size ): New functions. Generic
1939 functions for converting between unit and attach address or size.
1941 * device_table.c (generic_device_init_address): Rewrite to use the
1942 new find_reg and address convert functions. Look for both reg and
1943 alternate-reg properties.
1945 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1947 * hw_com.c: New file. A '550 serial device that can quickly be
1948 attached to any bus.
1949 * configure.in (enable-sim-hardware): Add the com device.
1950 * configure: re-generate.
1952 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1954 * device.c (device_tree_verify_reg_unit_address): New
1955 function. Check that the unit address as specified by the reg
1956 property correctly corresponds to any unit address previously
1957 specified by the devices name.
1958 (device_tree_add_parsed): When adding a reg property, verify
1959 that the unit-address - first value of property - correctly
1960 matches any previous value specified when creating the device
1963 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1965 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
1967 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1969 * device.c (device_full_name): Cast strdup to char *, since AIX
1970 3.2.5 mistakenly declares the function to be const char *.
1971 (device_create_from): Ditto.
1972 (device_create_instance_from): Ditto.
1973 (device_add_property): Ditto.
1975 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1977 * debug.c (trace_option): For -t all, do not set the
1978 trace_dump_device_tree flag, so that the simulator is run.
1980 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1982 * Makefile.in (options.o): Depend on defines.h.
1983 (defines.h): New rule, go through config.h and make strings of all
1984 of the #define HAVE_xxx macros.
1985 (distclean): Remove defines.h.
1987 * options.c (print_options): Print whether many of the
1988 configuration macros are defined.
1990 * main.c (main): If -t options and no filename, just print the
1991 options, and don't print the usage message.
1993 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1995 * configure.in: Test whether /dev/zero works on the system, and if
1996 it does, define HAVE_DEVZERO.
1997 * configure: Regenerate.
1999 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2000 if we don't have a working /dev/zero on the system.
2002 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2003 defined, don't add disk support.
2004 (emul_bugapi_do_diskio): Ditto.
2005 (emul_bugapi_instruction_call): Ditto.
2007 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2009 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2010 defined, make sure HAVE_TCGETATTR is #undef'ed
2012 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2014 * std-config.h (REGPARM): Only define REGPARM attributes if using
2015 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2016 a x86 platform, define REGPARM as nothing.
2018 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2021 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2023 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2025 * gen-idecode.c: Ditto.
2027 * gen-idecode.c (print_idecode_table): Comment out check for
2028 switch/table combination until a bug with it is fixed.
2030 * ppc-opcode-goto: New file. Like complex and flat but uses
2031 goto-switch instead of padded-switch for the tables.
2033 * gen-idecode.c (print_goto_switch_name): New function.
2034 (print_goto_switch_table_leaf): New function.
2035 (print_goto_switch_break): New function.
2036 (print_goto_switch_table): New function. Prints a jump table
2037 that can be jumped into instead of a switch statement.
2039 * gen-idecode.c (*switch_*): As an option output a switch that is
2040 implemented using a jump table but only if the switch is not
2043 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2045 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2046 * configure: Regenerate.
2048 * device.c (device_instance_call_method): Fixup format message in
2049 error case. Return 0 in case of error to shut up compiler
2052 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2054 * device_table.c (generic_device_unit_decode): Require a comma
2055 between elements of a unit address.
2057 * device.c (device_tree_print_device): For reg, alternate-reg and
2058 ranges properties use special print functions.
2059 (device_print_ranges_property): Print formatted ranges property.
2060 (device_print_reg_property): Print formatted reg property.
2062 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2064 * device.c (device_tree_add_parsed): For reg, ranges and
2065 alternate-reg properties use a special parser.
2066 (device_tree_parse_reg_property): New function to parse a reg
2068 (device_tree_parse_ranges_property): New function to parse a
2070 (device_encode_unit): Wrapper for encode_unit callback.
2071 (device_decoce_unit): Wrapper for decode_unit callback.
2073 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2075 * device_table.h (device_instance_callbacks): Relace the claim and
2076 release methods with a more general table mapping from method-name
2079 * device.c (device_instance_call_method): New function. Implement
2080 the OpenBoot call-method client interface. Attempts to locate the
2081 instances method in the callback table.
2082 (device_instance_claim, device_instance_release): Delete.
2083 Replaced with call-method and a lookup table.
2085 * emul_chirp.c (chirp_emul_call_method): Use the new device
2086 instance call method and let that handle a client claim call.
2088 * hw_htab.c (claim_memory): Wrapper function to call the memory
2089 devices "claim" method using the new device-instance call-method
2090 interface. Replaces the previous direct calls to claim.
2091 (htab_map_region): Use claim_memory.
2092 (htab_init_data_callback): Ditto.
2094 * hw_memory.c (hw_memory_instance_claim): Update function
2095 interface so that it is compatible with call-method.
2096 (hw_memory_instance_release): Ditto.
2097 (hw_memory_instance_methods): New table of memory specific
2098 methods claim and release. Add to the hw_memory_callback
2101 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2103 * psim.c (psim_init): Back out of change to initial value of
2106 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2108 * sim_callbacks.h (sim_io_printf_filtered): Replace
2109 printf_filtered with a local simulator specific version. Add
2110 #define printf_filtered to simplify updating of existing code.
2112 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2113 sim_io_write_stderr): New functions. Read / write to the
2114 simulations stdin and stdout and stderr interfaces. Merge in code
2115 from hw_pal that previously handled async I/O.
2116 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
2117 flush_stdoutput to simplify updating of existing code.
2119 * hw_pal.c (scan_hw_pal, write_hw_pal,
2120 hw_pal_instance_write_callback): Use the new sim_io functions.
2122 * main.c: Implement standalone versions of the new sim_io
2123 functions. Include support for async I/O.
2124 * sim_calls.c: Ditto. This time using the gdb callback table.
2126 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2127 stdio configuration so that it works in the same way as the rest
2129 * psim.c (psim_create): Initialize current_stdio from the device
2131 * emul_generic.c (emul_add_tree_options): Enter a default value
2132 for use-stdio in the device tree.
2134 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2136 * gen-idecode.c (print_jump): Was always generating a jump back to
2137 idecode. Only necessary at tail of semantic code.
2138 (print_jump): Was always setting the processor's cia, even during
2139 startup when the processor was still undefined.
2140 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2143 * options.c (print_options): Add printing of WITH_REGPARM and
2146 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2147 (disabled) values if not defined.
2149 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2151 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2152 compute. The block move instructions use them.
2154 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2156 (CR_FIELD): New macro, extract specific CR register.
2157 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2159 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2161 * bits.c (INSERTED): Covert INSERTED macro into a function.
2162 (EXTRACTED): Conditionally compile on correct bit size macro.
2164 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2166 * ppc-instructions: With hints from Paul Martin, type in missing
2167 some instruction semantics. Leave disabled for the moment.
2168 (Load Multiple Word): Ditto.
2169 (Store Multiple Word): Ditto.
2170 (Load String Word Immediate): Ditto.
2171 (Load String Word Indexed): Ditto.
2172 (Store String Word Immedate): Ditto.
2173 (Store String Word Indexed): Ditto.
2174 (Move to Condition Register from XER): Ditto.
2175 (Move From Condition Register): Ditto.
2176 (Move From FPSCR): Ditto.
2177 (Move to Condition Register from FPSCR): Ditto.
2178 (Move To FPSCR Field Immediate): Ditto.
2179 (Move To FPSCR Fields): Ditto.
2180 (Move To FPSCR Bit 0): Ditto.
2181 (Move To FPSCR Bit 1): Ditto.
2183 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2185 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2186 inlining of semantic functions from DEFAULT_INLINE. Almost all
2187 configurations call the semantic code via a pointer so there is
2190 * std-config.h (ICACHE_INLINE): Ditto.
2192 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2194 * configure.in (sim_regparm): Add configuration option for
2195 enabling GCC's regparm attribute.
2196 * (sim_stdcall): Add configuration option for enabling GCC's
2199 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2201 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2203 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2204 that it can include __stdcall__ function attribute.
2206 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2208 * options.c (print_options): Include SUPPORT_INLINE in information
2211 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2212 termination test if creating idecode_run_until_stop. Push the
2213 loop termination test back into each alternative branch.
2215 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2217 * gen-icache.c (print_icache_function): Have the cache function
2218 always update the cache_entries semantic and address fields.
2220 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2221 when generating illegal instructions. This was commented out
2222 which is a hangover from looking a at switch statements generated
2223 using indirect jumps.
2225 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2227 * igen.c (print_my_defines): Replaces print_define_my_index.
2228 Print both a definition for MY_INDEX and MY_PREFIX.
2229 * gen-icache.c (print_icache_function): Adjust.
2230 * gen-idecode.c (print_jump_insn): Adjust.
2231 * gen-semantics.c (print_c_semantic): Adjust.
2233 * gen-support.c (gen_support_h): Add optional include to created
2234 support.h so that, like cpu, it is optionally inlined for all
2235 modules that include it.
2236 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2239 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2240 name for a lable and then branch to it.
2242 * ppc-instructions (convert_to_integer, Floating Round to
2243 Single-Precision, Floating Convert from Integer Doubleword): Use
2244 LABEL and GOTO instead of the recently added switch statements.
2246 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2248 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2251 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2253 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2254 * (--enable-sim-inline): Reorder patern matching of arguments so
2255 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2257 * configure: rebuild.
2259 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2261 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2262 configuration options. Let the user specify the packages or
2263 hardware devices that are to be included in the build. Makes it
2264 possible for user packages to be specified.
2266 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2267 hardware instead of checking it using ls. configure.in should
2268 have taken care of any problems.
2269 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2271 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2273 * psim.c (psim_options): Enter the argument to the memory size
2274 option directly into the device tree. Was using atol() which is
2275 dangerously non portable.
2277 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2279 * configure.in (icache): Extend icache flag to include an insn
2280 option. If specifyed the insn - aka instruction - is included in
2281 the instruction cache. Make this the default.
2282 * configure: re-generate.
2284 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2285 that the instruction should be included in the icache.
2287 * gen-icache.c (print_icache_body): If enabled, output code to put
2288 the instruction into the icache.
2289 (print_icache_struct): If enabled, add insn to the icache struct.
2291 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2293 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2296 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2298 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2299 the strict-alignment option when hardwired for non-strict
2302 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2304 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2306 * ppc-instructions: Adjust so that references are to MY_INDEX and
2309 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2311 * gen-idecode.c: Output the complete run_until_stop function
2312 instead of just the code to handle a single instruction issue.
2313 * : Have the generated idecode.c include inline.c (instead of psim.c).
2315 * std-config.h: Change psim.c so that it isn't inlined (as this is
2318 * psim.c (run_until_stop): Delete the old run_until_stop function
2319 instead calling the idecode_run and idecode_run_until_stop
2320 functions that gen-idecode.c is now creating.
2322 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2324 * dgen.c: Maintenance - update to use new features found in lf.c.
2326 * filter_filename.c (filter_filename): Maintenance - make the
2329 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2331 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2332 eliminate trace statements.
2334 * debug.c: Change trace format so that it is consistent
2335 (file:line-nr) with CC's error output.
2337 * gen-itable.c (itable_c_insn): Add the source file name and
2338 source line number to the instruction's informational entry.
2340 * debug.c (ITRACE): Use the itable (and my_index) to get the
2341 current instructions name and source line number.
2343 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2344 match new interface.
2346 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2347 corresponding call to ITRACE so that it still matches.
2349 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2350 of ITRACE. The CPP line directives would have previously set the
2351 line-nr and file name so ITRACE isn't needed.
2353 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2355 * gen-idecode.c (print_jump_until_stop_body): New function and
2356 idecode generation option. Instead of generating and calling
2357 separate functions containing the semantic and icache code
2358 generate a single monolythic function and use goto's (and GCC's
2359 indirect jump) to move between code blocks.
2361 * Makefile.in: Add sim_jump flag to those passed to igen.
2363 * configure.in: New option --enable-sim-jump (default disabled)
2365 * ppc-instructions: Eliminate any uses of labels and goto's.
2366 These result in duplicate declarations when a single flat function
2369 * ppc-opcode-jump: New file. Set of opcode rules useful when
2370 testing jumping idecodes.
2372 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2374 * gen-idecode.c: Optionally include the semantic code for an
2375 instruction in the function that is doing the decoding.
2377 * igen.c: Add option (-C) to generate semantics in the instruction
2380 * configure.in (--enable-sim-icache): Accept an option list such
2381 as 1024,define. Add a new choice to the list - semantic - which
2382 will cause igen to generate instruction decode functions that
2383 include the corresponding semantic code.
2385 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2387 * configure.in: New option --enable-sim-line-nr (default enabled).
2388 Enable/disable the inclusion of CPP line directives in the
2389 generated files. Such directives refer back to the source files
2390 used when generating the simulator code.
2392 * Makefile.in (sim_line_nr): Pass to igen.
2394 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2396 * igen.c (main): Revamp the options so that more letters are
2399 * configure.in: Adjust to match igen's revamped options
2401 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2403 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2404 that they use the same technique as igen (ie a dummy targets
2405 tmp-pk and tmp-hw are created).
2407 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2409 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2411 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2413 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2414 out the loading of each of the tables from the rest of igen.
2415 * Makefile.in: Adjust.
2418 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2419 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2420 code creating each separate set of generated files.
2421 * Makefile.in: Adjust.
2424 * gen-support.[ch]: New files. Output the support functions (found
2425 in the ppc-instructions file) into a separate file.
2427 * inline.h, inline.c: Add.
2428 * std-config.h: Add.
2430 * ld-cache.c: Re-design the cache table format.
2431 * ppc-cache-rules: Update to new format.
2433 * ld-decode.c: Re-design the decode table format.
2434 * ppc-opcode-simple: Update to new format
2435 * ppc-opcode-complex: Ditto
2436 * ppc-opcode-flat: Ditto
2438 * filter.h, filter.c: New files. Separate the opcode filter table
2439 reading code from the rest of igen.c. Re-design the filter so that
2440 it works inclusivly not exclusivly.
2441 * igen.c: Remove the opcode filter table loading code.
2442 * Makefile.in (filter.o): Adjust
2443 * configure.in: Adjust filter flag so that default includes 32bit
2445 * ppc-instructions: Clean up filter fields so that only in use
2446 entries are specifed (ie delete `be').
2448 * misc.c (name2i, i2name): New function. Map between a string and
2451 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2453 * sim_calls.c (sim_close): If simulator not created, skip printing
2456 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2458 * registers.c (register_description): Typo, insns not insn.
2460 * ppc-instructions (model_get_number_of_stalls): New model function,
2461 returns number of stalls for the specified processor.
2462 * psim.c (psim_read_register): Add call to new function
2463 model_get_number_of_stalls().
2465 * ppc-instructions (model_get_number_of_cycles): New model function,
2466 returns number of stalls for the specified processor.
2467 * psim.c (psim_read_register): Add call to new function
2468 model_get_number_of_cycles().
2470 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2472 * device_table.h: Don't pass the parent device into a devices
2473 create function. This makes the create function consistent with
2475 * device.c (device_template_create_device): Ditto
2476 * hw_pal.c (hw_pal_create): Ditto
2477 * hw_core.c (hw_core_create): Ditto
2478 * hw_vm.c (hw_vm_create): Ditto
2479 * hw_disk.c (hw_disk_create): Ditto
2480 * hw_nvram.c (hw_nvram_create): Ditto
2481 * hw_memory.c (hw_memory_create): Ditto
2482 * hw_cpu.c (hw_cpu_create): Ditto.
2484 * device.c (split_find_device): Allow a null initial parent device.
2485 (device_template_create_device): Ditto.
2487 * device.c (device_create_from): Make local (static) only used
2489 * device_table.h: typedef device_callbacks moved here (from
2490 device.h) where it belongs.
2492 * hw_core.c: New file. Implements just the core device using the
2495 * corefile.c: Moved all core device functions into the new
2496 hw_core.c file. core_device_create() disapears.
2498 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2501 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2503 * hw_init.c: Correct typo in comment.
2505 * corefile.c (core_init): Remove any remaining references to a
2507 (core_map_find_mapping): Ditto.
2509 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2511 * corefile.c (core_init): Make function global so that other
2512 devices are able to use the full core object.
2514 * corefile.c (core_create, core_from_device): Break core_create
2515 into two functions. The first creates a core object, the second
2516 returns the core object associated with a core device.
2518 * corefile.c (core_device_create): Use core_create to make the
2521 * psim.c (psim_create): Use core_from_device() instead of
2524 * device.c (device_template_create_device): Make static as only
2525 needed by functions internal to device.c.
2527 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2529 * ppc-opcode-test-2: Remove description of fields.
2530 * ppc-opcode-complex: Ditto
2531 * ppc-opcode-flat: Ditto
2532 * ppc-opcode-simple: Ditto
2533 * ppc-opcode-stupid: Ditto
2534 * ppc-opcode-test-1: Ditto
2535 * ppc-cache-rules: Ditto
2537 * igen.c: Add description of files as a comment at the front.
2539 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2541 * configure.in: Check for whether the termios and termio
2542 structures are really defined, and whether or not, they define the
2544 * configure: Regenerate.
2546 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2549 * emul_unix.c: Various changes to allow for building on systems
2550 with different termio and termios structures. If host has both
2551 termio and termios, just use termios. No longer include
2554 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2556 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2557 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2559 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2560 (AC_PROG_INSTALL): Added.
2561 * configure: Rebuilt.
2563 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2565 * corefile.h: Rewrite documentation so that it can be extracted and
2566 converted into texinfo (and hence ready for translation into html,
2570 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2572 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2574 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2576 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2577 is the source of SEEK_SET.
2579 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2581 * psim.c (psim_options): Correct type of dummy arguments being
2582 passed to a device_ioctl call.
2584 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2585 (write_stack_arguments): Ditto.
2586 * hw_trace.c: Instance callback entry no longer a table.
2588 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2590 * emul_unix.c (do_unix_umask): Cast printf argument.
2591 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2593 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2595 * hw_init.c (update_for_binary_section): Abort if we find an
2596 .interp section, which indicates the need for shared libraries to
2599 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2601 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2602 for time, gettimeofday, and getrusage system calls.
2603 ({solaris,linux}_descriptors): Add new system calls.
2604 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2605 (do_get{,p}pid): Use pic_t types.
2607 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2608 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2609 * config{.in,ure}: Regenerate.
2611 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2613 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2614 `ppc-elf' and `ppc-xcoff' for the stack-type.
2615 * emul_unix.c (emul_unix_create): Ditto.
2616 * emul_bugapi.c (emul_bugapi_create): Ditto.
2617 * hw_init.c: Reconize the new names.
2619 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2620 call is used (no system parameter).
2622 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2624 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2627 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2628 (os_emul.o): Depend on emul_unix.h.
2629 (emul_unix.o): New dependency.
2631 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2632 alignment to 0, which means use appropriate alignment for mode.
2633 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2634 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2635 * config.in: Regenerate.
2636 * configure: Regenerate.
2638 * emul_generic.c (emul_write2_status): New function to return
2639 results in r3 and r4 for Solaris system calls.
2640 (emul_do_system_call): If the system call is not support, but
2641 there is a string for the system call name, print out the string
2642 instead of the system call number.
2644 * emul_generic.h (emul_write2_status): Declare it.
2646 * emul_netbsd.c: Use /* */ around comment on #endif.
2648 * os_emul.c: Include emul_unix.h.
2649 (os_emulations): Add emulations for Solaris, and Linux.
2651 * psim.c (psim_usage): Add message about solaris, linux
2654 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2656 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2658 * README: Correct PSIM's title
2660 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2662 * basics.h: New global type object_disposition, used to indicate
2663 the status of objects when things are restarted.
2665 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2667 * device_table.h: Change the interrupt descriptor structure so
2668 that it includes an additional member - an upper bound on the
2669 interrupts by that name.
2671 * device.c (device_interrupt_decode): Allow a range of interrupt
2672 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2674 * device.c (device_tree_print_device): Include a list of valid
2675 interrupt ports when listing supported devices.
2677 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2679 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2680 the interrupt net so that it uses int0 .. intN.
2682 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2684 * device.h, device.c (device_ioctl): Drop the system argument.
2685 Devices can not obtain this using the device_system() call.
2686 * device_table.h: Adjust accordingly.
2687 * hw_*.c: Adjust accordingly.
2688 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2689 * psim.c (psim_options): Use a device_ioctl call to force the
2690 hw_trace device to update the trace options.
2691 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2694 * psim.c (psim_init): Re-order initialization so that the
2695 os-emulation is initialized after the device tree. Without this,
2696 os-emul's are not able to create instances or access properties
2697 that contain an instance handle.
2699 * device.h, device.c (device_add_*_property): Make these functions
2700 internal to device.c. The user has access to the more generic
2701 device_tree_add_parsed function. Differentiate between the initial
2702 and current value for each property.
2703 * (clean_device_properties): New function that deletes any
2704 properties created after the start of a simulation and restores
2705 the initial value of any others (ignoring ihandles).
2706 * (init_device_properties): (Re)Initialize any properties that
2707 contain ihandles. create
2709 * (device_tree_init): Include calls to clean the device tree's
2710 properties and then initialize them. Document this in the device.h
2713 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2715 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2716 interrupt even if it is not yet possible to deliver it.
2718 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2720 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2721 visable adjusting the arguments so that the interface is correct.
2722 (mon_print_info): Adjust calls.
2724 * registers.h, registers.c (register_description): Add phony
2725 cycle, insn and stall registers.
2727 * psim.c (psim_read_register): Return nr of instructions for given
2730 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2732 * hw_htab.c: New file. Extract contents from disk_table.c.
2733 Contains a device that, during initialization will create a
2734 PowerPC htab in memory.
2735 * hw_register.c: New file. Extract contents from disk_table.c.
2736 Contains a device that, during initialization, will parse its
2737 property list and use that to initialize various processor
2738 registers (not target specific).
2739 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2740 a device that handles accesses to invalid virtual memory addresses
2742 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2743 devices that can initialize memory from a file.
2744 * hw_trace.c: New file. Extract contents from disk_table.c.
2745 Configure trace options from property values.
2747 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2748 hw_trace.c): Add new device files.
2750 * device_table.c: Remove above code, now in separate independant
2753 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2755 * hw_disk.c: New file. Disk and CDROM device.
2757 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2759 * pk_disklabel.c: New file. Implement the miss-named disk-label
2762 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2765 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2766 they are re-created when the makefile is updated.
2768 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2769 (below the iobus) to the device tree. Include an ihandle of
2770 the disk as /chosen/disk.
2772 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2773 output and (new) disk handles yet.
2774 * (emul_bugapi_init): Initialize the input, output (and just added)
2776 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2777 what I think the behavour is).
2778 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2779 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2780 though this isn't part of the spec - makes it possible for machine
2781 code to signal the aporting of a simulation run.
2783 * emul_chirp.c (chirp_emul_call_method): Add support for the
2784 claim/release methods.
2785 * (chirp_emul_exit): Add an optional exit status argument to
2786 the exit method. Makes it possible for chirp emul simulations
2787 to abort upon an error.
2788 * device.h, device.c (device_instance_claim,
2789 device_instance_release): New methods for claiming and releasing
2791 * hw_memory.c: add claim and release memory methods.
2792 * hw_*: Use the claim memory method when allocating physical
2795 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2797 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2798 time when updating the clock.
2800 * hw_nvram.c: Tidy up documentation
2802 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2804 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2805 macros to determine whether or not the appropriate st_<xxx> fields
2806 exist in the stat structure.
2807 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2808 the real basic ones like open, read, write, etc.
2809 * config{.in,ure}: Regenerate.
2811 * emul_netbsd.c: Add support for missing system calls, and/or
2812 missing stat fields.
2813 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2816 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2818 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2819 F_SETFL not defined.
2821 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2823 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2826 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2828 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2829 * config{.in,ure}: Regenerate.
2830 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2833 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2835 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2838 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2840 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2841 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2844 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2846 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2847 fgets to read line. If not using stdio, do a simple blocking read
2850 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2852 * Makefile.in: Correctly build simulator for build machine != host
2855 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2857 * configure.in (--enable-hostendian): Rework so the default uses
2858 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2860 * configure: Regenerate.
2862 * sim-endian.h: Add more tests for host endian to support more
2863 platforms in a cross compilation environment.
2865 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2867 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2868 use stdio, instead of unpended read/printf_filtered.
2869 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2870 flush stdout after writing the characters.
2872 * options.c (print_options): Print out WITH_STDIO.
2874 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2875 configuration variable.
2876 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2877 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2878 files to contain directory pieces.
2880 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2881 should use stdio for console input.
2882 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2884 * configure.in (--enable-sim-stdio): Add new switch to control
2885 whether stdio is used for console I/O.
2886 * configure: Regenerate.
2888 * interrupts.c (external_interrupt): Declare it to be
2889 INLINE_INTERRUPTS, not INLINE_CPU.
2891 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2893 * events.c (insert_event_entry): Allow events to be scheduled
2894 *NOW* (at delta time 0). Add assertions to clarify behavour of
2897 * events.c (update_time_from_event): New function. Calculates the
2898 number of ticks from the next event. Use this.
2900 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2902 * emul_netbsd.c (do_break): Return 0 if success (instead of
2905 * device_table.c (vm_ioctl_callback): Don't return adjusted break
2908 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
2910 * device_table.h: Change type of the device ioctl so that it
2911 returns an int (status).
2912 * device.h (device_ioctl): Ditto.
2913 * device.c (device_ioctl): Ditto.
2915 * device_table.c (stack_ioctl_callback): Return 0 status.
2916 (vm_ioctl_callback): Ditto
2918 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2920 * emul_netbsd.c (do_read): Correctly set the return value.
2923 (do_geteuid): Ditto.
2925 (do_getegid): Ditto.
2927 (do_sigprocmask): Ditto.
2930 (do_gettimeofday): Ditto.
2931 (do_getrusage): Ditto.
2935 (do___sysctl): Ditto.
2937 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2939 * device_table.c (vm_ioctl_callback): Don't access the processor
2940 registers directly, instead leave it to the caller to handle this.
2942 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
2943 perform a break. Pass in the new break value and set the
2944 registers according to the result.
2946 * emul_generic.c (emul_write_status): Change so that r3 contains
2947 either status or errno and failure is indicated by SO.
2949 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2951 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
2954 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
2956 * interrupts.h (interrupts): New structure contains state of
2959 * cpu.c (cpu_interrupts): New function. Pending interrupt status
2960 in the cpu and grant access to it. Add interrupts to cpu
2963 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
2965 * device.c (device_tree_add_parsed): Check that the creation of a
2966 device instance worked before using it.
2968 * psim.c (psim_halt): Remove cia argument from psim_halt. This
2969 function does not save the CIA so do not pass it in.
2971 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
2973 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
2974 found in device_table.c into a single hack pal.
2976 * device_table.c (halt, icu, console): Delete.
2978 * Makefile.in (hw_pal.o): New dependency.
2980 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
2981 so that it uses the pal instead of the icu/halt/console devices.
2982 Wire the pal's interrupt ports up to the cpu nodes.
2984 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
2986 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
2987 device_table.c to here.
2989 * Makefile.in (hw_iobus.o): New dependency.
2991 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2993 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
2994 (emul_bugapi_create): Create input, output from /chosen/stdin and
2996 (emul_bugapi_do_{read,write}): Switch to use device_instance
2998 (emul_bugapi_instruction_call): Change calls to
2999 emul_bugapi_do_{read,write} to pass device instance argument.
3001 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3003 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3004 default is not written out if a default was already written.
3006 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3007 size cooked_buf, not sizeof natural_word, since floating point
3008 registers are 8 bytes.
3010 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3012 * configure: Regenerate with autoconf 2.9.
3014 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3016 * device_table.h: Always include string headers.
3018 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3020 * main.c (error): Be careful to not try to print out statistics
3021 when the simulation was never created.
3023 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3025 * basics.h: Move the event queue's definition to here so that it
3026 can be refered to globally with out importing all of events.h.
3028 * psim.h, psim.c (psim_event_queue): New function. Grant access
3029 to the simulation event queue. Will make this the single point of
3030 access (there is after all only one event queue in the
3033 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3034 queue instead of it being passed in. No longer allow access to
3035 the cpu's copy of the event queue.
3037 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3039 * events.h, events.c (event_handler): Remove event_queue from
3040 arguments passed to an event handler. That argument is redundant
3041 - the `data' should refer to a data structure that contains the
3042 event queue if queing is needed.
3044 * cpu.c (cpu_decrement_event): adjust
3046 * events.c (event_queue_process): adjust
3048 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3050 * device.h, device.c (device_system): New, returns a handle for
3051 the system given the device.
3053 * device.c (device_address_init): Store a pointer back to the
3054 system in each devices node.
3056 * device_table.h: Don't pass `system' into each device when it is
3057 being initialized, this is now available using device_system(me).
3059 * device.c (device_address_init, device_data_init): Adjust.
3061 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3064 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3066 * interrupts.c (decrementer_interrupt, external_interrupt):
3067 Remember that an interrupt wasn't delivered so that it can be
3070 * interrupts.c (check_masked_interrupt): New function. (re)
3071 checks for the posibility that a recent change to the MSR may have
3072 made it possible to deliver an interrupt that was previously
3073 masked be the EE bit.
3075 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3076 a pending interrupt being delivered using check_masked_interrupt().
3078 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3079 leaving it to that module to handle both interrupt synchronization
3082 * cpu.c (struct _cpu): remove variables that were going to record
3083 pending decrementer and external interrupts.
3085 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3087 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
3088 between the interrupt controller and the simulators internal
3089 processor model. Maps device interrupts onto the processor
3090 interrupt function calls.
3092 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3094 * hw_nvram.c: NVRAM device that includes a real-time clock that is
3095 updated each second.
3097 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3099 * device.h (attach_type): Remove attach_default type address
3100 spaces. Will replace with levels of callback memory.
3102 * corefile.h, corefile.c (new_core_mapping), corefile.c
3103 (core_map_attach): Replace default attach with a layerd callback
3106 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3108 * device.c (split_property_specifier): ensure that only a single
3110 (split_value): New function, parses the value part of a device
3113 * device.c (device_tree_add_parsed): Use the interrupt conversion
3114 functions to determine the interrupt port numbers.
3116 * device_table.h: Add table that maps between an interrupts
3117 symbolic name and its port number.
3119 * device.h, device.c (device_interrupt_decode,
3120 device_interrupt_encode): new functions use the recently added
3121 interrupt port name/number tables to perform conversion.
3123 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3125 * device.h, device.c (device_set_array_property,
3126 device_set_boolean_property, device_set_ihandle_property,
3127 device_set_integer_property, device_set_string_property): New
3128 functions - allow the value of a given property to be changed.
3130 * device.h, device.c: Re-order declaration and definition of
3133 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3135 * device.c (device_tree_print_device, device_tree_add_parsed):
3136 Remove references to phandle properties.
3138 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3140 * Makefile.in (corefile.o): missing dependency on device_table.h
3143 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3145 * device_table.h: Revamp device init callbacks so that they are a
3147 * device.c (device_init_data, device_init_address): If an init
3148 callback is NULL assume it should do nothing.
3149 * device_table.c (ignore_device_init, unimp_device_init): delete
3151 * device_table.c, hw_memory.c: adjust.
3155 * (device_instance): ditto.
3157 * (address nee config_address): ditto.
3158 * (interrupt): ditto.
3160 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3162 * igen.c (idecode_switch_end): Output a default entry when the
3163 switch statement is perfect. Firstly stops GCC complaining about
3164 an incomplete switch and secondly it will be eliminated by a good
3167 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3169 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3170 hw_*.c files. hw.h declares a device descriptor table for each hw
3171 device while hw.c lists those tables in a form suitable for the
3172 construction of a top leveltable in device_table.c.
3174 * Makefile.in (device_table.o): now depends on hw.c a generated
3177 * device_table.c (device_table): Re-arange the table of devices so
3178 that two levels are possible. Make use of hw.c.
3179 * device_table.h: ditto.
3181 * device.c (device_template_create_device): Handle new two level
3182 device lookup table.
3183 * device.c (device_usage): ditto.
3185 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3187 * device_table.c: Delete the memory device (moved to hw_memory.c).
3189 * hw_memory.c: New file. Just an OpenBoot memory device.
3191 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3193 * device.c (device_init_address): New. Split initialization into
3194 two stages, address and address spaces
3195 * device.c (device_init_data): New. ... and data or other work.
3196 With out this, devices try to modify memory before it as been
3199 * device.c (device_tree_init): Update to perform staged
3202 * device.c (device_init): Delete.
3204 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3206 * device_table.c (data_*): Rewrite to make heaver use of property
3207 nodes. Allow initialization by different data types.
3208 * device_table.c (htab_* pte_*): Rewrite to use properties.
3210 * emul_chirp.c (emul_chirp_create): Use
3211 * emul_bugapi.c (emul_bugapi_create): Ditto
3212 * emul_netbsd.c (emul_netbsd_create): Ditto
3214 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3216 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3217 with options that haven't yet been specified.
3218 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3219 with demo devices and properties.
3221 * emul_chirp.c (emul_chirp_create): Update to use new
3222 device_tree_add_parsed call and additional information now
3223 included in the device tree. Use emul_add_tree* functions to add
3224 any missing details.
3225 * emul_bugapi.c (emul_bugapi_create): Ditto
3226 * emul_netbsd.c (emul_netbsd_create): Ditto
3228 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3230 * device.c (device_instance_create): New. Create/delete and
3231 operate on instances of a device.
3232 * device.c (device_instance_delete): Ditto
3233 * device.c (device_instance_read): Ditto
3234 * device.c (device_instance_write): Ditto
3235 * device.c (device_instance_seek): Ditto
3236 * device.c (device_instance_data): Ditto
3237 * device.c (device_instance_name): Ditto
3238 * device.c (device_instance_path): Ditto
3240 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3241 * emul_chirp.c (chirp_emul_close): Ditto
3242 * emul_chirp.c (chirp_emul_read): Ditto
3243 * emul_chirp.c (chirp_emul_write): Ditto
3244 * emul_chirp.c (chirp_emul_seek): Ditto
3246 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3247 Being careful to convert all from target to host byte order.
3248 * emul_chirp.c (chirp_write_h2t_args): Converse.
3250 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3252 * device.c (device_tree_add_parsed): New. Rewrite code to add
3253 devices to the device tree so that a single printf style function
3256 * device.c (device_tree_add_*): Delete. Replaced by above.
3258 * device.c (split_device_specifier): Functions to manipulate a
3259 device specifier (path) breaking it into its components
3260 * device.c (split_property_specifier): Ditto
3261 * device.c (split_device_name): Ditto
3262 * device.c (split_find_device): Ditto
3264 * device.c (scan_*): Delete
3266 * device.c (device_tree_find_device): Rewrite to use above.
3267 * device.c (device_add_property): Ditto
3269 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3271 * psim.c(psim_options): Parse the psim options, installing their
3272 value in the device tree. Options are now first entered into a
3273 device tree and then extracted out again when needed. This allows
3274 greater flexability in configuration.
3276 * psim.c (psim_tree): Returns a basic device tree ready for
3277 parsing by psim_options.
3278 * psim.c (psim_usage): New. Give usage to varing levels of detail
3279 according to the verbosity. In turn output device and trace
3282 * main.c (main): Update to use new system
3283 * sim_calls.c (sim_open, sim_do_command): Ditto
3285 * psim.c (psim_options): Add `r' option - ram size.
3286 * psim.c (psim_options): Add `o' option - openboot tree entry.
3287 * psim.c (psim_options): Add `h'/`H' options - more help.
3289 * debug.c (trace_usage): Add more detailed help.
3290 * device.c (device_usage): New. Output help including a list of
3291 the devices currently available in the device table.
3292 * device_table.c: Add usage operator to each device.
3294 * corefile.c (core_create, core_device_create): Adjust so that the
3295 core device is created earlier for psim_tree(). Core can later be
3298 * psim.c (psim_create): Update to handle above way of creating
3299 things. Extract all information from the device tree.
3301 * device_tree.c (trace_*): New device node, its properties are
3302 used to set the value of the trace options. Init this device (in
3303 psim_options) when ever the options are updated.
3305 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3307 * debug.h: Add trace_print_info, trace_print_device_tree and
3308 trace_dump_device_tree. The first is a replacement for the
3309 variable `print_info' found in main.c and sim_calls.c. The latter
3310 two enable the dumping of the entire device tree.
3312 * debug.c: Add to trace_description table.
3314 * main.c (main): Use above trace instead of local variable
3315 * sim_calls.c (sim_close): Ditto
3317 * device.c (device_tree_print_device): New. Prints the device
3318 tree in a format that is consistent with what can be parsed by the
3319 device tree load from file code.
3321 * psim.c (psim_create): Dump device tree if enabled. If nump
3322 selected, exit psim immediatly.
3324 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3326 * corefile-n.h (core_map_read_N): When mapping from an address to
3327 a device, do not subtract the devices base. The device its self
3328 can do this. Brings the behavour into line with OpenBoot.
3329 * corefile-n.h (core_map_write_N): Ditto
3330 * corefile.c (core_map_read_buffer): Ditto
3331 * corefile.c (core_map_write_buffer): Ditto
3333 * device_table.c (console_io_read_buffer_callback): Adjust to
3334 handle biased address.
3335 * device_table.c (console_io_write_buffer_callback): Ditto
3337 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3339 * device.c (attach_device_interrupt_edge): New. Interrupt model
3340 did not allow interrupts to be wired up as a general net (edges).
3341 Re-implement so that interrupt events can be passed to multiple
3342 controllers and interrupt controllers can further propogate
3345 * device.c (attach_device_interrupt_edge) : New, Ditto
3346 * device.c (detach_device_interrupt_edge) : New, Ditto
3347 * device.c (clean_device_interrupt_edges) : New, Ditto
3348 * device.c (device_interrupt_event) : New, Ditto
3349 * device.c (device_interrupt_attach) : New, Ditto
3350 * device.c (device_interrupt_detach) : New, Ditto
3351 * device.c (device_child_interrupt_attach) : New, Ditto
3352 * device.c (device_child_interrupt_detach) : New, Ditto
3354 * device.c (device_attach_interrupt) : Delete old
3355 * device.c (device_detach_interrupt) : Delete old
3356 * device.c (device_interrupt) : Delete old
3357 * device.c (device_interrupt_ack) : Delete old
3359 * device_table.c (unimp_*) : Update to match
3361 * device_table.c (icu_io_write_buffer_callback) : Update to use
3363 * device_table.c (icu_interrupt_event_callback) : Ditto
3365 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3367 * device.c (external_to_device) : New function that provides a
3368 standard mapping between a devices internal representation (a
3369 pointer) and its external (or what is passed to a client)
3370 representation (a phandle). Implement using the cap object
3371 attached to the root node.
3373 * device.c (device_to_external) : Ditto
3374 * device.c (external_to_device_instance) : Ditto but for ihandle
3375 and device instance.
3376 * device.c (device_instance_to_external) : Ditto
3378 * Makefile (device.o): Add dependency on cap.
3380 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3381 needing to translate between internal and external representations
3382 changed to use the external_to_device et.al. device operations.
3383 * emul_chirp.c (chirp_emul_*) : Ditto
3385 * Makefile (emul_chirp.o): Remove dependency on cap
3387 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3389 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3390 on OpenBoot note section.
3392 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3394 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3395 read/write calls for buffer transfers. This will cause a fault to
3396 occure if the transfer fails. CHRP catches the fault while the
3397 others suffer the consequences.
3398 (emul_read_buffer): Ditto.
3399 (emul_write_word): Ditto.
3400 (emul_read_word): Ditto.
3401 (emul_read_string): Ditto.
3403 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3405 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3406 emul_generic (emul_blr_instruction): Use a real blr instruction to
3407 return from a client service call.
3409 * emul_chirp.c (services): Add all OpenBoot services to table.
3411 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3412 (emul_chirp_create) : Use names instead of numbers for
3413 instructions being stored in memory.
3415 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3417 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3418 (From NetBSD) files.
3420 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3422 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes