1 2003-06-21 Andrew Cagney <cagney@redhat.com>
3 * hw_com.c (hw_com_device_init_data): Check that the output, and
4 not input file opened. Pointed out by masahino tky3.3web.ne.jp.
6 2003-06-20 Andrew Cagney <cagney@redhat.com>
8 * sim_calls.c (sim_create_inferior): Assert that
9 psim_write_register succeeded.
10 (sim_fetch_register, sim_store_register): Make "regname" constant.
11 Delete Altivec hack. Return result from psim_read_register /
13 * psim.h (psim_read_register, psim_write_register): Change return
14 type to int. Update comments.
15 * psim.c: Update copyright.
16 (psim_stack): Assert that the psim_read_register worked.
17 (psim_read_register, psim_read_register): Return the register's
18 size. Allocate the cooked buffer dynamically.
19 * hw_register.c: Update copyright.
20 (do_register_init): Check that psim_write_register succeeded.
21 * hw_init.c: Update copyright.
22 (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
23 that the register transfer worked.
25 2003-06-19 Andrew Cagney <cagney@redhat.com>
27 * ld-insn.h: Update copyright.
28 (cache_fields): Define.
29 (insn_table_fields): Add insn_field_6 and insn_field_7.
30 (load_insn_table): Pass in the "cache_rules".
31 * ld-insn.c: Update copyright.
32 (load_insn_table): Add parameter "cache_rules". Handle "cache",
33 "computed" and "scratch" fields.
34 (main): Pass "cache_rules" to load_insn_table.
35 * ld-cache.h: Update copyright.
36 (append_cache_table): Declare.
37 * ld-cache.c: Update copyright.
38 (append_cache_table): New function.
39 (load_cache_table): Call.
40 * gen-model.c: Include "ld-cache.h".
41 * gen-itable.c: Include "ld-cache.h".
42 * igen.c: Move #include "ld-cache.h" to earlier. Update
44 (main): Permit a NULL "cache_rules". Pass address of
45 "cache_rules" to load_insn_table.
46 * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
47 (tmp-igen): Do not include ppc-cache-rules.
48 (gen-itable.o, gen-model.o): Add "ld-cache.h".
49 * ppc-cache-rules: Delete file.
50 * ppc-instructions: Add cache rules.
52 2003-06-19 Andrew Cagney <cagney@redhat.com>
54 * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
55 (SIM_FPU_FLAGS): Define.
56 (icache.o): Delete explicit compile command.
57 (semantics.o, idecode.o): Delete explicit compile command.
58 (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
59 * gen-support.c (gen_support_c): Generate #include of
60 "sim-inline.h" and "sim-fpu.h", but conditional on
62 * gen-idecode.c (gen_idecode_c): Ditto.
63 * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
64 "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
65 Move to before "support.h".
66 * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
69 2003-05-16 Ian Lance Taylor <ian@airs.com>
71 * Makefile.in (various): Use $(SHELL) whenever we invoke
74 2003-02-27 Andrew Cagney <cagney@redhat.com>
76 * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
78 2002-09-27 Andrew Cagney <ac131313@redhat.com>
80 * hw_disk.c (hw_disk_init_address): Set device type to "block",
83 2002-06-22 Andrew Cagney <ac131313@redhat.com>
85 * Makefile.in (INTL_SRC): Define.
86 (INTL_CFLAGS): Define.
88 (STD_CFLAGS): Add INTL_CFLAGS.
90 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
92 * psim.c (psim_options): Don't choke when gdb invokes us with
93 the --architecture option, just ignore it.
95 2002-06-16 Andrew Cagney <ac131313@redhat.com>
97 * configure: Regenerated to track ../common/aclocal.m4 changes.
99 2002-06-08 Andrew Cagney <cagney@redhat.com>
101 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
102 * sim_calls.c: Ditto.
104 2002-05-30 DJ Delorie <dj@redhat.com>
106 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
108 * gen-idecode.c (print_run_until_stop_body): Likewise.
109 * gen-model.c (gen_model_c): Likewise.
111 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
113 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
114 AltiVec registers as a temporary stopgap.
116 2002-03-24 David O'Brien <obrien@FreeBSD.org>
118 * ppc/hw_disk.c: Export a disk device property.
120 2002-03-23 Andrew Cagney <ac131313@redhat.com>
122 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
123 * ppc-instructions (lswx): Do the register control with the
124 register count. Initialize the right register in the loop.
125 (mtfsfi) : Correct prefix for the instruction.
127 2002-02-24 Andrew Cagney <ac131313@redhat.com>
130 * std-config.h: Fix grammar and typos. Update copyright.
133 2002-01-12 matthew green <mrg@redhat.com>
135 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
136 * igen.c (main): Change -I to add include paths for :include:
138 Implement -G as per sim/igen, with just gen-icache=N support.
139 Call load_insn_table() with the built include path.
141 * ld-insn.c (parse_include_entry): New. Load an :include: file.
142 (load_insn_table): New `includes' argument. Look for :include:
143 entries and call parse_include_entry() for them.
144 (main): Adjust load_insn_table() call.
145 * ld-insn.h (model_include_fields): New enum.
146 (load_insn_table): Update prototype.
147 * table.c (struct _open_table, struct _table): Rework
148 structures to handle included files.
149 (table_push): Move the guts of table_open() here.
151 * table.c (struct _open table, struct table): Make table object an
152 indirect ptr to the current table file.
153 (current_line, new_table_entry, next_line): Make file arg type
155 (table_open): Use table_push.
156 (table_entry_read): Point variable file at current table, at eof, pop
159 * misc.h (NZALLOC): New macro. From sim/igen.
161 * table.h, table.c (table_push): New function.
163 2002-01-04 matthew green <mrg@redhat.com>
165 * bits.c (LSMASKED64): New inline function.
166 (LSEXTRACTED64): Likewise.
167 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
168 sim/common/sim-bits.h
169 (LSMASKED64, LSEXTRACTED64): New functions definitions.
170 * Makefile.in (sim-bits.o): Remove target.
172 * main.c (zalloc): Fix typo in error message.
174 2001-12-16 Andrew Cagney <ac131313@redhat.com>
176 * configure.in (sim_fpu): Don't add sim-bits.o.
177 * configure: Re-generate.
179 2001-12-15 matthew green <mrg@redhat.com>
181 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
182 (sim_io_error): New function.
183 * sim_calls.c: (sim_io_error): New function.
185 2001-12-14 matthew green <mrg@redhat.com>
187 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
188 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
189 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
190 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
191 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
192 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
193 * configure: Regenerate.
194 * device.h (device_find_integer_array_property): Match function definition.
195 * gen-icache.c (print_icache_internal_function_declaration): Rename
196 INLINE_ICACHE to PSIM_INLINE_ICACHE.
197 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
198 to PSIM_INLINE_IDECODE.
199 * gen-semantics.c (print_semantic_function_header): Rename
200 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
201 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
203 * igen.c (print_function_name): Also escape `(' and `)'.
204 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
205 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
206 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
207 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
208 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
209 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
210 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
211 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
212 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
213 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
214 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
215 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
216 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
217 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
218 * options.c (options_inline): Fix names.
219 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
220 * sim-endian.h: Likewise.
221 * sim-main.h: New file.
222 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
224 2001-12-01 Andrew Cagney <ac131313@redhat.com>
227 * ppc-spr-table: Add SDA and PIR.
229 2001-10-29 Andrew Cagney <ac131313@redhat.com>
231 * tree.c (parse_size): Assert #size-cells > 0.
232 (parse_address): Ditto for #address-cells.
233 (parse_reg_property): Only parse the size when #size-cells is
236 2001-10-25 Andrew Cagney <ac131313@redhat.com>
238 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
239 * hw_htab.c (htab_map_binary): Don't try to map the text section
241 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
243 (emul_chirp_create): Map in the interrupt table.
245 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
247 * Makefile.in: Add dependencies on $(CPU_H).
249 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
251 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
254 2001-03-04 Andrew Cagney <ac131313@redhat.com>
256 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
258 (do_stat): Only do SYS test when SYS_stat defined.
259 (do_sigprocmask): Ditto for SYS_sigprocmask.
260 (do_fstat): Ditto for SYS_fstat.
261 (do_getdirentries): Ditto for SYS_getdirentries.
262 (do_lstat): Ditto for SYS_lstat.
264 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
266 * emul_netbsd.c (do_open): Translate the flag parameter to the
267 open syscall to the numbers supported by the host.
269 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
271 * sim-endian.h: Don't have parameters on macro definitions which
272 are simply renaming functions, to permit use of XCONCAT2 in both
273 the macro name and the arguments in a use of such a definition.
275 2000-11-15 Jim Blandy <jimb@redhat.com>
277 * sim_calls.c: Doc fix.
278 (sim_fetch_register, sim_store_register): Call
279 gdbarch_register_name directly, instead of going through
282 2000-10-24 Geoff Keating <geoffk@cygnus.com>
284 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
286 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
288 * configure: Regenerated to track ../common/aclocal.m4 changes.
290 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
292 * events.c (event_queue_process): Call update_time_from_event
293 every time an event is removed from the queue.
294 (update_time_from_event): Delete assertion that a negative
295 time_from_event implies an empty event queue.
297 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
299 * interrupts.c (deliver_hardware_interrupt): Print time trace in
301 * events.c (event_queue_process): Cleanup trace message.
302 (update_time_from_event): Trace full event queue.
304 2000-03-25 Geoff Keating <geoffk@cygnus.com>
306 * ppc-instructions (Disabled_Exponent_Underflow): Increment
307 the exponent when denormalizing.
309 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
311 * configure: Regenerated to track ../common/aclocal.m4 changes.
313 1999-05-08 Felix Lee <flee@cygnus.com>
315 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
316 * configure: Regenerated to track ../common/aclocal.m4 changes.
318 1999-04-02 Keith Seitz <keiths@cygnus.com>
320 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
321 the frequency at which the poll_quit callback is called.
322 (poll_quit_count): New global.
323 (sim_io_poll_quit): Only call the poll_quit callback
324 after the specified POLL_QUIT_INTERVAL.
326 1999-02-22 Jim Lemke <jlemke@cygnus.com>
328 * dc-complex: Force expansion on all bits of field BO.
329 Previously, the least-significant (prediction) bit was ignored.
330 * ppc-instructions (conditional branches): Implement mpc860c0 option.
331 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
332 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
333 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
334 * interrupts.c (program_interrupt): Added handling for above interrupt.
336 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
338 Make the simulator compatible with the MPC750. It would be nicer
339 to make this a real multi-sim, but that's more work than we have
341 * emul_generic.c (emul_add_tree_options): Only require strict
342 alignment if it was explicitly requested at configuration time.
343 Don't make it the default for little-endian machines.
344 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
345 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
346 THRM2, THRM3): Plop in the MPC750 SPR registers.
347 (DABR): This is weird. This was HID5, but the PPC spec says this
348 should be DABR; why did some random processor use it for something
349 else? The HID5 entry dates back to the original checkin of the
350 simulator code in 1995, so remove it.
351 * sim_calls.c (register_names): Delete this; since the user can
352 now change GDB's list of register names dynamically, we can't
353 pretend there's a static mapping here.
354 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
355 function to get the register name. That ought to be accurate.
356 However, we're changing a compile-time dependency (using the
357 REGISTER_NAMES macro) into a link- and run-time dependency
358 (calling REGISTER_NAME, which happens to be a function call on the
361 1999-01-22 Jim Lemke <jlemke@cygnus.com>
363 * igen.c(gen_semantics_[ch]): setup/use of new option
365 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
366 ppc-instructions(the four branch insn groups): detect problematic br's.
367 psim.c(is_num - added, psim_options): Parse and init new option.
368 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
370 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
372 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
374 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
376 * main.c (sim_io_poll_quit): Stub function.
378 * events.c (SIM_EVENTS_POLL_RATE): Define.
379 (sim_events_poll): Copy function from common/sim-events.c.
380 (event_queue_init): Copy scheduling of sim_events_poll from same.
382 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
383 poll the external environment.
385 1998-11-19 Michael Meissner <meissner@cygnus.com>
387 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
388 fractional type, so that quiet NaN's aren't treated like
391 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
393 * table.c (table_open): For cygwin hosts, we need to use the
394 return value from the read routine as the number of bytes to
395 process. This apparently is due to text-mode vs binary-mode. If
396 the mounts are done text-mode, then the size returnedby fstat()
397 may be different than the number of bytes "read" in text mode.
399 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
401 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
406 1998-09-03 Michael Meissner <meissner@cygnus.com>
408 * emul_{netbsd,unix}.c: Update copyright year.
410 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
412 * sim_calls.c (sim_fetch_register, sim_store_register):
413 return zero when nothing to do.
415 1998-06-26 Michael Meissner <meissner@cygnus.com>
417 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
418 * configure: Regenerate.
419 * emul_{netbsd,unix}.c (toplevel): No longer try to include
420 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
422 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
424 * Makefile.in: The run target depended on a target psim$(EXEEXT),
425 but there was no such target, only plain psim. So I changed the
426 run target to depend on psim.
428 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
430 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
431 now defined in ../common/aclocal.m4, and the double definition causes
432 problems with AC_SUBST of EXEEXT.
433 * configure: Regenerate.
435 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
437 * aclocal.m4: new file for AM_EXEEXT macro
438 * configure.in: call AM_EXEEXT
439 * configure: regenerate with autoconf 2.12.1.
440 * Makefile.in: add EXEEXT support
442 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
444 * configure: Regenerated to track ../common/aclocal.m4 changes.
447 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
449 * acconfig.h: New file.
450 * configure.in: Reverted change of Apr 24; use sinclude again.
451 Don't call AC_C_CROSS.
453 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
455 * configure: Regenerated to track ../common/aclocal.m4 changes.
458 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
460 * Makefile.in (top_builddir): New macro.
461 (INTLLIBS): New macro.
462 (INTLDEPS): Likewise.
463 (psim): Depend on INTLDEPS; link against INTLLIBS.
464 * configure.in: Call CY_GNU_GETTEXT.
466 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
468 * configure: Regenerate with autoconf 2.12.1.
470 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
472 * psim.c (psim_read_register, psim_write_register): Handle updates
475 * registers.c (register_description): Reconize "FPSCR".
477 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
478 MSR FP exception mode. Do not enable FPSCR bits.
479 * emul_unix.c (emul_unix_create): Ditto.
481 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
483 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
484 length parameter. Return -1.
486 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
488 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
489 (is_invalid_zero_divide, invalid_zero_divide_operation): New
492 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
494 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
497 1997-11-05 Felix Lee <flee@cygnus.com>
499 * emul_chirp.c: #ifdef HAVE_UNISTD_H
501 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
503 * corefile.c (core_attach): Pad out allocated memory regions so
504 that they are always correctly aligned.
505 (struct _core_mapping, core_map_attach, core_init,
506 new_core_mapping): Change free_buffer to type void*.
508 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
510 * sim_calls.c (zfree): Call free correctly.
512 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
514 * sim_calls.c (zfree): Use free, not mfree.
515 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
518 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
520 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
521 mask extracting shift amount. Correctly condition for setting XER
523 (ldhau): From Johannes Reisinger, update rA after load.
525 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
527 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
529 * words.h: __int64 instead of long long for MSVC.
531 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
533 * sim_calls.c (sim_create_inferior): Check the simulator was
534 initialized before creating inferior.
536 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
537 sign bit using 64 bit and not a 32 bit mask.
539 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
541 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
542 it has been used, not before.
544 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
546 * sim_calls.c (sim_kill): Delete.
547 (sim_create_inferior): Add ABFD argument.
548 (entry_point): Delete variable.
549 (sim_load): Move setting of PC from here.
550 (sim_create_inferior): To here.
552 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
554 * sim_calls.c (sim_open): Add ABFD argument.
556 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
558 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
559 CR register updates dependant on RC value had logic backwards.
561 * ppc-instructions (Load String Word Immediate): From Brad Parker
562 - sense of wrap test in check for overwriting RA wrong.
563 (Load String Word Indexed): Ditto.
565 * configure.in: From Erik Landry - set sim_default_model not
566 sim_model for sim-default-model option.
567 * configure: Regenerate.
569 * interrupts.c (check_masked_interrupts): Schedule a hardware
570 interrupt delivery when FP interrupts get enabled.
571 (program_interrupt): Generate FP exceptions instead of aborting.
572 (deliver_hardware_interrupt): Deliver a FP exception if so
575 * registers.h: Add definition of fpscr_vx_bits.
577 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
579 (FPSCR_END): Explicitly check for possible floating point
580 exception conditions.
581 (FPSCR_BEGIN): Simplify.
583 * ppc-instructions (Move From FPSCR): Enable.
584 (Move To FPSCR Bit 1): Ditto.
585 (Move To FPSCR Bit 0): Ditto.
586 (Move To FPSCR Field Immediate): Ditto.
587 (Move to Condition Register from FPSCR): Simplify.
588 (invalid_arithemetic_operation): Generate a QNaN when invalid
589 operation exception disabled.
591 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
593 * sim_calls.c (sim_open): Add callback argument.
594 (sim_set_callbacks): Delete.
596 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
598 * sim_callbacks.h (error): Make declaration match gdb's.
599 * main.c (error): Ditto.
601 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
603 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
604 stopped/SIGINT. Exit implies a status code.
606 * psim.c (cntrl_c_simulation): From main.c. Event function that
608 (psim_stop): New. Asynchronously schedule a stop simulator event.
609 (psim_run_until_stop): Delete. Made redundant by psim_stop.
611 * main.c (cntrl_c): Update.
612 (cntrl_c_simulation): Moved to psim.c.
614 * sim_calls.c (sim_stop): New function. Use psim_stop which
615 schedules a stop event.
616 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
617 (sim_resume): Use psim_run as stop variable no longer needed.
619 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
621 * psim.c (psim_options): Handle -E option correctly.
622 (psim_usage): Document.
624 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
626 * psim.c (psim_options): Ignore -E option (sets endianness).
627 * sim_calls.c: #include bfd.h.
628 (entry_point): New static local.
629 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
630 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
632 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
634 * Makefile.in (INSTALL): Set to @INSTALL@.
635 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
636 (install): Depend upon installdirs. Use $(program_transform_name)
637 directly, rather than using $(INSTALL_XFORM).
638 (installdirs): New target.
640 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
642 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
643 rather than the non-portable cat -n.
645 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
647 * Makefile.in (INSTALL): Change install.sh to install-sh.
649 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
651 * ppc-instructions: Change milhwu to mulhwu.
653 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
655 * sim_calls.c (sim_open): New arg `kind'.
657 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
659 * COPYING: Update FSF address.
661 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
663 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
664 all the required features are supported by the host OS.
666 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
668 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
670 * configure.in (enable-sim-endain): Correct typo in usage (from
671 Erik Landry <landry@ENGR.ORST.EDU>).
672 * configure: Re-generate.
674 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
676 * Makefile.in (targ-vals.def): Re-do rule so that it works with
677 FreeBSD's make. Didn't like $<.
679 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
681 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
683 (other sim_*): New SIM_DESC argument.
685 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
687 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
688 ppc-opcode-simple-switch, ppc-opcode-complex-array,
689 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
690 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
691 superseeded by --sim-decode-mechanism option.
693 * ppc-opcode-simple, dc-simple: Rename to be 8.3
694 * ppc-opcode-complex, dc-complex: Ditto.
695 * ppc-opcode-stupid, dc-stupid: Ditto.
696 * ppc-opcode-test-1, dc-test.01: Ditto.
697 * ppc-opcode-test-2, dc-test.02: Ditto.
699 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
702 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
704 * Many of the ppc-opcode-* files are identical baring the type of
705 lookup table. Instead of having multiple tables, igen can do this
706 via an additional option.
708 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
709 allow the type of generated table specified in the decode file to
712 * ld-decode.c (load_decode_table): Allow the table type to be
715 * igen.c (main): Add -T <mechanism> option so that an overriding
716 instruction decode mechanism can be specified.
718 * configure.in: New option --sim-decode-mechanism to control
719 igen's new -T <mechanism> flag.
720 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
722 * configure: Regenerate.
724 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
726 * events.c (event_queue_create): Don't use NULL to initialize an
728 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
729 of sigprocmask to appropriate autoconf test.
731 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
733 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
735 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
736 includes our config.h.
738 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
740 * configure.in: Fix typo in test for callback.c.
741 * configure: Regenerated.
743 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
745 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
746 found in the device tree.
748 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
750 * Property create/initialization still wasn't correctly ordered.
751 Should be delaying everything related to ihandle creation until
752 after the rest of the tree has been established.
754 * device.c (device_find_ihandle_runtime_property): Update.
755 (device_add_ihandle_runtime_property): Update.
757 * tree.c (parse_ihandle_property): Delay lookup of the device to
758 be opened until the ihandle initialization phase.
759 * tree.c (print_properties): Update.
761 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
763 * gen-icache.c (print_icache_extraction): Add a reason parameter.
764 Augment each extracted field with a comment citing the codes
765 origin. Should simplify tracking down incorrect cache
768 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
770 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
771 works for normal and boolean table entries.
773 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
774 valid. Handle this just like *_{read,write}_register now handles
777 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
779 * events.c (insert_event_entry): Correct loop termination
782 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
784 * psim.c (psim_options): Add new option -c for max-iterations or
786 (psim_usage): Document.
787 (psim_max_iterations_exceeded): New function, abort simulation if
788 max iterations exceeded.
790 * gen-idecode.c: Re-work the table lookup code so that it assumes
791 that the entry is a leaf by default. Simplify the boolean table
792 entry code so that it involves a mask + test instead of shift +
795 * gen-idecode.c: Correct generated igen body so that it no drops
796 or doubles clock interrupts.
799 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
801 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
804 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
805 if common callback is present.
807 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
809 * configure.in (sim_callback): If the gdb is post 4.16, configure
810 callback support from the common directory.
811 * configure: Regenerate.
813 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
815 (GDB_OBJ): Add callback support configured in.
816 (gentmap,targ-vals.def): Build from common directory.
817 (targ-vals.h,targ-map.c): Build by running gentmap.
818 (callback.o): Build from source in common directory.
819 (targ-map.o): Add dependency.
820 (clean): Remove gentmap.
822 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
824 * igen wasn't aborting if the opcode table contained no valid
827 * misc.c (name2i): Possibly abort if an invalid name is
829 * ld-decode.c: Abort if the table type isn't found.
831 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
833 * When performance monitoring is disabled, it is still possible to
834 determine the simulation speed by looking at the number of elapsed
835 ticks recorded by the event queue.
837 * psim.c (psim_write_register, psim_read_register): Force the cpu
838 to zero when it is either of `-1' or `nr_cpus'. In both cases the
839 next cpu would be zero any way.
841 * mon.c (mon_print_info): If possible, print the system cycle
842 performance. This is an indication of the number of instructions
845 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
847 * The code to allow an event queue to be updated during a signal
848 was missing. For main.c, a cntrl-c simulation termination wasn't
851 * The simulation would not correctly restart if an event requested
852 that the simulation be halted.
854 * psim.c (psim_options): Add hack to -i option to optionally
855 include a level vis -i2.
856 (psim_usage): Document.
858 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
859 cntrl-c occures schedule an event to halt the simulation.
860 (main): Catch CNTRL-C signals with the function cntrl_c.
862 * events.c (event_queue_process): Mask interrupts while
863 manipulating the async event queue.
864 (event_queue_init): Ditto.
865 (event_queue_schedule_after_signal): Ditto.
867 * events.c (event_queue_process): Mark the event queue as being in
868 the processing state when processing has started. Adjust code
869 so that it is tolerant of halts.
870 (event_queue_init): Start the event queue out with processing
872 (event_queue_tick): Check that processing isn't still being
875 * gen-idecode.c (print_run_until_stop_body): Call
876 event_queue_process_events to clear possibly pending events before
877 starting a simulation run. Re-arange main loop so that simulator
878 is correctly restarted when an event halts the simulation.
880 * psim.c (psim_halt): Handle an event halting the simulation.
881 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
884 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
886 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
887 RA. Based on instruction frequency stats, expand additional
889 * ppc-instructions: Change all `RA == 0' to RA_is_0.
891 * ppc-opcode-stupid: Move all but the basic table in -complex into
892 here. Update to new format.
894 * Makefile.in (tmp-defines): New target. Force defines.h to always
895 be built. Hence get ppc-opcode-goto to build.
897 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
899 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
902 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
904 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
905 to be initialized independant of the rest of the simulation
906 initalization. Otherwize a trace option explictly set from gdb
907 could be overridden by hw_trace.
909 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
911 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
912 debug.c. It could be much simpler.
914 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
916 * Some devices support removable media. Add hooks to the disk
917 device so that it supports this.
919 * device.c (device_add_string_array_property,
920 device_find_string_array_property): New functions, manipulate
921 properties containing an array of strings.
922 (device_find_string_property): Allow a string array.
923 (device_init_static_properties): Update.
924 (device_init_runtime_properties): Update.
926 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
927 media. If no file image is specified, use the next one in the
929 (hw_disk_init_address): Change the file property so that it is a
930 string array - use the first entry for the initial file image.
932 * tree.c (print_string_aray_property): New function - print a
934 (print_properties): Adjust.
935 (print_string): Write a string, handling double quotes.
937 * device.h: Define an ioctl to `change-media' with an optional new
940 * hw_disk.c: Allow floppy disk devices to be specified.
942 * psim.c (psim_command): New function, parse more complex psim
943 commands such as "change-media" and "trace".
944 * sim_calls.c (sim_do_command): Use.
946 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
948 * For expressions like (RA == 0) that are entered in to the cache
949 as RA_is_0. If possible generate the result of the expression so
950 that the compiler gets a better chance of eliminating dead
953 * gen-icache.c (print_icache_extraction): For a cache entry of
954 the form <name>_is_<const> where it is a boolean field, generate
955 the result of the expression instead of the expression its self.
956 (print_icache_body): Remove code that was looking for *_is_0 and
957 then generating corresponding definitions.
959 * gen-icache.c (print_icache_struct): If there is no cache, do not
960 output expressions in idecode.h file.
962 * gen-icache.c (print_icache_body): Output them here.
964 * ppc-opcode-complex: Clarify constant values for SPR==LR register
967 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
969 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
971 * The code that put values in and extracted values from the cache
972 was too compilicated. The cache table did not allow values to be
973 computed from cache entries. #defines could only be used when a
974 cache was present, remove the restriction.
976 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
977 scratch variable is defined when a cache entry is beinf
978 filled. Change the definition of a COMPUTE variable to be defined
979 when the cache entry is being used.
980 * gen-icache.c: Update.
982 * ld-cache.h, ld-cache.c: Change field names so that their meaning
983 is more obvious. old_name->field_name, new_name->derived_name.
984 * gen-icache.c: Update
986 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
987 different types of cache code - put into cache, extract from
988 cache, no cache - an explicit argument to print_icache_body.
989 * gen-icache.c (print_icache_extraction): Ditto.
991 * gen-semantics.c (print_c_semantic): Update use.
992 * gen-idecode.c (print_jump_insn): Update use.
993 * gen-icache.c (print_icache_function): Update use.
995 * igen.c (main): Change 'R' option so that it does not force the
998 * configure.in (enable-sim-icache): Clarify description. Make
999 #define one of the defaults regardless of the cache. Probably
1000 should revamp and add a separate option.
1002 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1004 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1005 partition numbering.
1006 (pk_disklabel_create_instance): Partition 1..4 are valid - not
1008 (is_iso9660): New function, verify a CD9660 File system.
1009 (pk_disklabel_create_instance): Start expanding so that active
1010 partition selection is supported.
1012 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1014 * The cap object was retaining a reference to the instance of a
1015 device after it was deleted. Instead add and remove cap's from the
1016 cap db as they are created and deleted. This ensuring that a
1017 capibility is only used during the lifetime of the corresponding
1020 * cap.h, cap.c: Correct cap type - was signed32 should be
1023 * cap.c (cap_add, cap_remove): New methods for cap object that
1024 allow the explicit addition and removal of internal objects that
1025 the cap knows about.
1027 * cap.c (cap_init): Rewrite. Verify that the only objects
1028 remaining in the cap data base are those that were entered first.
1029 Thse objects will be the permenant ones.
1030 * device.c (device_init_address): Remember to initialize the cap
1033 * device.c (device_create_instance_from): Explicitly add device
1034 instances to the cap database. Simplify create code.
1035 (device_instance_delete): Explicitly remove device instances from
1038 * device.c (device_create_from): Explicitly add a device to the
1041 * device.c (device_create_from): Always set the cap members.
1043 * hw_disk.c: Output the instance when tracing.
1045 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1047 * tree.c (split_device_specifier): Add support for aliases when
1048 looking up a device. Now needs a device as an argument.
1049 (split_property_specifier): Ditto.
1051 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1053 * The memory "claim" and "release" methods take an address and
1054 size as arguments. These may be multi cell values. Initially fix
1055 the memory code so that they check/detect this. Leave the
1056 adjustment of any clients to later.
1058 * hw_memory.c (hw_memory_instance_claim,
1059 hw_memory_instance_release): Handle multi-cell memory devices.
1061 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1062 release of memory regions that were not claimed.
1064 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1066 * device.h, device.c (device_instance_call_method): Correct return
1067 type - can return either 0 or -1, hence should be a signed type.
1068 * device_table.h: Ditto.
1070 * hw_memory.c (hw_memory_instance_claim,
1071 hw_memory_instance_release): Update.
1072 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1073 hw_disk_nr_blocks): Ditto.
1075 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1077 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1078 method belonging to "/chosen/memory".
1079 (chirm_emul_release): Ditto.
1081 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1082 that are inlined. These modules are called via a table and are
1085 * hw_init.c (update_for_binary_section): Fix failure to allocate
1086 memory used by the binary in real-mode executions. If "claim"
1087 property is present, allocate memory from the "/chosen/memory"
1090 * emul_chirp.c (emul_chirp_create): Specify that memory should be
1091 claimed when loading a real image.
1093 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1096 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1097 when merging adjacent memory chunks.
1099 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1101 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1102 optional PROCESSOR & CIA args so that this routine also abort an
1105 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1106 miss-aligned access when a transfer fails abort.
1108 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1109 instead of the vm_read_buffer.
1110 * emul_netbsd.c (do_write): Ditto.
1111 * emul_unix.c (do_unix_write): Ditto.
1113 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1115 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1116 * configure: Regenerate.
1118 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1119 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1121 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1122 instead of explicit __unused__ attribute.
1123 (print_icache_body): Ditto.
1124 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1126 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1128 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1131 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1132 arguments so that there is a reference point for recovery.
1133 (vm_synchronize_context): Pass processor+cia for errors.
1134 (om_unpack_sr): Ditto.
1135 (om_unpack_srs): Ditto.
1136 * vm.c (vm_create): Review error messages.
1138 * vm.c: Include "cpu.h" so that cpu_error is visible.
1140 * ppc-instructions (Return From Interrupt): Pass CIA.
1141 (Instruction Synchronize): Ditto.
1142 * psim.c (psim_init): Ditto.
1144 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1146 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1147 but also saves current processor state.
1149 * basics.h: Move #include <stdarg.h> to here from device_table.h.
1151 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
1152 when simulation aborted.
1153 (program_interrupt): Ditto.
1154 (floating_point_unavailable_interrupt): Ditto.
1155 (alignment_interrupt): Ditto.
1156 (floating_point_assist_interrupt): Ditto.
1157 (perform_oea_interrupt): Ditto.
1158 (machine_check_interrupt): Ditto.
1160 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1162 * ppc-instructions (Move from Special Purpose Register): Support
1165 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1167 * debug.h, debug.c: Add "interrupts" trace option.
1169 * interrupts.c (data_storage_interrupt): Add tracing.
1170 (machine_check_interrupt): Ditto.
1171 (instruction_storage_interrupt): Ditto.
1172 (alignment_interrupt): Ditto.
1173 (program_interrupt): Ditto.
1174 (floating_point_unavailable_interrupt): Ditto.
1175 (system_call_interrupt): Ditto.
1176 (floating_point_assist_interrupt): Ditto.
1177 (deliver_hardware_interrupt): Ditto.
1179 * interrupts.c (program_interrupt): For UEA mode, halt the
1180 processor - so that the current state is saved - instead of
1182 (floating_point_unavailable_interrupt): Ditto.
1183 (floating_point_assist_interrupt): Ditto.
1185 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1187 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1190 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1192 * ppc-instructions (Store Multiple Word, Load Multiple Word):
1195 * tree.c (print_properties): For an array consider printing it out
1196 as an integer array.
1198 * hw_memory.c (hw_memory_init_address): If an "available" property
1199 is present, use that to initialize the available memory instead of
1200 using the reg property.
1202 * emul_generic.c (emul_add_tree_hardware): Add "available"
1203 property to memory device.
1205 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1207 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1209 * device.c (device_instance_call_method): Was only looking at the
1212 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1213 (hw_disk_block_size): Implement block-size method.
1214 (hw_disk_max_transfer): Implement max-transfer method.
1216 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1218 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1220 (chirp_emul_instance_to_package): Ditto.
1221 (chirp_emul_method): Ditto.
1222 (chirp_emul_read): Ditto.
1223 (chirp_emul_write): Ditto.
1224 (chirp_emul_close): Ditto.
1225 (chirp_emul_seek): Ditto.
1226 (chirp_emul_package_to_path): Ditto (for phandle).
1227 (chirp_emul_package_to_path): Return the length.
1229 * psim.c (psim_merge_device_file): Allow continuation lines.
1231 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1233 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1236 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1237 members - *_cell not host dependant int.
1239 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1241 * interrupts.c (perform_oea_interrupt): Print additional
1242 information if a double interrupt is encountered.
1244 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1246 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1247 being specified with the -f option.
1248 (psim_merge_device_file): Correct check for end of string.
1250 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1252 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1253 list of devices. Return zero to the client instead.
1254 * emul_chirp.c (chirp_emul_child): Ditto
1255 * emul_chirp.c (chirp_emul_parent): Ditto
1257 * device.c (device_root): Assert assumption about the device being
1260 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1262 * emul_chirp.c (emul_chirp_create): Add description property to
1263 each significant node in the device tree.
1264 * emul_bugapi.c (emul_bugapi_create): Ditto.
1266 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1268 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1269 tempoary two byte buffer. Single byte read with fgets will not
1271 * main.c: Include errno.h.
1272 (sim_io_read_stdin): For non-STDIO, make it work.
1274 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1276 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1278 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1279 Instead have each emulation default it to DO_USE_STDIO.
1281 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1282 mechanism as the default if enabled or if nothing selected.
1284 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1286 (sim_io_write_stdout): Ditto.
1287 (sim_io_write_stderr): Ditto.
1288 * main.c (sim_io_write_stdout): Ditto.
1289 (sim_io_write_stderr): Ditto.
1290 (sim_io_read_stdin): Ditto.
1292 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1294 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1296 * vm.c (om_effective_to_virtual): Ditto.
1297 * events.c (event_queue_schedule{,_after_signal}): Ditto.
1298 (event_queue_{deschedule,process}): Ditto.
1299 * hw_htab.c (htab_decode_hash_table): Ditto.
1300 (htab_map_{page,binary}): Ditto.
1301 * hw_opic.c (hw_opic_init_data): Ditto.
1302 (handle_interrupt): Ditto.
1303 (do_processor_init_register_{read,write}): Ditto.
1304 (write_vector_priority_register): Ditto.
1305 ({read,write}_destination_register): Ditto.
1306 (do_suprious_vector_register_{read,write}): Ditto.
1307 (do_current_task_priority_register_N_{read,write}): Ditto.
1308 (do_timer_frequency_reporting_register_{read,write}): Ditto.
1309 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1310 (do_ipi_N_dispatch_register_write): Ditto.
1311 (do_vendor_identification_register_read): Ditto.
1312 (do_feature_reporting_register_N_read): Ditto.
1313 (do_global_configuration_register_N_{read,write}): Ditto.
1314 * hw_phb.c (hw_phb_attach_address): Ditto.
1315 (hw_phb_unit_decode): Ditto.
1316 (hw_phb_address_to_attach_address): Ditto.
1317 (hw_phb_io_{read,write}_buffer): Ditto.
1318 * hw_ide.c (setup_fifo): Ditto.
1320 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1321 files via -I<dir> instead of using "../../gdb/" prefixes.
1323 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1325 * debug.h: Add tracing for the pal device.
1328 * emul_chirp.c (chirp_emul_getprop): More tracing.
1330 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1332 * device.h, device.c (device_find_ihandle_runtime_property): New
1333 function. Reverse of add_ihandle_runtime property.
1334 (device_init_runtime_properties): Use it.
1336 * device.c (find_property_entry): New function returns the
1337 internal property spec.
1338 (device_set_property): Use.
1339 (device_find_property): Use.
1341 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1343 * psim.c (psim_merge_device_file): Strip newline from device
1346 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1348 * hw_htab.c (htab_map_binary): For overlapping text / data maps
1349 merge the two. Also check that the merge is safe.
1351 * emul_chirp.c (emul_chirp_create): Add a description property to
1352 the pte's so that they are easier to identify.
1354 (emul_chirp_create): Don't specify a load address for the CHRP
1355 image. Always use the values specified by the executable.
1357 * hw_htab.c (htab_map_page): Abort if a duplicate map is
1360 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1362 * hw_htab.c (htab_map_page): Formatting.
1364 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1365 method name when handling the client call. Also check for other
1368 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1369 etc to be overriden.
1371 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1373 * os_emul.c (os_emul_create): Use tree find property instead of
1374 device find property - sigh.
1376 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1378 * 961205: Release snapshot 961205.
1380 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1382 * configure.in (hostbitsize, bitsize): Fix typo in error message -
1383 cannot contain a comma.
1384 (sim-warnings): Check for more potential errors.
1386 * psim.c (psim_usage): Add -f <file> option. Specifies a file
1387 containing device tree specifications that should be merged into
1390 * configure.in: Sort options.
1391 * configure: Rebuild
1393 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1395 * psim.c (psim_usage): Add -n option - specify number of
1398 * emul_chirp.c: Add description.
1399 * emul_bugapi.c: Ditto.
1400 * emul_unix.c: Ditto.
1401 * emul_netbsd.c: Ditto.
1403 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1405 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
1406 encountered, assume that it is the single disk.
1407 * hw_pal.c: Add generic device/size decode methods.
1409 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
1410 property entry when determining the nvram size.
1412 * hw_core.c: Add generic address/size decode methods.
1414 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
1415 nonzero status from client functions.
1417 * main.c (error): Always include a cariage return when writing out
1420 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
1422 * sim_calls.c (sim_resume): Reset sim_should_run if single
1425 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1427 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
1430 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
1431 Attach the pal - for I/O - as a pseudo device haning from the
1434 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
1435 the device tree at the address of the hi-mem interrupt vector
1436 addreses. Used by bugapi to establish its trap instructions.
1438 * debug.h: Add a new macro DITRACE for tracing device instances.
1440 * debug.h: Extend the DTRACE macro so that it can also tests for
1441 device specific tracint.
1443 * device.h, device.c (device_trace): Add method to determine
1444 device specific tracing.
1445 (device_init_address): Set the devices tracing level.
1447 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1449 * tree.h, tree.c (tree_device): New files - separate out the
1450 device parser and other tree operations from the device.
1452 * inline.h, inline.c (INLINE_TREE): Add.
1453 * device.h, device.c (device_tree_add_parsed): Delete.
1454 * Makefile.in (tree.c): Add rules for new file.
1455 * Makefile.in: Better order the emul_* files.
1457 * emul_generic.c (emul_add_tree_hardware): Update.
1458 * emul_netbsd.c (emul_netbsd_create): Update.
1459 * emul_unix.c (emul_unix_create): Ditto.
1460 * emul_chirp.c (emul_chirp_create): Ditto.
1461 * emul_bugapi.c (emul_bugapi_create): Ditto.
1462 * psim.c (psim_tree): Ditto.
1465 * emul_generic.h: Include tree.h
1466 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1468 * device.h, device.c (device_root): New function - returns the
1472 * device.h, device.c (device_clean): New function, clean up device
1473 ready for next simulation run. This includes things like deleting
1474 interrupt edges and properties created during the simulation and
1475 also scrubbing any pre-defined properties.
1476 * tree.c (tree_init): Use.
1478 * device.h, device.c (device_init_static_properties): New
1479 function. Initialize any static predefined properties. By static
1480 we mean those that have values that can be determined before the
1481 device tree initialization has started.
1482 * tree.c (tree_init): Use.
1484 * device.h, device.c (device_init_address): Add code to
1485 check/verify the devices #address-cells and #size-cells.
1486 (device_add_integer_property): Delete corresponding code.
1487 (device_nr_address_cells, device_nr_data_cells): Check for
1488 property when returning value.
1490 * device.h, device.c (device_init_runtime_properties): New
1491 function. Initialize those properties that are not `static'. At
1492 present the only such property is the ihandle.
1493 * tree.c (tree_init): Use.
1495 * device.h, device.c (reg, ranges): Rework these so that they use
1496 an array of the fundamental type - single reg or single range
1499 * device.h, device.c (device_add_ihandle_runtime_property):
1500 Re-implement the adding of an ihandle during tree construction so
1501 that it better fits in with device initialization.
1503 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1505 * device.h, device.c (device_ioctl): Add additional argument -
1506 request - so that the caller must always specify the type of
1509 * device_table.h: Update.
1510 * hw_trace.c (hw_trace_ioctl): Ditto.
1511 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1512 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1513 * psim.c (psim_options): Ditto.
1515 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1517 * BUGS: Updated a bit.
1519 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1521 * hw_opic.c: Finish - third round.
1523 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1525 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1527 (hw_glue_io_write_buffer_callback): Ditto.
1529 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1531 * events.c (event_queue_process): Was incorrectly consuming future
1532 events on the queue when they should be left alone.
1534 * debug.h, debug.c (events): Add support for event queue tracing.
1535 * events.c: Add event tracing.
1537 * debug.h, debug.c: Order device trace options.
1539 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1541 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1542 warnings generated by GCC.
1544 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1546 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1547 PCI devices which are little-endian.
1549 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1551 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1553 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1554 so that it is implementing a 1-1 address map.
1556 * emul_generic.c (emul_add_tree_hardware): Adjust.
1558 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1561 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1563 * device.c (split_find_device): Be tolerant of missing unit
1566 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1568 * basics.h (port_direction): New type, specify the direction of
1571 * device.h, device.c (device_interrupt_decode): Include
1572 specification of port direction in operations.
1573 (device_interrupt_encode): Ditto.
1575 * device_table.h: Add a direction field to the interrupt port
1578 * device.c (device_tree_add_parsed): Specify port direction.
1580 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1582 * hw_opic.c: Finish - second round.
1584 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1586 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1587 to be specified as an array which allows 64bit addresses.
1589 * device.c (device_find_integer_array_property): New function.
1590 Simplify the querying of elements of an integer array.
1591 (device_add_integer_property, device_find_integer_property):
1592 Update to correctly use the cell type.
1594 * vm.c (om_unpack_sr): Clarify shifting comment.
1595 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1597 * emul_chirp.c (emul_chirp_create): Initialize the segment
1600 * vm.c (om_effective_to_virtual): Trace segment register use.
1602 * hw_htab.c (htab_map_page): Print out the pteg base address to
1603 simplify cross checking between vm and the htab.
1604 (htab_decode_hash_table): Use device_error instead of error.
1605 (htab_map_page): Ditto.
1606 (htab_dma_binary): Ditto.
1607 (htab_map_binary): Ditto.
1608 (htab_init_data_callback): Ditto.
1610 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1612 * interrupts.h: Clarify what the optional instruction program
1613 interrupt is - a subset of illegal instruction program interrupt.
1615 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1616 optional instruction program interrupt is.
1617 (program_interrupt): For OEA mode, as per spec, generate an
1618 illegal instruction program interrupt when an optional instruction
1621 * gen-semantics.c (print_semantic_body): Delete code
1622 differentiating between an unimplemented floating point and normal
1623 instruction. Instead, such a case can be handled explicitly.
1625 * ppc-instructions (store floating-point as integer word indexed):
1627 (Floating Convert to Integer Doubleword): Make the floating point
1628 assist interrupt explicit.
1629 (Floating Convert To Integer Doubleword with round towards Zero):
1631 (Floating Convert To Integer Word): Ditto
1632 (Move From FPSCR): Ditto.
1633 (Move to Condition Register from FPSCR): Ditto.
1634 (Move To FPSCR Fields): Ditto.
1635 (Move To FPSCR Field Immediate): Ditto.
1636 (Move To FPSCR Bit 0): Ditto.
1637 (Move To FPSCR Bit 1): Ditto.
1639 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1641 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1642 breaking up transfers.
1644 * corefile.c: Adjust arguments so that the client server
1645 relationship is clarified.
1647 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1650 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1651 looking for things like overflow/underflow.
1653 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1655 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1656 PAL device instead of the IOBUS. The disk must be attached to a
1659 * hw_disk.c (hw_disk_init_address): Just use the unit address
1660 directly in the attach - the rest isn't relevant.
1662 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1664 * configure.in (sim-hardware, sim-packages): Allow additional
1665 hardware and packages to be prefixed as well as appended.
1667 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1668 packages when building them. Consequently, a user can override a
1669 standard device by prefixing their own version.
1671 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1673 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1675 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1677 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1678 (mon_print_info): Correct typo regarding # of unaligned reads and
1679 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1682 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1684 * configure.in (AC_CHECK_FUNCS): Add access.
1685 * config{.in,ure}: Regenerate.
1687 * emul_unix.c (do_unix_nop): System call that always succeeds.
1688 (do_unix_access): Support access system call.
1689 (solaris_descriptors): Make sigaltstack and sigaction nops.
1690 ({solaris,linux}_descriptors): Add support for access.
1692 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1694 * Makefile.in (clean): Move config.log to distclean.
1696 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1698 * corefile-n.h (core_map_write_N): Improve abort messages.
1700 * device.h, device.c (device_attach_address): Remove unused name
1702 (device_detach_address): Ditto.
1703 * device_table.h, device_table.c: Update.
1704 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1705 * hw_nvram.c (hw_nvram_init_address): Ditto.
1706 * hw_memory.c (hw_memory_init_address): Ditto.
1707 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1708 (hw_vm_attach_address): Ditto.
1709 (hw_vm_add_space): Ditto.
1710 * hw_init.c (update_for_binary_section): Ditto.
1711 * hw_core.c (hw_core_attach_address_callback): Ditto.
1713 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1714 configurable parent busses.
1716 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1718 * device_table.c (generic_device_size_to_attach_size): Provide
1719 limited support for multi-cell sizes.
1720 (generic_device_address_to_attach_address): Ditto for addresses.
1722 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1724 * device.c (device_add_integer_property): Check for setting of
1725 #address-cells and #size-cells properties. For these, update the
1726 corresponding device values.
1727 (device_nr_address_cells, device_nr_size_cells): Use the value
1728 from the device instead of the property.
1730 * hw_core.c: Use generic address and size conversions for the top
1733 * hw_memory.c (hw_memory_init_address): Tolerate case where
1734 #address and #size cells is greater than 1.
1736 * device.c (device_tree_print_device): Clean out printing of
1739 * device.c (split_device_specifier): Don't detect comments here -
1740 "#" can be a valid prefix - eg #size-cells.
1742 * psim.c (psim_merge_device_file): Suppress comments and blank
1745 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1746 pal unit address. Add the property /#address-cells to the root of
1749 * device.c (device_template_create_device): Check that the unit
1750 address was successfully parsed.
1752 * device_table.c (generic_device_unit_decode): Rewrite to better
1753 handle multi-cell addresses.
1754 (generic_device_unit_encode): Ditto.
1756 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1757 longer need the explicit array type - the parser takes care of it.
1759 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1762 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1764 * hw_ide.c: New file. Model of a basic IDE interface attached to
1767 * configure.in (hardware): Add the ide device to the default
1769 * configure: Regenerate.
1771 * debug.h, debug.c: Add tracing option for the IDE device.
1773 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1775 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1777 * configure.in (hardware): Add the phb to the list of devices to
1780 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1782 * hw_com.c: Review description.
1785 * hw_eeprom.c: Ditto.
1789 * hw_com.c: Update event handling.
1791 * hw_disk.c: Implement tracing.
1793 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1795 * device_table.c (generic_device_init_address): Use
1796 assigned-addresses property in preference to any other reg
1799 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1801 * device.h, device.c (device_find_ranges_property): New function.
1802 Simplify the manipulation of "ranges" properties.
1804 * device.c (device_add_parsed): Extend to include support for the
1807 * device.c (device_add_parsed): Add assigned-addresses to the list
1808 of reg type properties.
1810 * device.c (device_tree_print_device): Add code to format and
1811 print a ranges property.
1813 * device.h, device.c (device_nr_address_cells,
1814 device_nr_size_cells): New functions. Determine the values of the
1815 standard properties #address-cells and #size-cells. Both of which
1816 are optional and have default values of two and one respectfuly.
1817 Previously, code that determined #address-cells was incorrectly
1818 using a value of one.
1820 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1822 * debug.h, debug.c: Sort debug options, Add entries for the
1825 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1827 * ppc-instructions (Floating Select): Add support for fsel unless
1828 model is 601. Allow user to filter out instruction unless -Fs is
1830 (Store Floating-Point as Integer Word Indexed): Raise optional
1831 instruction program abort. Allow user to filter out instruction
1832 unless -Fs is passed to igen.
1833 (Floating Square Root{, Single}): Ditto.
1834 (Floating Reciprocal Estimate Single): Ditto.
1835 (Floating Reciprocal Square Root Estimate): Ditto.
1837 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1839 * configure: Regenerate.
1841 * interrupts.h (program_interrupt_reasons): Add
1842 optional_instruction_program_interrupt.
1844 * interrupts.c (program_interrupt): Call error with more detailed
1845 information on program interrupts, particularly in user mode. Add
1846 support for optional_instruction_program_interrupt.
1848 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1850 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1852 * debug.h, debug.c (trace_glue_device): Add tracing support for
1853 the interrupt glue logic device.
1855 * configure.in (hardware): Add glue device.
1856 * configure: Regenerate.
1858 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1860 * device.c (device_tree_parse_integer_property): New function,
1861 parse a list of integers as an array property.
1862 (device_tree_add_parsed): Call it.
1864 * device.c (device_tree_parse_string_property): New function,
1865 parse a list of strings as a string property (with embeded
1866 null's). For moment, don't try to implement a complext string
1868 (device_tree_add_parsed): Call it.
1870 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1872 * hw_opic.c: New file. OpenPIC interrupt controller.
1874 * configure.in (hardware): Add opic device.
1875 * configure: re-generate.
1877 * hw_pic.c: Delete, replaced with hw_opic.c.
1879 * debug.h, debug.c: Add debug option for OpenPIC device. -
1882 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1884 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1885 now the file that does all the inlining.
1887 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1888 library source code that could be involved in an inlining. Make
1889 idecode.o only dependant on the inlined library source code.
1891 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1894 * std-config.h (DEVICE_INLINE): Only inline locals when the
1895 default is to inline.
1897 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1899 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1902 * hw_htab.c (htab_map_binary): Depending on the value of the
1903 load-base, either map the program in as a contiguous section or as
1904 separate sections controled by th binaries lma values.
1905 (htab_init_data_callback): Ditto.
1907 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1909 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1911 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1912 struct. Don't require the load_base field to be present - just
1913 issue warning - it is a recent addition.
1914 (emul_chirp_create): Support both virtual and physical modes.
1916 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1917 property so that any arguments specified on the command line can
1918 be passed on to user programs.
1920 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1921 argument passing to the pseudo device stack.
1923 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1925 * device.c (device_error): Make it more tolerant to incomplete
1928 * hw_init.c (hw_data_init_data_callback): Extend the data device
1929 so that it can perform initialization operations either dma or a
1930 more complex instance open, seek, write operation.
1931 * hw_init.c: Update the description of the data device to reflect
1934 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1936 * device.c (device_event_queue_schedule,
1937 device_event_queue_deschedule, device_event_queue_time): Have the
1938 device object export the event operations. Making these available
1939 from the device object should hopefully simplify writing device
1942 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1944 * configure.in (sim-hardware): Add eeprom device to default build.
1946 * hw_eeprom.c: Rewrite so it works.
1948 * debug.h, debug.c: Add tracing support for the eeprom and com
1951 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1953 * debug.h: Add disklabel-package and disk-device trace options.
1954 debug.h (PTRACE): Add macro to simplify tracing in packages.
1956 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1958 * device.c (device_create_instance_from): Tighten up loop
1959 searching for device instances.
1960 (device_instance_delete): Ditto.
1961 (device_instance_delete): Only leaf instances need to be removed
1962 from a devices list of active instances.
1964 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1966 * hw_disk.c: Add the cdrom as an alias.
1968 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1969 delete the raw disk instance while we're at it.
1971 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1972 little bit more - still a long way to go.
1974 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1975 new head position after a read or write.
1977 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1979 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1980 the internal buffer.
1982 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1984 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1985 in the correct order.
1987 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1988 the address of the first stack argument passed in from the client
1991 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1993 * words.h: Add new types signed_cell and unsigned_cell which
1994 correspond to the signed and unsigned IEEE 1275 memory locations.
1995 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1996 memory cell, replace uses of unsigned32 with unsigned_cell.
1997 * device_table.h: Ditto.
1999 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2000 convert cell sized values to from big endian.
2001 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2002 use these new macros.
2004 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2006 * device.c (device_tree_add_parsed): Detect and report an
2007 interrupt being attached to an invalid device. Was dumping core.
2009 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2011 * device.h, device.c (device_address_to_attach_address,
2012 device_size_to_attach_size): New functions. Convert a devices
2013 unit address or unit size structure into a form suitable for
2014 passing on to the attach and detach functions.
2015 * device_table.h: Add extra methods to device table.
2017 * device.h, device.c (device_find_reg_property): New function.
2018 For a reg type property, return the selected address + size
2019 tupple, along with a positive success status. Add a reg_property
2020 to the list of property types.
2021 * (device_tree_add_parsed): Make array properties with the name
2022 reg or alternate-reg of type reg_property.
2024 * hw_memory.c (hw_memory_init_address): Rewrite to use new
2025 find_reg_property method.
2026 * hw_nvram.c (hw_nvram_init_address): Ditto.
2028 * device.c (device_tree_print_device): Add code to print out a reg
2031 * device_table.c (generic_device_address_to_attach_address,
2032 generic_device_size_to_attach_size ): New functions. Generic
2033 functions for converting between unit and attach address or size.
2035 * device_table.c (generic_device_init_address): Rewrite to use the
2036 new find_reg and address convert functions. Look for both reg and
2037 alternate-reg properties.
2039 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2041 * hw_com.c: New file. A '550 serial device that can quickly be
2042 attached to any bus.
2043 * configure.in (enable-sim-hardware): Add the com device.
2044 * configure: re-generate.
2046 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2048 * device.c (device_tree_verify_reg_unit_address): New
2049 function. Check that the unit address as specified by the reg
2050 property correctly corresponds to any unit address previously
2051 specified by the devices name.
2052 (device_tree_add_parsed): When adding a reg property, verify
2053 that the unit-address - first value of property - correctly
2054 matches any previous value specified when creating the device
2057 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2059 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2061 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2063 * device.c (device_full_name): Cast strdup to char *, since AIX
2064 3.2.5 mistakenly declares the function to be const char *.
2065 (device_create_from): Ditto.
2066 (device_create_instance_from): Ditto.
2067 (device_add_property): Ditto.
2069 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2071 * debug.c (trace_option): For -t all, do not set the
2072 trace_dump_device_tree flag, so that the simulator is run.
2074 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2076 * Makefile.in (options.o): Depend on defines.h.
2077 (defines.h): New rule, go through config.h and make strings of all
2078 of the #define HAVE_xxx macros.
2079 (distclean): Remove defines.h.
2081 * options.c (print_options): Print whether many of the
2082 configuration macros are defined.
2084 * main.c (main): If -t options and no filename, just print the
2085 options, and don't print the usage message.
2087 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2089 * configure.in: Test whether /dev/zero works on the system, and if
2090 it does, define HAVE_DEVZERO.
2091 * configure: Regenerate.
2093 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2094 if we don't have a working /dev/zero on the system.
2096 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2097 defined, don't add disk support.
2098 (emul_bugapi_do_diskio): Ditto.
2099 (emul_bugapi_instruction_call): Ditto.
2101 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2103 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2104 defined, make sure HAVE_TCGETATTR is #undef'ed
2106 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2108 * std-config.h (REGPARM): Only define REGPARM attributes if using
2109 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2110 a x86 platform, define REGPARM as nothing.
2112 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2115 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2117 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2119 * gen-idecode.c: Ditto.
2121 * gen-idecode.c (print_idecode_table): Comment out check for
2122 switch/table combination until a bug with it is fixed.
2124 * ppc-opcode-goto: New file. Like complex and flat but uses
2125 goto-switch instead of padded-switch for the tables.
2127 * gen-idecode.c (print_goto_switch_name): New function.
2128 (print_goto_switch_table_leaf): New function.
2129 (print_goto_switch_break): New function.
2130 (print_goto_switch_table): New function. Prints a jump table
2131 that can be jumped into instead of a switch statement.
2133 * gen-idecode.c (*switch_*): As an option output a switch that is
2134 implemented using a jump table but only if the switch is not
2137 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2139 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2140 * configure: Regenerate.
2142 * device.c (device_instance_call_method): Fixup format message in
2143 error case. Return 0 in case of error to shut up compiler
2146 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2148 * device_table.c (generic_device_unit_decode): Require a comma
2149 between elements of a unit address.
2151 * device.c (device_tree_print_device): For reg, alternate-reg and
2152 ranges properties use special print functions.
2153 (device_print_ranges_property): Print formatted ranges property.
2154 (device_print_reg_property): Print formatted reg property.
2156 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2158 * device.c (device_tree_add_parsed): For reg, ranges and
2159 alternate-reg properties use a special parser.
2160 (device_tree_parse_reg_property): New function to parse a reg
2162 (device_tree_parse_ranges_property): New function to parse a
2164 (device_encode_unit): Wrapper for encode_unit callback.
2165 (device_decoce_unit): Wrapper for decode_unit callback.
2167 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2169 * device_table.h (device_instance_callbacks): Relace the claim and
2170 release methods with a more general table mapping from method-name
2173 * device.c (device_instance_call_method): New function. Implement
2174 the OpenBoot call-method client interface. Attempts to locate the
2175 instances method in the callback table.
2176 (device_instance_claim, device_instance_release): Delete.
2177 Replaced with call-method and a lookup table.
2179 * emul_chirp.c (chirp_emul_call_method): Use the new device
2180 instance call method and let that handle a client claim call.
2182 * hw_htab.c (claim_memory): Wrapper function to call the memory
2183 devices "claim" method using the new device-instance call-method
2184 interface. Replaces the previous direct calls to claim.
2185 (htab_map_region): Use claim_memory.
2186 (htab_init_data_callback): Ditto.
2188 * hw_memory.c (hw_memory_instance_claim): Update function
2189 interface so that it is compatible with call-method.
2190 (hw_memory_instance_release): Ditto.
2191 (hw_memory_instance_methods): New table of memory specific
2192 methods claim and release. Add to the hw_memory_callback
2195 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2197 * psim.c (psim_init): Back out of change to initial value of
2200 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2202 * sim_callbacks.h (sim_io_printf_filtered): Replace
2203 printf_filtered with a local simulator specific version. Add
2204 #define printf_filtered to simplify updating of existing code.
2206 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2207 sim_io_write_stderr): New functions. Read / write to the
2208 simulations stdin and stdout and stderr interfaces. Merge in code
2209 from hw_pal that previously handled async I/O.
2210 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
2211 flush_stdoutput to simplify updating of existing code.
2213 * hw_pal.c (scan_hw_pal, write_hw_pal,
2214 hw_pal_instance_write_callback): Use the new sim_io functions.
2216 * main.c: Implement standalone versions of the new sim_io
2217 functions. Include support for async I/O.
2218 * sim_calls.c: Ditto. This time using the gdb callback table.
2220 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2221 stdio configuration so that it works in the same way as the rest
2223 * psim.c (psim_create): Initialize current_stdio from the device
2225 * emul_generic.c (emul_add_tree_options): Enter a default value
2226 for use-stdio in the device tree.
2228 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2230 * gen-idecode.c (print_jump): Was always generating a jump back to
2231 idecode. Only necessary at tail of semantic code.
2232 (print_jump): Was always setting the processor's cia, even during
2233 startup when the processor was still undefined.
2234 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2237 * options.c (print_options): Add printing of WITH_REGPARM and
2240 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2241 (disabled) values if not defined.
2243 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2245 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2246 compute. The block move instructions use them.
2248 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2250 (CR_FIELD): New macro, extract specific CR register.
2251 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2253 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2255 * bits.c (INSERTED): Covert INSERTED macro into a function.
2256 (EXTRACTED): Conditionally compile on correct bit size macro.
2258 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2260 * ppc-instructions: With hints from Paul Martin, type in missing
2261 some instruction semantics. Leave disabled for the moment.
2262 (Load Multiple Word): Ditto.
2263 (Store Multiple Word): Ditto.
2264 (Load String Word Immediate): Ditto.
2265 (Load String Word Indexed): Ditto.
2266 (Store String Word Immedate): Ditto.
2267 (Store String Word Indexed): Ditto.
2268 (Move to Condition Register from XER): Ditto.
2269 (Move From Condition Register): Ditto.
2270 (Move From FPSCR): Ditto.
2271 (Move to Condition Register from FPSCR): Ditto.
2272 (Move To FPSCR Field Immediate): Ditto.
2273 (Move To FPSCR Fields): Ditto.
2274 (Move To FPSCR Bit 0): Ditto.
2275 (Move To FPSCR Bit 1): Ditto.
2277 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2279 * std-config.h (SEMANTICS_INLINE): By default, mask out the
2280 inlining of semantic functions from DEFAULT_INLINE. Almost all
2281 configurations call the semantic code via a pointer so there is
2284 * std-config.h (ICACHE_INLINE): Ditto.
2286 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2288 * configure.in (sim_regparm): Add configuration option for
2289 enabling GCC's regparm attribute.
2290 * (sim_stdcall): Add configuration option for enabling GCC's
2293 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2295 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2297 * std-config.h (REGPARM): Extend construction of REGPARM macro so
2298 that it can include __stdcall__ function attribute.
2300 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
2302 * options.c (print_options): Include SUPPORT_INLINE in information
2305 * gen-idecode.c (print_run_until_stop_body): Only generate loop
2306 termination test if creating idecode_run_until_stop. Push the
2307 loop termination test back into each alternative branch.
2309 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2311 * gen-icache.c (print_icache_function): Have the cache function
2312 always update the cache_entries semantic and address fields.
2314 * gen-idecode.c (print_idecode_switch_illegal): Include a break
2315 when generating illegal instructions. This was commented out
2316 which is a hangover from looking a at switch statements generated
2317 using indirect jumps.
2319 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2321 * igen.c (print_my_defines): Replaces print_define_my_index.
2322 Print both a definition for MY_INDEX and MY_PREFIX.
2323 * gen-icache.c (print_icache_function): Adjust.
2324 * gen-idecode.c (print_jump_insn): Adjust.
2325 * gen-semantics.c (print_c_semantic): Adjust.
2327 * gen-support.c (gen_support_h): Add optional include to created
2328 support.h so that, like cpu, it is optionally inlined for all
2329 modules that include it.
2330 * inline.h, inline.c: Adjust so that support.[hc] is handled the
2333 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2334 name for a lable and then branch to it.
2336 * ppc-instructions (convert_to_integer, Floating Round to
2337 Single-Precision, Floating Convert from Integer Doubleword): Use
2338 LABEL and GOTO instead of the recently added switch statements.
2340 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
2342 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2345 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2347 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2348 * (--enable-sim-inline): Reorder patern matching of arguments so
2349 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2351 * configure: rebuild.
2353 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
2355 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2356 configuration options. Let the user specify the packages or
2357 hardware devices that are to be included in the build. Makes it
2358 possible for user packages to be specified.
2360 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2361 hardware instead of checking it using ls. configure.in should
2362 have taken care of any problems.
2363 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2365 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
2367 * psim.c (psim_options): Enter the argument to the memory size
2368 option directly into the device tree. Was using atol() which is
2369 dangerously non portable.
2371 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
2373 * configure.in (icache): Extend icache flag to include an insn
2374 option. If specifyed the insn - aka instruction - is included in
2375 the instruction cache. Make this the default.
2376 * configure: re-generate.
2378 * igen.c (main), igen.h: Add option -S - inSn - for specifying
2379 that the instruction should be included in the icache.
2381 * gen-icache.c (print_icache_body): If enabled, output code to put
2382 the instruction into the icache.
2383 (print_icache_struct): If enabled, add insn to the icache struct.
2385 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
2387 * Makefile.in (BUILD_CFLAGS): Include -g when building the
2390 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
2392 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
2393 the strict-alignment option when hardwired for non-strict
2396 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2398 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
2400 * ppc-instructions: Adjust so that references are to MY_INDEX and
2403 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2405 * gen-idecode.c: Output the complete run_until_stop function
2406 instead of just the code to handle a single instruction issue.
2407 * : Have the generated idecode.c include inline.c (instead of psim.c).
2409 * std-config.h: Change psim.c so that it isn't inlined (as this is
2412 * psim.c (run_until_stop): Delete the old run_until_stop function
2413 instead calling the idecode_run and idecode_run_until_stop
2414 functions that gen-idecode.c is now creating.
2416 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2418 * dgen.c: Maintenance - update to use new features found in lf.c.
2420 * filter_filename.c (filter_filename): Maintenance - make the
2423 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2425 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
2426 eliminate trace statements.
2428 * debug.c: Change trace format so that it is consistent
2429 (file:line-nr) with CC's error output.
2431 * gen-itable.c (itable_c_insn): Add the source file name and
2432 source line number to the instruction's informational entry.
2434 * debug.c (ITRACE): Use the itable (and my_index) to get the
2435 current instructions name and source line number.
2437 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
2438 match new interface.
2440 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2441 corresponding call to ITRACE so that it still matches.
2443 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2444 of ITRACE. The CPP line directives would have previously set the
2445 line-nr and file name so ITRACE isn't needed.
2447 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2449 * gen-idecode.c (print_jump_until_stop_body): New function and
2450 idecode generation option. Instead of generating and calling
2451 separate functions containing the semantic and icache code
2452 generate a single monolythic function and use goto's (and GCC's
2453 indirect jump) to move between code blocks.
2455 * Makefile.in: Add sim_jump flag to those passed to igen.
2457 * configure.in: New option --enable-sim-jump (default disabled)
2459 * ppc-instructions: Eliminate any uses of labels and goto's.
2460 These result in duplicate declarations when a single flat function
2463 * ppc-opcode-jump: New file. Set of opcode rules useful when
2464 testing jumping idecodes.
2466 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2468 * gen-idecode.c: Optionally include the semantic code for an
2469 instruction in the function that is doing the decoding.
2471 * igen.c: Add option (-C) to generate semantics in the instruction
2474 * configure.in (--enable-sim-icache): Accept an option list such
2475 as 1024,define. Add a new choice to the list - semantic - which
2476 will cause igen to generate instruction decode functions that
2477 include the corresponding semantic code.
2479 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2481 * configure.in: New option --enable-sim-line-nr (default enabled).
2482 Enable/disable the inclusion of CPP line directives in the
2483 generated files. Such directives refer back to the source files
2484 used when generating the simulator code.
2486 * Makefile.in (sim_line_nr): Pass to igen.
2488 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2490 * igen.c (main): Revamp the options so that more letters are
2493 * configure.in: Adjust to match igen's revamped options
2495 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2497 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2498 that they use the same technique as igen (ie a dummy targets
2499 tmp-pk and tmp-hw are created).
2501 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2503 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2505 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2507 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2508 out the loading of each of the tables from the rest of igen.
2509 * Makefile.in: Adjust.
2512 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2513 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2514 code creating each separate set of generated files.
2515 * Makefile.in: Adjust.
2518 * gen-support.[ch]: New files. Output the support functions (found
2519 in the ppc-instructions file) into a separate file.
2521 * inline.h, inline.c: Add.
2522 * std-config.h: Add.
2524 * ld-cache.c: Re-design the cache table format.
2525 * ppc-cache-rules: Update to new format.
2527 * ld-decode.c: Re-design the decode table format.
2528 * ppc-opcode-simple: Update to new format
2529 * ppc-opcode-complex: Ditto
2530 * ppc-opcode-flat: Ditto
2532 * filter.h, filter.c: New files. Separate the opcode filter table
2533 reading code from the rest of igen.c. Re-design the filter so that
2534 it works inclusivly not exclusivly.
2535 * igen.c: Remove the opcode filter table loading code.
2536 * Makefile.in (filter.o): Adjust
2537 * configure.in: Adjust filter flag so that default includes 32bit
2539 * ppc-instructions: Clean up filter fields so that only in use
2540 entries are specifed (ie delete `be').
2542 * misc.c (name2i, i2name): New function. Map between a string and
2545 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2547 * sim_calls.c (sim_close): If simulator not created, skip printing
2550 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2552 * registers.c (register_description): Typo, insns not insn.
2554 * ppc-instructions (model_get_number_of_stalls): New model function,
2555 returns number of stalls for the specified processor.
2556 * psim.c (psim_read_register): Add call to new function
2557 model_get_number_of_stalls().
2559 * ppc-instructions (model_get_number_of_cycles): New model function,
2560 returns number of stalls for the specified processor.
2561 * psim.c (psim_read_register): Add call to new function
2562 model_get_number_of_cycles().
2564 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2566 * device_table.h: Don't pass the parent device into a devices
2567 create function. This makes the create function consistent with
2569 * device.c (device_template_create_device): Ditto
2570 * hw_pal.c (hw_pal_create): Ditto
2571 * hw_core.c (hw_core_create): Ditto
2572 * hw_vm.c (hw_vm_create): Ditto
2573 * hw_disk.c (hw_disk_create): Ditto
2574 * hw_nvram.c (hw_nvram_create): Ditto
2575 * hw_memory.c (hw_memory_create): Ditto
2576 * hw_cpu.c (hw_cpu_create): Ditto.
2578 * device.c (split_find_device): Allow a null initial parent device.
2579 (device_template_create_device): Ditto.
2581 * device.c (device_create_from): Make local (static) only used
2583 * device_table.h: typedef device_callbacks moved here (from
2584 device.h) where it belongs.
2586 * hw_core.c: New file. Implements just the core device using the
2589 * corefile.c: Moved all core device functions into the new
2590 hw_core.c file. core_device_create() disapears.
2592 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2595 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2597 * hw_init.c: Correct typo in comment.
2599 * corefile.c (core_init): Remove any remaining references to a
2601 (core_map_find_mapping): Ditto.
2603 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2605 * corefile.c (core_init): Make function global so that other
2606 devices are able to use the full core object.
2608 * corefile.c (core_create, core_from_device): Break core_create
2609 into two functions. The first creates a core object, the second
2610 returns the core object associated with a core device.
2612 * corefile.c (core_device_create): Use core_create to make the
2615 * psim.c (psim_create): Use core_from_device() instead of
2618 * device.c (device_template_create_device): Make static as only
2619 needed by functions internal to device.c.
2621 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2623 * ppc-opcode-test-2: Remove description of fields.
2624 * ppc-opcode-complex: Ditto
2625 * ppc-opcode-flat: Ditto
2626 * ppc-opcode-simple: Ditto
2627 * ppc-opcode-stupid: Ditto
2628 * ppc-opcode-test-1: Ditto
2629 * ppc-cache-rules: Ditto
2631 * igen.c: Add description of files as a comment at the front.
2633 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2635 * configure.in: Check for whether the termios and termio
2636 structures are really defined, and whether or not, they define the
2638 * configure: Regenerate.
2640 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2643 * emul_unix.c: Various changes to allow for building on systems
2644 with different termio and termios structures. If host has both
2645 termio and termios, just use termios. No longer include
2648 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2650 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2651 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2653 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2654 (AC_PROG_INSTALL): Added.
2655 * configure: Rebuilt.
2657 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2659 * corefile.h: Rewrite documentation so that it can be extracted and
2660 converted into texinfo (and hence ready for translation into html,
2664 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2666 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2668 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2670 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2671 is the source of SEEK_SET.
2673 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2675 * psim.c (psim_options): Correct type of dummy arguments being
2676 passed to a device_ioctl call.
2678 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2679 (write_stack_arguments): Ditto.
2680 * hw_trace.c: Instance callback entry no longer a table.
2682 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2684 * emul_unix.c (do_unix_umask): Cast printf argument.
2685 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2687 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2689 * hw_init.c (update_for_binary_section): Abort if we find an
2690 .interp section, which indicates the need for shared libraries to
2693 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2695 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2696 for time, gettimeofday, and getrusage system calls.
2697 ({solaris,linux}_descriptors): Add new system calls.
2698 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2699 (do_get{,p}pid): Use pic_t types.
2701 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2702 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2703 * config{.in,ure}: Regenerate.
2705 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2707 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2708 `ppc-elf' and `ppc-xcoff' for the stack-type.
2709 * emul_unix.c (emul_unix_create): Ditto.
2710 * emul_bugapi.c (emul_bugapi_create): Ditto.
2711 * hw_init.c: Reconize the new names.
2713 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2714 call is used (no system parameter).
2716 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2718 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2721 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2722 (os_emul.o): Depend on emul_unix.h.
2723 (emul_unix.o): New dependency.
2725 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2726 alignment to 0, which means use appropriate alignment for mode.
2727 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2728 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2729 * config.in: Regenerate.
2730 * configure: Regenerate.
2732 * emul_generic.c (emul_write2_status): New function to return
2733 results in r3 and r4 for Solaris system calls.
2734 (emul_do_system_call): If the system call is not support, but
2735 there is a string for the system call name, print out the string
2736 instead of the system call number.
2738 * emul_generic.h (emul_write2_status): Declare it.
2740 * emul_netbsd.c: Use /* */ around comment on #endif.
2742 * os_emul.c: Include emul_unix.h.
2743 (os_emulations): Add emulations for Solaris, and Linux.
2745 * psim.c (psim_usage): Add message about solaris, linux
2748 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2750 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2752 * README: Correct PSIM's title
2754 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2756 * basics.h: New global type object_disposition, used to indicate
2757 the status of objects when things are restarted.
2759 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2761 * device_table.h: Change the interrupt descriptor structure so
2762 that it includes an additional member - an upper bound on the
2763 interrupts by that name.
2765 * device.c (device_interrupt_decode): Allow a range of interrupt
2766 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2768 * device.c (device_tree_print_device): Include a list of valid
2769 interrupt ports when listing supported devices.
2771 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2773 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2774 the interrupt net so that it uses int0 .. intN.
2776 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2778 * device.h, device.c (device_ioctl): Drop the system argument.
2779 Devices can not obtain this using the device_system() call.
2780 * device_table.h: Adjust accordingly.
2781 * hw_*.c: Adjust accordingly.
2782 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2783 * psim.c (psim_options): Use a device_ioctl call to force the
2784 hw_trace device to update the trace options.
2785 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2788 * psim.c (psim_init): Re-order initialization so that the
2789 os-emulation is initialized after the device tree. Without this,
2790 os-emul's are not able to create instances or access properties
2791 that contain an instance handle.
2793 * device.h, device.c (device_add_*_property): Make these functions
2794 internal to device.c. The user has access to the more generic
2795 device_tree_add_parsed function. Differentiate between the initial
2796 and current value for each property.
2797 * (clean_device_properties): New function that deletes any
2798 properties created after the start of a simulation and restores
2799 the initial value of any others (ignoring ihandles).
2800 * (init_device_properties): (Re)Initialize any properties that
2801 contain ihandles. create
2803 * (device_tree_init): Include calls to clean the device tree's
2804 properties and then initialize them. Document this in the device.h
2807 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2809 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2810 interrupt even if it is not yet possible to deliver it.
2812 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2814 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2815 visable adjusting the arguments so that the interface is correct.
2816 (mon_print_info): Adjust calls.
2818 * registers.h, registers.c (register_description): Add phony
2819 cycle, insn and stall registers.
2821 * psim.c (psim_read_register): Return nr of instructions for given
2824 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2826 * hw_htab.c: New file. Extract contents from disk_table.c.
2827 Contains a device that, during initialization will create a
2828 PowerPC htab in memory.
2829 * hw_register.c: New file. Extract contents from disk_table.c.
2830 Contains a device that, during initialization, will parse its
2831 property list and use that to initialize various processor
2832 registers (not target specific).
2833 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2834 a device that handles accesses to invalid virtual memory addresses
2836 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2837 devices that can initialize memory from a file.
2838 * hw_trace.c: New file. Extract contents from disk_table.c.
2839 Configure trace options from property values.
2841 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2842 hw_trace.c): Add new device files.
2844 * device_table.c: Remove above code, now in separate independant
2847 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2849 * hw_disk.c: New file. Disk and CDROM device.
2851 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2853 * pk_disklabel.c: New file. Implement the miss-named disk-label
2856 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2859 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2860 they are re-created when the makefile is updated.
2862 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2863 (below the iobus) to the device tree. Include an ihandle of
2864 the disk as /chosen/disk.
2866 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2867 output and (new) disk handles yet.
2868 * (emul_bugapi_init): Initialize the input, output (and just added)
2870 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2871 what I think the behavour is).
2872 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2873 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2874 though this isn't part of the spec - makes it possible for machine
2875 code to signal the aporting of a simulation run.
2877 * emul_chirp.c (chirp_emul_call_method): Add support for the
2878 claim/release methods.
2879 * (chirp_emul_exit): Add an optional exit status argument to
2880 the exit method. Makes it possible for chirp emul simulations
2881 to abort upon an error.
2882 * device.h, device.c (device_instance_claim,
2883 device_instance_release): New methods for claiming and releasing
2885 * hw_memory.c: add claim and release memory methods.
2886 * hw_*: Use the claim memory method when allocating physical
2889 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2891 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2892 time when updating the clock.
2894 * hw_nvram.c: Tidy up documentation
2896 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2898 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2899 macros to determine whether or not the appropriate st_<xxx> fields
2900 exist in the stat structure.
2901 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2902 the real basic ones like open, read, write, etc.
2903 * config{.in,ure}: Regenerate.
2905 * emul_netbsd.c: Add support for missing system calls, and/or
2906 missing stat fields.
2907 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2910 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2912 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2913 F_SETFL not defined.
2915 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2917 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2920 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2922 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2923 * config{.in,ure}: Regenerate.
2924 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2927 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2929 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2932 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2934 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2935 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2938 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2940 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2941 fgets to read line. If not using stdio, do a simple blocking read
2944 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2946 * Makefile.in: Correctly build simulator for build machine != host
2949 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2951 * configure.in (--enable-hostendian): Rework so the default uses
2952 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2954 * configure: Regenerate.
2956 * sim-endian.h: Add more tests for host endian to support more
2957 platforms in a cross compilation environment.
2959 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2961 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2962 use stdio, instead of unpended read/printf_filtered.
2963 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2964 flush stdout after writing the characters.
2966 * options.c (print_options): Print out WITH_STDIO.
2968 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2969 configuration variable.
2970 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2971 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2972 files to contain directory pieces.
2974 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2975 should use stdio for console input.
2976 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2978 * configure.in (--enable-sim-stdio): Add new switch to control
2979 whether stdio is used for console I/O.
2980 * configure: Regenerate.
2982 * interrupts.c (external_interrupt): Declare it to be
2983 INLINE_INTERRUPTS, not INLINE_CPU.
2985 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2987 * events.c (insert_event_entry): Allow events to be scheduled
2988 *NOW* (at delta time 0). Add assertions to clarify behavour of
2991 * events.c (update_time_from_event): New function. Calculates the
2992 number of ticks from the next event. Use this.
2994 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2996 * emul_netbsd.c (do_break): Return 0 if success (instead of
2999 * device_table.c (vm_ioctl_callback): Don't return adjusted break
3002 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
3004 * device_table.h: Change type of the device ioctl so that it
3005 returns an int (status).
3006 * device.h (device_ioctl): Ditto.
3007 * device.c (device_ioctl): Ditto.
3009 * device_table.c (stack_ioctl_callback): Return 0 status.
3010 (vm_ioctl_callback): Ditto
3012 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3014 * emul_netbsd.c (do_read): Correctly set the return value.
3017 (do_geteuid): Ditto.
3019 (do_getegid): Ditto.
3021 (do_sigprocmask): Ditto.
3024 (do_gettimeofday): Ditto.
3025 (do_getrusage): Ditto.
3029 (do___sysctl): Ditto.
3031 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3033 * device_table.c (vm_ioctl_callback): Don't access the processor
3034 registers directly, instead leave it to the caller to handle this.
3036 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3037 perform a break. Pass in the new break value and set the
3038 registers according to the result.
3040 * emul_generic.c (emul_write_status): Change so that r3 contains
3041 either status or errno and failure is indicated by SO.
3043 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3045 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3048 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
3050 * interrupts.h (interrupts): New structure contains state of
3053 * cpu.c (cpu_interrupts): New function. Pending interrupt status
3054 in the cpu and grant access to it. Add interrupts to cpu
3057 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
3059 * device.c (device_tree_add_parsed): Check that the creation of a
3060 device instance worked before using it.
3062 * psim.c (psim_halt): Remove cia argument from psim_halt. This
3063 function does not save the CIA so do not pass it in.
3065 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
3067 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3068 found in device_table.c into a single hack pal.
3070 * device_table.c (halt, icu, console): Delete.
3072 * Makefile.in (hw_pal.o): New dependency.
3074 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3075 so that it uses the pal instead of the icu/halt/console devices.
3076 Wire the pal's interrupt ports up to the cpu nodes.
3078 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
3080 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3081 device_table.c to here.
3083 * Makefile.in (hw_iobus.o): New dependency.
3085 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3087 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3088 (emul_bugapi_create): Create input, output from /chosen/stdin and
3090 (emul_bugapi_do_{read,write}): Switch to use device_instance
3092 (emul_bugapi_instruction_call): Change calls to
3093 emul_bugapi_do_{read,write} to pass device instance argument.
3095 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3097 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3098 default is not written out if a default was already written.
3100 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3101 size cooked_buf, not sizeof natural_word, since floating point
3102 registers are 8 bytes.
3104 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3106 * configure: Regenerate with autoconf 2.9.
3108 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3110 * device_table.h: Always include string headers.
3112 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3114 * main.c (error): Be careful to not try to print out statistics
3115 when the simulation was never created.
3117 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3119 * basics.h: Move the event queue's definition to here so that it
3120 can be refered to globally with out importing all of events.h.
3122 * psim.h, psim.c (psim_event_queue): New function. Grant access
3123 to the simulation event queue. Will make this the single point of
3124 access (there is after all only one event queue in the
3127 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3128 queue instead of it being passed in. No longer allow access to
3129 the cpu's copy of the event queue.
3131 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3133 * events.h, events.c (event_handler): Remove event_queue from
3134 arguments passed to an event handler. That argument is redundant
3135 - the `data' should refer to a data structure that contains the
3136 event queue if queing is needed.
3138 * cpu.c (cpu_decrement_event): adjust
3140 * events.c (event_queue_process): adjust
3142 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3144 * device.h, device.c (device_system): New, returns a handle for
3145 the system given the device.
3147 * device.c (device_address_init): Store a pointer back to the
3148 system in each devices node.
3150 * device_table.h: Don't pass `system' into each device when it is
3151 being initialized, this is now available using device_system(me).
3153 * device.c (device_address_init, device_data_init): Adjust.
3155 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3158 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3160 * interrupts.c (decrementer_interrupt, external_interrupt):
3161 Remember that an interrupt wasn't delivered so that it can be
3164 * interrupts.c (check_masked_interrupt): New function. (re)
3165 checks for the posibility that a recent change to the MSR may have
3166 made it possible to deliver an interrupt that was previously
3167 masked be the EE bit.
3169 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3170 a pending interrupt being delivered using check_masked_interrupt().
3172 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3173 leaving it to that module to handle both interrupt synchronization
3176 * cpu.c (struct _cpu): remove variables that were going to record
3177 pending decrementer and external interrupts.
3179 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3181 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
3182 between the interrupt controller and the simulators internal
3183 processor model. Maps device interrupts onto the processor
3184 interrupt function calls.
3186 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3188 * hw_nvram.c: NVRAM device that includes a real-time clock that is
3189 updated each second.
3191 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3193 * device.h (attach_type): Remove attach_default type address
3194 spaces. Will replace with levels of callback memory.
3196 * corefile.h, corefile.c (new_core_mapping), corefile.c
3197 (core_map_attach): Replace default attach with a layerd callback
3200 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3202 * device.c (split_property_specifier): ensure that only a single
3204 (split_value): New function, parses the value part of a device
3207 * device.c (device_tree_add_parsed): Use the interrupt conversion
3208 functions to determine the interrupt port numbers.
3210 * device_table.h: Add table that maps between an interrupts
3211 symbolic name and its port number.
3213 * device.h, device.c (device_interrupt_decode,
3214 device_interrupt_encode): new functions use the recently added
3215 interrupt port name/number tables to perform conversion.
3217 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3219 * device.h, device.c (device_set_array_property,
3220 device_set_boolean_property, device_set_ihandle_property,
3221 device_set_integer_property, device_set_string_property): New
3222 functions - allow the value of a given property to be changed.
3224 * device.h, device.c: Re-order declaration and definition of
3227 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3229 * device.c (device_tree_print_device, device_tree_add_parsed):
3230 Remove references to phandle properties.
3232 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3234 * Makefile.in (corefile.o): missing dependency on device_table.h
3237 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3239 * device_table.h: Revamp device init callbacks so that they are a
3241 * device.c (device_init_data, device_init_address): If an init
3242 callback is NULL assume it should do nothing.
3243 * device_table.c (ignore_device_init, unimp_device_init): delete
3245 * device_table.c, hw_memory.c: adjust.
3249 * (device_instance): ditto.
3251 * (address nee config_address): ditto.
3252 * (interrupt): ditto.
3254 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3256 * igen.c (idecode_switch_end): Output a default entry when the
3257 switch statement is perfect. Firstly stops GCC complaining about
3258 an incomplete switch and secondly it will be eliminated by a good
3261 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3263 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3264 hw_*.c files. hw.h declares a device descriptor table for each hw
3265 device while hw.c lists those tables in a form suitable for the
3266 construction of a top leveltable in device_table.c.
3268 * Makefile.in (device_table.o): now depends on hw.c a generated
3271 * device_table.c (device_table): Re-arange the table of devices so
3272 that two levels are possible. Make use of hw.c.
3273 * device_table.h: ditto.
3275 * device.c (device_template_create_device): Handle new two level
3276 device lookup table.
3277 * device.c (device_usage): ditto.
3279 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3281 * device_table.c: Delete the memory device (moved to hw_memory.c).
3283 * hw_memory.c: New file. Just an OpenBoot memory device.
3285 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
3287 * device.c (device_init_address): New. Split initialization into
3288 two stages, address and address spaces
3289 * device.c (device_init_data): New. ... and data or other work.
3290 With out this, devices try to modify memory before it as been
3293 * device.c (device_tree_init): Update to perform staged
3296 * device.c (device_init): Delete.
3298 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
3300 * device_table.c (data_*): Rewrite to make heaver use of property
3301 nodes. Allow initialization by different data types.
3302 * device_table.c (htab_* pte_*): Rewrite to use properties.
3304 * emul_chirp.c (emul_chirp_create): Use
3305 * emul_bugapi.c (emul_bugapi_create): Ditto
3306 * emul_netbsd.c (emul_netbsd_create): Ditto
3308 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
3310 * emul_generic.c (emul_add_tree_options): Annotate existing tree
3311 with options that haven't yet been specified.
3312 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3313 with demo devices and properties.
3315 * emul_chirp.c (emul_chirp_create): Update to use new
3316 device_tree_add_parsed call and additional information now
3317 included in the device tree. Use emul_add_tree* functions to add
3318 any missing details.
3319 * emul_bugapi.c (emul_bugapi_create): Ditto
3320 * emul_netbsd.c (emul_netbsd_create): Ditto
3322 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
3324 * device.c (device_instance_create): New. Create/delete and
3325 operate on instances of a device.
3326 * device.c (device_instance_delete): Ditto
3327 * device.c (device_instance_read): Ditto
3328 * device.c (device_instance_write): Ditto
3329 * device.c (device_instance_seek): Ditto
3330 * device.c (device_instance_data): Ditto
3331 * device.c (device_instance_name): Ditto
3332 * device.c (device_instance_path): Ditto
3334 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3335 * emul_chirp.c (chirp_emul_close): Ditto
3336 * emul_chirp.c (chirp_emul_read): Ditto
3337 * emul_chirp.c (chirp_emul_write): Ditto
3338 * emul_chirp.c (chirp_emul_seek): Ditto
3340 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3341 Being careful to convert all from target to host byte order.
3342 * emul_chirp.c (chirp_write_h2t_args): Converse.
3344 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
3346 * device.c (device_tree_add_parsed): New. Rewrite code to add
3347 devices to the device tree so that a single printf style function
3350 * device.c (device_tree_add_*): Delete. Replaced by above.
3352 * device.c (split_device_specifier): Functions to manipulate a
3353 device specifier (path) breaking it into its components
3354 * device.c (split_property_specifier): Ditto
3355 * device.c (split_device_name): Ditto
3356 * device.c (split_find_device): Ditto
3358 * device.c (scan_*): Delete
3360 * device.c (device_tree_find_device): Rewrite to use above.
3361 * device.c (device_add_property): Ditto
3363 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
3365 * psim.c(psim_options): Parse the psim options, installing their
3366 value in the device tree. Options are now first entered into a
3367 device tree and then extracted out again when needed. This allows
3368 greater flexability in configuration.
3370 * psim.c (psim_tree): Returns a basic device tree ready for
3371 parsing by psim_options.
3372 * psim.c (psim_usage): New. Give usage to varing levels of detail
3373 according to the verbosity. In turn output device and trace
3376 * main.c (main): Update to use new system
3377 * sim_calls.c (sim_open, sim_do_command): Ditto
3379 * psim.c (psim_options): Add `r' option - ram size.
3380 * psim.c (psim_options): Add `o' option - openboot tree entry.
3381 * psim.c (psim_options): Add `h'/`H' options - more help.
3383 * debug.c (trace_usage): Add more detailed help.
3384 * device.c (device_usage): New. Output help including a list of
3385 the devices currently available in the device table.
3386 * device_table.c: Add usage operator to each device.
3388 * corefile.c (core_create, core_device_create): Adjust so that the
3389 core device is created earlier for psim_tree(). Core can later be
3392 * psim.c (psim_create): Update to handle above way of creating
3393 things. Extract all information from the device tree.
3395 * device_tree.c (trace_*): New device node, its properties are
3396 used to set the value of the trace options. Init this device (in
3397 psim_options) when ever the options are updated.
3399 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
3401 * debug.h: Add trace_print_info, trace_print_device_tree and
3402 trace_dump_device_tree. The first is a replacement for the
3403 variable `print_info' found in main.c and sim_calls.c. The latter
3404 two enable the dumping of the entire device tree.
3406 * debug.c: Add to trace_description table.
3408 * main.c (main): Use above trace instead of local variable
3409 * sim_calls.c (sim_close): Ditto
3411 * device.c (device_tree_print_device): New. Prints the device
3412 tree in a format that is consistent with what can be parsed by the
3413 device tree load from file code.
3415 * psim.c (psim_create): Dump device tree if enabled. If nump
3416 selected, exit psim immediatly.
3418 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
3420 * corefile-n.h (core_map_read_N): When mapping from an address to
3421 a device, do not subtract the devices base. The device its self
3422 can do this. Brings the behavour into line with OpenBoot.
3423 * corefile-n.h (core_map_write_N): Ditto
3424 * corefile.c (core_map_read_buffer): Ditto
3425 * corefile.c (core_map_write_buffer): Ditto
3427 * device_table.c (console_io_read_buffer_callback): Adjust to
3428 handle biased address.
3429 * device_table.c (console_io_write_buffer_callback): Ditto
3431 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
3433 * device.c (attach_device_interrupt_edge): New. Interrupt model
3434 did not allow interrupts to be wired up as a general net (edges).
3435 Re-implement so that interrupt events can be passed to multiple
3436 controllers and interrupt controllers can further propogate
3439 * device.c (attach_device_interrupt_edge) : New, Ditto
3440 * device.c (detach_device_interrupt_edge) : New, Ditto
3441 * device.c (clean_device_interrupt_edges) : New, Ditto
3442 * device.c (device_interrupt_event) : New, Ditto
3443 * device.c (device_interrupt_attach) : New, Ditto
3444 * device.c (device_interrupt_detach) : New, Ditto
3445 * device.c (device_child_interrupt_attach) : New, Ditto
3446 * device.c (device_child_interrupt_detach) : New, Ditto
3448 * device.c (device_attach_interrupt) : Delete old
3449 * device.c (device_detach_interrupt) : Delete old
3450 * device.c (device_interrupt) : Delete old
3451 * device.c (device_interrupt_ack) : Delete old
3453 * device_table.c (unimp_*) : Update to match
3455 * device_table.c (icu_io_write_buffer_callback) : Update to use
3457 * device_table.c (icu_interrupt_event_callback) : Ditto
3459 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3461 * device.c (external_to_device) : New function that provides a
3462 standard mapping between a devices internal representation (a
3463 pointer) and its external (or what is passed to a client)
3464 representation (a phandle). Implement using the cap object
3465 attached to the root node.
3467 * device.c (device_to_external) : Ditto
3468 * device.c (external_to_device_instance) : Ditto but for ihandle
3469 and device instance.
3470 * device.c (device_instance_to_external) : Ditto
3472 * Makefile (device.o): Add dependency on cap.
3474 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3475 needing to translate between internal and external representations
3476 changed to use the external_to_device et.al. device operations.
3477 * emul_chirp.c (chirp_emul_*) : Ditto
3479 * Makefile (emul_chirp.o): Remove dependency on cap
3481 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3483 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3484 on OpenBoot note section.
3486 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3488 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3489 read/write calls for buffer transfers. This will cause a fault to
3490 occure if the transfer fails. CHRP catches the fault while the
3491 others suffer the consequences.
3492 (emul_read_buffer): Ditto.
3493 (emul_write_word): Ditto.
3494 (emul_read_word): Ditto.
3495 (emul_read_string): Ditto.
3497 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3499 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3500 emul_generic (emul_blr_instruction): Use a real blr instruction to
3501 return from a client service call.
3503 * emul_chirp.c (services): Add all OpenBoot services to table.
3505 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3506 (emul_chirp_create) : Use names instead of numbers for
3507 instructions being stored in memory.
3509 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3511 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3512 (From NetBSD) files.
3514 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3516 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes