1 2018-05-09 Sebastian Rasmussen <sebras@gmail.com>
3 * e500_registers.h: Comment typo fix.
4 * ppc-instructions (ppc_insn_mfcr): Likewise.
6 2017-09-05 John Baldwin <jhb@FreeBSD.org>
9 * sim_calls.c (error): New function.
11 2017-02-13 Mike Frysinger <vapier@gentoo.org>
13 * cpu.h: Include libiberty.h.
14 * emul_bugapi.c (emul_bugapi_instruction_name): Use ARRAY_SIZE.
15 * emul_generic.h: Include libiberty.h.
16 * emul_netbsd.c (emul_netbsd_syscalls): Use ARRAY_SIZE.
17 * emul_unix.c (convert_to_solaris_stat): Likewise.
18 (emul_solaris_syscalls): Likewise.
19 (emul_linux_syscalls): Likewise.
20 * options.c (print_options): Likewise.
21 * ppc-instructions: Likewise.
23 2016-01-10 Mike Frysinger <vapier@gentoo.org>
25 * configure.ac (sim-assert): Call AC_MSG_CHECKING,
26 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT
27 (sim-env, sim-stdio, sim-trace): Delete.
28 * config.in, configure: Regenerate.
29 * Make-common.in (ENV_CFLAGS, TRACE_CFLAGS, ASSERT_CFLAGS,
30 STDIO_CFLAGS): Delete.
31 (CONFIG_CFLAGS): Delete $(ENV_CFLAGS), $(TRACE_CFLAGS),
32 $(ASSERT_CFLAGS), and $(STDIO_CFLAGS).
33 * std-config.h (WITH_ENVIRONMENT, WITH_TRACE, WITH_ASSERT,
36 2016-01-10 Mike Frysinger <vapier@gentoo.org>
38 * configure: Regenerate.
40 2016-01-10 Mike Frysinger <vapier@gentoo.org>
42 * configure: Regenerate.
44 2016-01-10 Mike Frysinger <vapier@gentoo.org>
46 * configure.ac: Delete --enable-sim-regparm and sim_regparm,
47 and --enable-sim-stdcall and sim_stdcall.
48 * configure: Regenerate.
49 * Makefile.in (REGPARM_CFLAGS, STDCALL_CFLAGS): Delete.
50 (CONFIG_CFLAGS): Delete $(REGPARM_CFLAGS) and $(STDCALL_CFLAGS).
51 * inline.h: Delete REGPARM everywhere.
52 * options.c (print_options): Delete WITH_REGPARM and
54 * std-config.h (WITH_REGPARM, WITH_STDCALL, REGPARM): Delete.
56 2016-01-10 Mike Frysinger <vapier@gentoo.org>
58 * configure.ac: Delete --enable-sim-cflags and sim_cflags.
59 * configure: Regenerate.
60 * INSTALL: Delete all mention of --enable-sim-cflags.
61 * Makefile.in (SIM_CFLAGS): Delete.
62 (STD_CFLAGS, NOWARN_CFLAGS): Delete $(SIM_CFLAGS).
65 2016-01-06 Mike Frysinger <vapier@gentoo.org>
67 * sim_calls.c (sim_open): Mark argv const.
68 (sim_create_inferior): Mark argv and env const.
70 2016-01-04 Mike Frysinger <vapier@gentoo.org>
72 * configure.ac (sim-bswap): Delete.
73 * configure: Regenerate.
74 * INSTALL: Delete --enable-sim-bswap docs.
75 * Makefile.in (BSWAP_CFLAGS): Delete.
76 (CONFIG_CFLAGS): Delete $(BSWAP_CFLAGS).
77 * options.c (print_options): Delete WITH_BSWAP.
78 * sim-endian.h (htonl, ntohl): Delete.
79 * std-config.h (WITH_BSWAP): Delete.
81 2016-01-02 Mike Frysinger <vapier@gentoo.org>
83 * main.c (main): Pass SIM_OPEN_STANDALONE to psim_options and
85 * psim.c (psim_usage): Add new kind arg. Only show bug URL and
86 exit when kind is SIM_OPEN_STANDALONE.
87 (psim_options): Add new kind arg. Pass kind down to all psim_usage
88 calls. Replace error/break calls after psim_usage with return NULL.
89 Only exit with version case when kind is SIM_OPEN_STANDALONE.
90 * psim.h: Include gdb/remote-sim.h.
91 (psim_options): Add new kind arg.
92 (psim_usage): Likewise.
93 * sim_calls.c (sim_open): Pass kind to psim_options. Return NULL
96 2015-12-29 Kevin Buettner <kevinb@redhat.com>
98 * emul_netbsd.c (fd_closed): New static array.
99 (fdbad): New function.
100 (do_read, do_write, do_close, do_dup, do_ioctl, do_dup2, do_fcntl)
101 (do_fstatfs, do_fstat, do_lseek): Call `fdbad'.
102 (emul_netbsd_init): Initialize `fd_closed'.
103 * emul_unix.c (fd_closed): New static array.
104 (fdbad): New function.
105 (do_unix_read, do_unix_write, do_unix_close, do_unix_dup)
106 (do_unix_dup2, do_unix_lseek, do_solaris_fstat, do_solaris_ioctl)
107 (do_linux_fstat, do_linux_ioctl): Call `fdbad'.
108 (emul_solaris_init, emul_linux_init): Initialize `fd_closed'.
110 2015-12-26 Mike Frysinger <vapier@gentoo.org>
112 * Makefile.in (TCONFIG_H): Delete.
113 (sim-fpu.o): Delete $(TCONFIG_H).
114 (tconfig.h): Delete rule.
116 2015-11-21 Mike Frysinger <vapier@gentoo.org>
119 * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c.
120 (callback.o): Change $< to $(srcdir)/../common/callback.c.
121 (options.o): Change $< to $(srcdir)/options.c.
123 2015-11-17 Pedro Alves <palves@redhat.com>
125 * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call
126 sim_io_printf_filtered instead of printf_filtered.
128 2015-06-12 Mike Frysinger <vapier@gentoo.org>
130 * configure: Regenerate.
132 2015-04-29 Nick Clifton <nickc@redhat.com>
135 * hw_htab.c (htab_map_binary): Fix overlap check.
137 2015-04-13 Mike Frysinger <vapier@gentoo.org>
139 * Makefile.in (version.o): Change to using create-version.sh from gdb.
140 (create-version.sh): Delete.
142 2015-03-31 Mike Frysinger <vapier@gentoo.org>
144 * config.in, configure: Regenerate.
145 * Makefile.in (INCLUDES): Add $(ZLIBINC).
146 (ZLIB, ZLIBINC): Define.
147 (BFD_LIB): Add $(ZLIB).
149 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
151 * ChangeLog, ChangeLog.00, hw_com.c, ld-cache.h, ppc-instructions:
152 Change immediatly to immediately.
154 2014-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>
156 * basics.h, device.c, device.h, hw_htab.c, hw_memory.c:
157 Correct spelling in comments.
159 2014-08-19 Alan Modra <amodra@gmail.com>
161 * configure.ac: Invoke AC_PLUGINS.
162 * configure: Regenerate.
163 * config.in: Regenerate.
165 2014-03-10 Mike Frysinger <vapier@gentoo.org>
167 * sim_calls.c (sim_do_command): Add const to cmd.
169 2014-03-05 Mike Frysinger <vapier@gentoo.org>
171 * sim_calls.c (sim_load): Add const to prog.
173 2014-02-17 Aaro Koskinen <aaro.koskinen@iki.fi>
176 * Makefile.in (psim): Delete $(LIBS) from dependency.
178 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
180 * Makefile.in (srcsim): New variable.
181 (version.c): Adjust call to $(srccom)/create-version.sh as per change.
183 2013-06-28 Tom Tromey <tromey@redhat.com>
185 * Make-common.in (version.c): Use version.in, not
188 2013-06-24 Joel Brobecker <brobecker@adacore.com>
190 * Makefile.in (srccom): New variable.
191 (version.c): Update rule dependencies, and re-implement using
192 sim/common/create-version.sh.
194 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
197 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
198 * ppc-instructions (isel): New instruction.
200 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
202 * ppc-instructions (isel): New instruction.
204 2012-12-19 Joel Brobecker <brobecker@adacore.com>
206 * COPYING: Update to GPL version 3.
208 2012-06-15 Joel Brobecker <brobecker@adacore.com>
210 * configure: Regenerate.
212 2012-05-24 Pedro Alves <palves@redhat.com>
215 * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
217 2012-03-14 Michael Haubenwallner <michael.haubenwallner@salomon.at>
219 * emul_unix.c (st_pad1, st_pad2, st_pad3): Undefine.
221 2012-01-02 Joel Brobecker <brobecker@adacore.com>
223 * dp-bit.c: Reformat copyright header.
225 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
227 * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
229 2011-10-17 Mike Frysinger <vapier@gentoo.org>
231 * configure.ac: Change include to common/acinclude.m4.
233 2011-10-17 Mike Frysinger <vapier@gentoo.org>
235 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
236 call. Replace common.m4 include with SIM_AC_COMMON.
237 * configure: Regenerate.
239 2011-06-09 Joel Brobecker <brobecker@adacore.com>
241 * psim.c (psim_options): Fix length of comparison when checking
242 for --sysroot= option.
244 2011-06-08 Joel Brobecker <brobecker@adacore.com>
246 * psim.c (psim_options): Add option that cause the error
247 in invalid-option error messages. Print the usage when
248 detecting an invalid long-name option.
250 2011-06-08 Joel Brobecker <brobecker@adacore.com>
252 * psim.c (psim_options): Accept and ignore `--sysroot=...'.
254 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
256 From Stephen Kitt <steve@sk2.org>
257 * vm.c (vm_synchronize_context): Spelling fix in function
260 2011-04-16 Mike Frysinger <vapier@gentoo.org>
262 * sim_calls.c (sim_complete_command): New stub function.
264 2011-02-14 Mike Frysinger <vapier@gentoo.org>
266 * cap.c (cap_remove): Change zfree to free.
267 * corefile.c (core_init): Likewise.
268 * device.c (detach_device_interrupt_edge): Likewise.
269 (clean_device_interrupt_edges): Likewise.
270 (device_instance_delete): Likewise.
271 (device_set_property): Likewise.
272 (clean_device_properties): Likewise.
273 (device_add_range_array_property): Likewise.
274 (device_add_reg_array_property): Likewise.
275 * emul_bugapi.c (emul_bugapi_do_read): Likewise.
276 (emul_bugapi_do_write)
277 * emul_netbsd.c (write_direntries): Likewise.
279 (do_write): Likewise.
280 (do_getdirentries): Likewise.
281 * emul_unix.c (do_unix_read): Likewise.
282 (do_unix_write): Likewise.
283 * events.c (event_queue_init): Likewise.
284 (event_queue_deschedule): Likewise.
285 (event_queue_process): Likewise.
286 * hw_disk.c (open_disk_image): Likewise.
287 (hw_disk_instance_delete): Likewise.
288 * hw_eeprom.c (hw_eeprom_instance_delete): Likewise.
289 * hw_htab.c (htab_dma_binary): Likewise.
290 * hw_init.c (update_for_binary_section): Likewise.
291 * hw_memory.c (hw_memory_set_available): Likewise.
292 (hw_memory_init_address): Likewise.
293 (hw_memory_instance_release): Likewise.
294 * pk_disklabel.c (disklabel_delete): Likewise.
295 * table.c (table_push): Likewise.
296 * tree.c (parse_reg_property): Likewise.
297 (parse_ranges_property): Likewise.
298 (parse_string_property): Likewise.
299 * main.c (zfree): Delete.
300 * sim_calls.c (zfree): Likewise.
301 * sim_callbacks.h (zfree): Likewise.
303 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
305 * gdb-sim.c (sim_store_register): Update return value to
308 2011-01-05 Joel Brobecker <brobecker@adacore.com>
310 * psim.texinfo: Copyright year update.
312 2010-04-14 Mike Frysinger <vapier@gentoo.org>
314 * sim_calls.c (sim_write): Add const to buf arg.
316 2010-02-14 Andreas Schwab <schwab@linux-m68k.org>
318 * ppc-instructions: Fix missing assignment in last change.
320 2010-02-05 Andreas Schwab <schwab@linux-m68k.org>
322 * ppc-instructions: Fix aliasing bugs when calling
323 invalid_arithemetic_operation.
325 2009-11-13 Nathan Froyd <froydnj@codesourcery.com>
327 * configure.ac: If build != host, create a separate build-config.h
328 file desecribing the build machine.
329 * configure: Regenerate.
330 * lf.c: Include build-config.h instead of config.h.
335 * filter.c: Likewise.
338 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
340 * std-config.h: Fix spelling error.
342 2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
344 * main.c: Fix spelling error.
346 2009-09-15 Andreas Tobler <andreast-list@fgznet.ch>
347 Doug Evans <dje@google.com>
349 * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN.
350 * configure: Regenerate.
351 * config.in: Regenerate.
352 * hw_sem.c: (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN.
354 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
356 * config.in: Regenerate.
357 * configure: Likewise.
359 * configure: Regenerate.
361 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
363 * Makefile.in (datarootdir): New variable.
365 2009-01-12 Nathan Froyd <froydnj@codesourcery.com>
367 * ppc-instructions (sync): Add L field.
369 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
371 * ppc-instructions, ppc-spr-table: Add ability
372 to read tbrl and tbru special registers.
374 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
376 * configure: Regenerated.
377 * configure.ac: Add test for System V shared memory and semaphore.
378 * debug.c, debug.h: Add trace support for new devices.
379 * hw_sem.c, hw_shm.c: New files.
380 * Makefile.in: Add hw_sem.c and hw_shm.c.
382 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
384 * configure.ac: Add test for libz and zlib.h.
385 * Makefile.in (LIBS): Set from @LIBS@.
386 * configure: Regenerate.
389 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
390 Daniel Jacobowitz <dan@codesourcery.com>
391 Joseph Myers <joseph@codesourcery.com>
393 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
394 * configure, config.in: Regenerated.
395 * Makefile.in (LIB_OBJ): Add version.o.
396 (version.c, version.o): New rules.
397 * psim.c (psim_usage): Add help parameter. Print the bug URL.
398 Exit with code 0 for help.
399 (psim_options): Update calls to psim_usage. Handle --help and
401 * psim.h (psim_usage): Update prototype.
402 * main.c (main): Update psim_usage call.
404 2008-03-14 Nick Hudson <nick.hudson@dsl.pipex.com
406 * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
407 * configure: Regenerate.
409 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
411 * gdb-sim.c (regnum2spr): Rename to...
412 (sim_spr_register_name): ... this. Make global.
414 2007-09-04 Jerome Guitton <guitton@adacore.com>
416 * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
417 name property before parsing it.
419 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
421 * acconfig.h: Remove.
422 * config.in: Regenerate.
424 2006-11-22 Tom Marn <tom.marn@telargo.com>
426 Committed by Andrew Cagney.
427 * ppc-instructions: Implement optional PowerPC stfiwx instruction.
429 2006-07-12 Fred Fish <fnf@specifix.com>
431 * sim-endian.h (asm/byteorder.h): Don't include private kernel
434 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
436 * configure: Regenerated.
438 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
440 * Makefile.in: Replace INTLLIBS and INTLDEPS with LIBINTL
441 and LIBINTL_DEP everywhere.
442 (INTL_DIR, INTL_SRC): Remove.
443 (INTL_CFLAGS): Use INCINTL.
444 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR.
445 * configure: Regenerated.
447 2006-05-05 Andreas Schwab <schwab@suse.de>
449 * configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
450 * configure: Regenerate.
452 * Makefile.in (CFLAGS_FOR_BUILD): Define.
453 (BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
454 (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
456 2006-04-23 Andreas Schwab <schwab@suse.de>
458 * Makefile.in (tmp-ld-decode): Fix dependencies.
459 (tmp-ld-cache): Likewise.
460 (tmp-ld-insn): Likewise.
462 2006-02-01 Mark Mitchell <mark@codesourcery.com>
464 * emul_netbsd.c (emul_netbsd_create): Quote file-name property.
465 * emul_unix.c (emul_unix_create): Likewise.
466 * tree.c (libiberty.h): Include it.
467 (tree_quote_property): New function.
468 * tree.h (tree_quote_property): Declare.
470 2006-01-25 Mark Mitchell <mark@codesourcery.com>
472 * words.h (natural32): Define as "int".
474 2006-01-23 Mark Mitchell <mark@codesourcery.com>
476 * words.h (signed32): Define as "int".
477 (unsigned32): Define as "unsigned int".
479 2005-11-28 Mark Mitchell <mark@codesourcery.com>
481 * configure.ac (USE_WIN32API): Define it.
482 * configure.in: Regenerate.
483 * config.in: Likewise.
484 * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
485 * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
487 2005-11-28 Mark Mitchell <mark@codesourcery.com>
489 * psim.c: Include gdb/signals.h.
491 * sim_calls.c (gdb/signals.h): Include it.
492 (sim_stop_reason): Use TARGET_SIGNAL_*.
493 * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
495 2005-07-15 Ben Elliston <bje@au.ibm.com>
497 * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's.
499 2005-07-15 Ben Elliston <bje@au.ibm.com>
501 * hw_init.c: Comment out tokens after #endif directive.
502 * hw_register.c: Likewise.
503 * hw_trace.c: Likewise.
506 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
508 * psim.c: Added libiberty.h header file.
510 2005-04-18 Manoj Iyer <manjo@austin.ibm.com>
512 * configure.ac: Added check for long long.
513 * config.in: Regenerated.
514 * configure: Regenerated.
515 * words.h: Modified logic to check for HAVE_LONG_LONG instead of
516 __GNUC__, added config.h header file.
518 2005-03-25 Anthony Green <green@redhat.com>
520 * tree.c (parse_reg_property): Fix memset usage.
522 2005-03-23 Mark Kettenis <kettenis@gnu.org>
524 * configure: Regenerate.
526 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
528 * configure.ac: Delete AC_CONFIG_AUX_DIR.
529 * configure: Re-generate.
531 2005-01-07 Andrew Cagney <cagney@gnu.org>
533 * configure.ac: Rename configure.in, require autoconf 2.59.
534 * configure: Re-generate.
536 2005-01-03 Andreas Schwab <schwab@suse.de>
538 * Makefile.in (hw_com.o, hw_eeprom.o): Depend on
541 2004-11-16 Andreas Schwab <schwab@suse.de>
543 * Makefile.in (defines.h): Depend on tmp-defines.
544 (hw.c hw.h): Depend on tmp-hw.
545 (pk.h): Depend on tmp-pk.
547 2004-11-11 Andreas Schwab <schwab@suse.de>
549 * sim_calls.c: Include "libiberty.h".
551 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
553 Committed by Andrew Cagney.
554 * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
555 Check for struct statfs.
556 * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
557 * configure, config.in: Regenerate.
559 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
561 * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.
563 2004-08-04 Andrew Cagney <cagney@gnu.org>
564 Jim Blandy <jimb@redhat.com>
566 * sim_callbacks.h (simulator): Declare.
567 * Makefile.in (gdb-sim.o): New rule.
568 (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
570 (GDB_SIM_PPC_H): Define.
571 * gdb-sim.c: New file.
572 * sim_calls.c: Do not include "defs.h".
573 (simulator): Drop static.
574 (sim_store_register, sim_fetch_register): Delete.
576 2004-08-04 Andrew Cagney <cagney@gnu.org>
578 * Back out accidently committed change.
580 2004-08-04 Jim Blandy <jimb@redhat.com>
582 Use a fixed register numbering when communicating with the PowerPC
584 * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
585 include GDB's "defs.h".
586 (gdb_register_name_table): New variable.
587 (gdb_register_name_table_size): New enum constant.
588 (gdb_register_name): New function.
589 (sim_fetch_register, sim_store_register): Use gdb_register_name,
590 instead of calling gdbarch_register_name.
591 * Makefile.in (GDB_SIM_PPC_H): New variable.
592 (DEFS_H): Delete variable.
593 (sim_calls.o): Update dependencies.
595 2004-07-26 Andrew Cagney <cagney@gnu.org>
597 Problem from Olaf Hering <olh@suse.de>.
598 * Makefile.in (install, installdirs): Add DESTDIR.
600 2004-07-10 Ben Elliston <bje@au.ibm.com>
602 * tree.c (parse_integer_property): Comment typo fix.
604 2004-07-06 Jim Blandy <jimb@redhat.com>
606 * Makefile.in: Update all dependency information.
607 (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
608 (EMUL_GENERIC_H): Values updated.
609 (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
610 (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
611 (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
612 (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
613 (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
614 (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
615 (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
616 (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
617 (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
618 (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
619 (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
620 (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
621 (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
622 (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
623 (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
624 (TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
625 (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
626 (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
627 (events.o, filter.o, filter_filename.o, filter_host.o)
628 (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
629 (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
630 (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
631 (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
632 (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
633 (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
634 (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
635 (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
637 2004-06-28 Jim Blandy <jimb@redhat.com>
639 * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
640 unsigned type before or-ing it with a 64-bit value.
642 2004-06-15 Alan Modra <amodra@bigpond.net.au>
644 * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
645 instead of bfd_get_section_size_before_reloc.
646 (htab_dma_binary(bfd): Likewise.
647 * hw_init.c (update_for_binary_section(bfd): Likewise.
649 2004-05-10 Daniel Jacobowitz <dan@debian.org>
651 * configure.in (sim_fpu_cflags): Add -I../common.
652 * configure: Regenerated.
654 2004-01-27 Andrew Cagney <cagney@redhat.com>
656 * ppc-instructions: Update copyright.
657 (convert_to_integer): Add trailing ";" to label.
659 2003-10-16 Michael Snyder <msnyder@redhat.com>
661 * emul_netbsd.c: Only a comment may follow an #endif.
663 2003-10-15 Michael Snyder <msnyder@redhat.com>
665 * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
667 2003-06-22 Andrew Cagney <cagney@redhat.com>
669 Written by matthew green <mrg@redhat.com>, with fixes from Aldy
670 Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
671 Nick Clifton <nickc@redhat.com>.
673 * ppc-instructions: Include altivec.igen and e500.igen.
674 (model_busy, model_data): Add vr_busy and vscr_busy.
675 (model_trace_release): Trace vr_busy and vscr_busy.
676 (model_new_cycle): Update vr_busy and vscr_busy.
677 (model_make_busy): Update vr_busy and vscr_busy.
678 * registers.c (register_description): Add Altivec and e500
680 * psim.c (psim_read_register, psim_read_register): Handle Altivec
682 * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
683 * configure.in (sim_filter): When *altivec* add "av". When *spe*
685 (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
687 * configure: Re-generate.
688 * e500.igen, altivec.igen: New files.
689 * e500_expression.h, altivec_expression.h: New files.
690 * idecode_expression.h: Update copyright. Include
691 "e500_expression.h" and "altivec_expression.h".
692 * e500_registers.h, altivec_registers.h: New files.
693 * registers.h: Update copyright. Include "e500_registers.h" and
694 "altivec_registers.h".
695 (registers): Add Altivec and e500 specific registers.
696 * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
698 (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
699 (tmp-igen): Add dependencies on altivec.igen and e500.igen .
701 2003-06-22 Andrew Cagney <cagney@redhat.com>
703 Problems reported by Joshua LeVasseur.
704 * emul_chirp.c: Update copyright.
705 (chirp_emul_nextprop): Return the first property.
706 * hw_htab.c: Update copyright.
707 (htab_decode_hash_table): Fix check for htab size.
709 2003-06-21 Andrew Cagney <cagney@redhat.com>
711 * interrupts.c: Update copyright.
712 (external_interrupt): Fix test for already pending interrupt.
713 Problem found by Joshua LeVasseur.
715 * ppc-instructions: Add missing +8 line. Found by blofeldus at
718 2003-06-21 Andrew Cagney <cagney@redhat.com>
720 From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
721 (hw_nvram_init_address): Correct call to memset--swap second and
724 2003-06-21 Andrew Cagney <cagney@redhat.com>
726 * hw_com.c (hw_com_device_init_data): Check that the output, and
727 not input file opened. Pointed out by masahino tky3.3web.ne.jp.
729 2003-06-20 Andrew Cagney <cagney@redhat.com>
731 * sim_calls.c (sim_create_inferior): Assert that
732 psim_write_register succeeded.
733 (sim_fetch_register, sim_store_register): Make "regname" constant.
734 Delete Altivec hack. Return result from psim_read_register /
736 * psim.h (psim_read_register, psim_write_register): Change return
737 type to int. Update comments.
738 * psim.c: Update copyright.
739 (psim_stack): Assert that the psim_read_register worked.
740 (psim_read_register, psim_read_register): Return the register's
741 size. Allocate the cooked buffer dynamically.
742 * hw_register.c: Update copyright.
743 (do_register_init): Check that psim_write_register succeeded.
744 * hw_init.c: Update copyright.
745 (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
746 that the register transfer worked.
748 2003-06-19 Andrew Cagney <cagney@redhat.com>
750 * ld-insn.h: Update copyright.
751 (cache_fields): Define.
752 (insn_table_fields): Add insn_field_6 and insn_field_7.
753 (load_insn_table): Pass in the "cache_rules".
754 * ld-insn.c: Update copyright.
755 (load_insn_table): Add parameter "cache_rules". Handle "cache",
756 "computed" and "scratch" fields.
757 (main): Pass "cache_rules" to load_insn_table.
758 * ld-cache.h: Update copyright.
759 (append_cache_table): Declare.
760 * ld-cache.c: Update copyright.
761 (append_cache_table): New function.
762 (load_cache_table): Call.
763 * gen-model.c: Include "ld-cache.h".
764 * gen-itable.c: Include "ld-cache.h".
765 * igen.c: Move #include "ld-cache.h" to earlier. Update
767 (main): Permit a NULL "cache_rules". Pass address of
768 "cache_rules" to load_insn_table.
769 * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
770 (tmp-igen): Do not include ppc-cache-rules.
771 (gen-itable.o, gen-model.o): Add "ld-cache.h".
772 * ppc-cache-rules: Delete file.
773 * ppc-instructions: Add cache rules.
775 2003-06-19 Andrew Cagney <cagney@redhat.com>
777 * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
778 (SIM_FPU_FLAGS): Define.
779 (icache.o): Delete explicit compile command.
780 (semantics.o, idecode.o): Delete explicit compile command.
781 (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
782 * gen-support.c (gen_support_c): Generate #include of
783 "sim-inline.h" and "sim-fpu.h", but conditional on
785 * gen-idecode.c (gen_idecode_c): Ditto.
786 * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
787 "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
788 Move to before "support.h".
789 * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
792 2003-05-16 Ian Lance Taylor <ian@airs.com>
794 * Makefile.in (various): Use $(SHELL) whenever we invoke
797 2003-02-27 Andrew Cagney <cagney@redhat.com>
799 * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
801 2002-09-27 Andrew Cagney <ac131313@redhat.com>
803 * hw_disk.c (hw_disk_init_address): Set device type to "block",
806 2002-06-22 Andrew Cagney <ac131313@redhat.com>
808 * Makefile.in (INTL_SRC): Define.
809 (INTL_CFLAGS): Define.
811 (STD_CFLAGS): Add INTL_CFLAGS.
813 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
815 * psim.c (psim_options): Don't choke when gdb invokes us with
816 the --architecture option, just ignore it.
818 2002-06-16 Andrew Cagney <ac131313@redhat.com>
820 * configure: Regenerated to track ../common/aclocal.m4 changes.
822 2002-06-08 Andrew Cagney <cagney@redhat.com>
824 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
825 * sim_calls.c: Ditto.
827 2002-05-30 DJ Delorie <dj@redhat.com>
829 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
831 * gen-idecode.c (print_run_until_stop_body): Likewise.
832 * gen-model.c (gen_model_c): Likewise.
834 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
836 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
837 AltiVec registers as a temporary stopgap.
839 2002-03-24 David O'Brien <obrien@FreeBSD.org>
841 * ppc/hw_disk.c: Export a disk device property.
843 2002-03-23 Andrew Cagney <ac131313@redhat.com>
845 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
846 * ppc-instructions (lswx): Do the register control with the
847 register count. Initialize the right register in the loop.
848 (mtfsfi) : Correct prefix for the instruction.
850 2002-02-24 Andrew Cagney <ac131313@redhat.com>
853 * std-config.h: Fix grammar and typos. Update copyright.
856 2002-01-12 matthew green <mrg@redhat.com>
858 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
859 * igen.c (main): Change -I to add include paths for :include:
861 Implement -G as per sim/igen, with just gen-icache=N support.
862 Call load_insn_table() with the built include path.
864 * ld-insn.c (parse_include_entry): New. Load an :include: file.
865 (load_insn_table): New `includes' argument. Look for :include:
866 entries and call parse_include_entry() for them.
867 (main): Adjust load_insn_table() call.
868 * ld-insn.h (model_include_fields): New enum.
869 (load_insn_table): Update prototype.
870 * table.c (struct _open_table, struct _table): Rework
871 structures to handle included files.
872 (table_push): Move the guts of table_open() here.
874 * table.c (struct _open table, struct table): Make table object an
875 indirect ptr to the current table file.
876 (current_line, new_table_entry, next_line): Make file arg type
878 (table_open): Use table_push.
879 (table_entry_read): Point variable file at current table, at eof, pop
882 * misc.h (NZALLOC): New macro. From sim/igen.
884 * table.h, table.c (table_push): New function.
886 2002-01-04 matthew green <mrg@redhat.com>
888 * bits.c (LSMASKED64): New inline function.
889 (LSEXTRACTED64): Likewise.
890 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
891 sim/common/sim-bits.h
892 (LSMASKED64, LSEXTRACTED64): New functions definitions.
893 * Makefile.in (sim-bits.o): Remove target.
895 * main.c (zalloc): Fix typo in error message.
897 2001-12-16 Andrew Cagney <ac131313@redhat.com>
899 * configure.in (sim_fpu): Don't add sim-bits.o.
900 * configure: Re-generate.
902 2001-12-15 matthew green <mrg@redhat.com>
904 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
905 (sim_io_error): New function.
906 * sim_calls.c: (sim_io_error): New function.
908 2001-12-14 matthew green <mrg@redhat.com>
910 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
911 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
912 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
913 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
914 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
915 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
916 * configure: Regenerate.
917 * device.h (device_find_integer_array_property): Match function definition.
918 * gen-icache.c (print_icache_internal_function_declaration): Rename
919 INLINE_ICACHE to PSIM_INLINE_ICACHE.
920 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
921 to PSIM_INLINE_IDECODE.
922 * gen-semantics.c (print_semantic_function_header): Rename
923 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
924 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
926 * igen.c (print_function_name): Also escape `(' and `)'.
927 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
928 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
929 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
930 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
931 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
932 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
933 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
934 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
935 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
936 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
937 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
938 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
939 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
940 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
941 * options.c (options_inline): Fix names.
942 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
943 * sim-endian.h: Likewise.
944 * sim-main.h: New file.
945 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
947 2001-12-01 Andrew Cagney <ac131313@redhat.com>
950 * ppc-spr-table: Add SDA and PIR.
952 2001-10-29 Andrew Cagney <ac131313@redhat.com>
954 * tree.c (parse_size): Assert #size-cells > 0.
955 (parse_address): Ditto for #address-cells.
956 (parse_reg_property): Only parse the size when #size-cells is
959 2001-10-25 Andrew Cagney <ac131313@redhat.com>
961 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
962 * hw_htab.c (htab_map_binary): Don't try to map the text section
964 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
966 (emul_chirp_create): Map in the interrupt table.
968 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
970 * Makefile.in: Add dependencies on $(CPU_H).
972 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
974 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
977 2001-03-04 Andrew Cagney <ac131313@redhat.com>
979 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
981 (do_stat): Only do SYS test when SYS_stat defined.
982 (do_sigprocmask): Ditto for SYS_sigprocmask.
983 (do_fstat): Ditto for SYS_fstat.
984 (do_getdirentries): Ditto for SYS_getdirentries.
985 (do_lstat): Ditto for SYS_lstat.
987 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
989 * emul_netbsd.c (do_open): Translate the flag parameter to the
990 open syscall to the numbers supported by the host.
992 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
994 * sim-endian.h: Don't have parameters on macro definitions which
995 are simply renaming functions, to permit use of XCONCAT2 in both
996 the macro name and the arguments in a use of such a definition.
998 2000-11-15 Jim Blandy <jimb@redhat.com>
1000 * sim_calls.c: Doc fix.
1001 (sim_fetch_register, sim_store_register): Call
1002 gdbarch_register_name directly, instead of going through
1003 REGISTER_NAME macro.
1005 2000-10-24 Geoff Keating <geoffk@cygnus.com>
1007 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
1009 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
1011 * configure: Regenerated to track ../common/aclocal.m4 changes.
1013 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
1015 * events.c (event_queue_process): Call update_time_from_event
1016 every time an event is removed from the queue.
1017 (update_time_from_event): Delete assertion that a negative
1018 time_from_event implies an empty event queue.
1020 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
1022 * interrupts.c (deliver_hardware_interrupt): Print time trace in
1024 * events.c (event_queue_process): Cleanup trace message.
1025 (update_time_from_event): Trace full event queue.
1027 2000-03-25 Geoff Keating <geoffk@cygnus.com>
1029 * ppc-instructions (Disabled_Exponent_Underflow): Increment
1030 the exponent when denormalizing.
1032 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1034 * configure: Regenerated to track ../common/aclocal.m4 changes.
1036 1999-05-08 Felix Lee <flee@cygnus.com>
1038 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
1039 * configure: Regenerated to track ../common/aclocal.m4 changes.
1041 1999-04-02 Keith Seitz <keiths@cygnus.com>
1043 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
1044 the frequency at which the poll_quit callback is called.
1045 (poll_quit_count): New global.
1046 (sim_io_poll_quit): Only call the poll_quit callback
1047 after the specified POLL_QUIT_INTERVAL.
1049 1999-02-22 Jim Lemke <jlemke@cygnus.com>
1051 * dc-complex: Force expansion on all bits of field BO.
1052 Previously, the least-significant (prediction) bit was ignored.
1053 * ppc-instructions (conditional branches): Implement mpc860c0 option.
1054 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
1055 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
1056 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
1057 * interrupts.c (program_interrupt): Added handling for above interrupt.
1059 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
1061 Make the simulator compatible with the MPC750. It would be nicer
1062 to make this a real multi-sim, but that's more work than we have
1064 * emul_generic.c (emul_add_tree_options): Only require strict
1065 alignment if it was explicitly requested at configuration time.
1066 Don't make it the default for little-endian machines.
1067 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
1068 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
1069 THRM2, THRM3): Plop in the MPC750 SPR registers.
1070 (DABR): This is weird. This was HID5, but the PPC spec says this
1071 should be DABR; why did some random processor use it for something
1072 else? The HID5 entry dates back to the original checkin of the
1073 simulator code in 1995, so remove it.
1074 * sim_calls.c (register_names): Delete this; since the user can
1075 now change GDB's list of register names dynamically, we can't
1076 pretend there's a static mapping here.
1077 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
1078 function to get the register name. That ought to be accurate.
1079 However, we're changing a compile-time dependency (using the
1080 REGISTER_NAMES macro) into a link- and run-time dependency
1081 (calling REGISTER_NAME, which happens to be a function call on the
1084 1999-01-22 Jim Lemke <jlemke@cygnus.com>
1086 * igen.c(gen_semantics_[ch]): setup/use of new option
1088 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
1089 ppc-instructions(the four branch insn groups): detect problematic br's.
1090 psim.c(is_num - added, psim_options): Parse and init new option.
1091 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
1093 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
1095 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
1097 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
1099 * main.c (sim_io_poll_quit): Stub function.
1101 * events.c (SIM_EVENTS_POLL_RATE): Define.
1102 (sim_events_poll): Copy function from common/sim-events.c.
1103 (event_queue_init): Copy scheduling of sim_events_poll from same.
1105 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
1106 poll the external environment.
1108 1998-11-19 Michael Meissner <meissner@cygnus.com>
1110 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
1111 fractional type, so that quiet NaN's aren't treated like
1114 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
1116 * table.c (table_open): For cygwin hosts, we need to use the
1117 return value from the read routine as the number of bytes to
1118 process. This apparently is due to text-mode vs binary-mode. If
1119 the mounts are done text-mode, then the size returnedby fstat()
1120 may be different than the number of bytes "read" in text mode.
1122 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
1124 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
1129 1998-09-03 Michael Meissner <meissner@cygnus.com>
1131 * emul_{netbsd,unix}.c: Update copyright year.
1133 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
1135 * sim_calls.c (sim_fetch_register, sim_store_register):
1136 return zero when nothing to do.
1138 1998-06-26 Michael Meissner <meissner@cygnus.com>
1140 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
1141 * configure: Regenerate.
1142 * emul_{netbsd,unix}.c (toplevel): No longer try to include
1143 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
1145 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
1147 * Makefile.in: The run target depended on a target psim$(EXEEXT),
1148 but there was no such target, only plain psim. So I changed the
1149 run target to depend on psim.
1151 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
1153 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
1154 now defined in ../common/aclocal.m4, and the double definition causes
1155 problems with AC_SUBST of EXEEXT.
1156 * configure: Regenerate.
1158 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
1160 * aclocal.m4: new file for AM_EXEEXT macro
1161 * configure.in: call AM_EXEEXT
1162 * configure: regenerate with autoconf 2.12.1.
1163 * Makefile.in: add EXEEXT support
1165 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1167 * configure: Regenerated to track ../common/aclocal.m4 changes.
1170 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
1172 * acconfig.h: New file.
1173 * configure.in: Reverted change of Apr 24; use sinclude again.
1174 Don't call AC_C_CROSS.
1176 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1178 * configure: Regenerated to track ../common/aclocal.m4 changes.
1181 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
1183 * Makefile.in (top_builddir): New macro.
1184 (INTLLIBS): New macro.
1185 (INTLDEPS): Likewise.
1186 (psim): Depend on INTLDEPS; link against INTLLIBS.
1187 * configure.in: Call CY_GNU_GETTEXT.
1189 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
1191 * configure: Regenerate with autoconf 2.12.1.
1193 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
1195 * psim.c (psim_read_register, psim_write_register): Handle updates
1198 * registers.c (register_description): Reconize "FPSCR".
1200 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
1201 MSR FP exception mode. Do not enable FPSCR bits.
1202 * emul_unix.c (emul_unix_create): Ditto.
1204 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
1206 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
1207 length parameter. Return -1.
1209 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
1211 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
1212 (is_invalid_zero_divide, invalid_zero_divide_operation): New
1215 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1217 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
1220 1997-11-05 Felix Lee <flee@cygnus.com>
1222 * emul_chirp.c: #ifdef HAVE_UNISTD_H
1224 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1226 * corefile.c (core_attach): Pad out allocated memory regions so
1227 that they are always correctly aligned.
1228 (struct _core_mapping, core_map_attach, core_init,
1229 new_core_mapping): Change free_buffer to type void*.
1231 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
1233 * sim_calls.c (zfree): Call free correctly.
1235 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1237 * sim_calls.c (zfree): Use free, not mfree.
1238 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
1241 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1243 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
1244 mask extracting shift amount. Correctly condition for setting XER
1246 (ldhau): From Johannes Reisinger, update rA after load.
1248 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
1250 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
1252 * words.h: __int64 instead of long long for MSVC.
1254 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1256 * sim_calls.c (sim_create_inferior): Check the simulator was
1257 initialized before creating inferior.
1259 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
1260 sign bit using 64 bit and not a 32 bit mask.
1262 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1264 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
1265 it has been used, not before.
1267 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
1269 * sim_calls.c (sim_kill): Delete.
1270 (sim_create_inferior): Add ABFD argument.
1271 (entry_point): Delete variable.
1272 (sim_load): Move setting of PC from here.
1273 (sim_create_inferior): To here.
1275 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1277 * sim_calls.c (sim_open): Add ABFD argument.
1279 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1281 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
1282 CR register updates dependant on RC value had logic backwards.
1284 * ppc-instructions (Load String Word Immediate): From Brad Parker
1285 - sense of wrap test in check for overwriting RA wrong.
1286 (Load String Word Indexed): Ditto.
1288 * configure.in: From Erik Landry - set sim_default_model not
1289 sim_model for sim-default-model option.
1290 * configure: Regenerate.
1292 * interrupts.c (check_masked_interrupts): Schedule a hardware
1293 interrupt delivery when FP interrupts get enabled.
1294 (program_interrupt): Generate FP exceptions instead of aborting.
1295 (deliver_hardware_interrupt): Deliver a FP exception if so
1298 * registers.h: Add definition of fpscr_vx_bits.
1300 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
1302 (FPSCR_END): Explicitly check for possible floating point
1303 exception conditions.
1304 (FPSCR_BEGIN): Simplify.
1306 * ppc-instructions (Move From FPSCR): Enable.
1307 (Move To FPSCR Bit 1): Ditto.
1308 (Move To FPSCR Bit 0): Ditto.
1309 (Move To FPSCR Field Immediate): Ditto.
1310 (Move to Condition Register from FPSCR): Simplify.
1311 (invalid_arithemetic_operation): Generate a QNaN when invalid
1312 operation exception disabled.
1314 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1316 * sim_calls.c (sim_open): Add callback argument.
1317 (sim_set_callbacks): Delete.
1319 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
1321 * sim_callbacks.h (error): Make declaration match gdb's.
1322 * main.c (error): Ditto.
1324 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1326 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
1327 stopped/SIGINT. Exit implies a status code.
1329 * psim.c (cntrl_c_simulation): From main.c. Event function that
1330 halts the simulator.
1331 (psim_stop): New. Asynchronously schedule a stop simulator event.
1332 (psim_run_until_stop): Delete. Made redundant by psim_stop.
1334 * main.c (cntrl_c): Update.
1335 (cntrl_c_simulation): Moved to psim.c.
1337 * sim_calls.c (sim_stop): New function. Use psim_stop which
1338 schedules a stop event.
1339 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
1340 (sim_resume): Use psim_run as stop variable no longer needed.
1342 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1344 * psim.c (psim_options): Handle -E option correctly.
1345 (psim_usage): Document.
1347 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
1349 * psim.c (psim_options): Ignore -E option (sets endianness).
1350 * sim_calls.c: #include bfd.h.
1351 (entry_point): New static local.
1352 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
1353 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1355 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
1357 * Makefile.in (INSTALL): Set to @INSTALL@.
1358 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1359 (install): Depend upon installdirs. Use $(program_transform_name)
1360 directly, rather than using $(INSTALL_XFORM).
1361 (installdirs): New target.
1363 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
1365 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
1366 rather than the non-portable cat -n.
1368 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
1370 * Makefile.in (INSTALL): Change install.sh to install-sh.
1372 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
1374 * ppc-instructions: Change milhwu to mulhwu.
1376 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
1378 * sim_calls.c (sim_open): New arg `kind'.
1380 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
1382 * COPYING: Update FSF address.
1384 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1386 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
1387 all the required features are supported by the host OS.
1389 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1391 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
1393 * configure.in (enable-sim-endain): Correct typo in usage (from
1394 Erik Landry <landry@ENGR.ORST.EDU>).
1395 * configure: Re-generate.
1397 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1399 * Makefile.in (targ-vals.def): Re-do rule so that it works with
1400 FreeBSD's make. Didn't like $<.
1402 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
1404 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
1406 (other sim_*): New SIM_DESC argument.
1408 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
1410 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
1411 ppc-opcode-simple-switch, ppc-opcode-complex-array,
1412 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
1413 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
1414 superseeded by --sim-decode-mechanism option.
1416 * ppc-opcode-simple, dc-simple: Rename to be 8.3
1417 * ppc-opcode-complex, dc-complex: Ditto.
1418 * ppc-opcode-stupid, dc-stupid: Ditto.
1419 * ppc-opcode-test-1, dc-test.01: Ditto.
1420 * ppc-opcode-test-2, dc-test.02: Ditto.
1422 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
1425 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
1427 * Many of the ppc-opcode-* files are identical baring the type of
1428 lookup table. Instead of having multiple tables, igen can do this
1429 via an additional option.
1431 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
1432 allow the type of generated table specified in the decode file to
1435 * ld-decode.c (load_decode_table): Allow the table type to be
1438 * igen.c (main): Add -T <mechanism> option so that an overriding
1439 instruction decode mechanism can be specified.
1441 * configure.in: New option --sim-decode-mechanism to control
1442 igen's new -T <mechanism> flag.
1443 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
1445 * configure: Regenerate.
1447 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1449 * events.c (event_queue_create): Don't use NULL to initialize an
1451 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
1452 of sigprocmask to appropriate autoconf test.
1454 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
1456 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
1458 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
1459 includes our config.h.
1461 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
1463 * configure.in: Fix typo in test for callback.c.
1464 * configure: Regenerated.
1466 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1468 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
1469 found in the device tree.
1471 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1473 * Property create/initialization still wasn't correctly ordered.
1474 Should be delaying everything related to ihandle creation until
1475 after the rest of the tree has been established.
1477 * device.c (device_find_ihandle_runtime_property): Update.
1478 (device_add_ihandle_runtime_property): Update.
1480 * tree.c (parse_ihandle_property): Delay lookup of the device to
1481 be opened until the ihandle initialization phase.
1482 * tree.c (print_properties): Update.
1484 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1486 * gen-icache.c (print_icache_extraction): Add a reason parameter.
1487 Augment each extracted field with a comment citing the codes
1488 origin. Should simplify tracking down incorrect cache
1491 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1493 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
1494 works for normal and boolean table entries.
1496 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
1497 valid. Handle this just like *_{read,write}_register now handles
1500 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1502 * events.c (insert_event_entry): Correct loop termination
1505 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1507 * psim.c (psim_options): Add new option -c for max-iterations or
1509 (psim_usage): Document.
1510 (psim_max_iterations_exceeded): New function, abort simulation if
1511 max iterations exceeded.
1513 * gen-idecode.c: Re-work the table lookup code so that it assumes
1514 that the entry is a leaf by default. Simplify the boolean table
1515 entry code so that it involves a mask + test instead of shift +
1516 shift + mask + test.
1518 * gen-idecode.c: Correct generated igen body so that it no drops
1519 or doubles clock interrupts.
1522 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1524 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
1527 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
1528 if common callback is present.
1530 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1532 * configure.in (sim_callback): If the gdb is post 4.16, configure
1533 callback support from the common directory.
1534 * configure: Regenerate.
1536 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
1538 (GDB_OBJ): Add callback support configured in.
1539 (gentmap,targ-vals.def): Build from common directory.
1540 (targ-vals.h,targ-map.c): Build by running gentmap.
1541 (callback.o): Build from source in common directory.
1542 (targ-map.o): Add dependency.
1543 (clean): Remove gentmap.
1545 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1547 * igen wasn't aborting if the opcode table contained no valid
1550 * misc.c (name2i): Possibly abort if an invalid name is
1552 * ld-decode.c: Abort if the table type isn't found.
1554 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1556 * When performance monitoring is disabled, it is still possible to
1557 determine the simulation speed by looking at the number of elapsed
1558 ticks recorded by the event queue.
1560 * psim.c (psim_write_register, psim_read_register): Force the cpu
1561 to zero when it is either of `-1' or `nr_cpus'. In both cases the
1562 next cpu would be zero any way.
1564 * mon.c (mon_print_info): If possible, print the system cycle
1565 performance. This is an indication of the number of instructions
1568 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1570 * The code to allow an event queue to be updated during a signal
1571 was missing. For main.c, a cntrl-c simulation termination wasn't
1574 * The simulation would not correctly restart if an event requested
1575 that the simulation be halted.
1577 * psim.c (psim_options): Add hack to -i option to optionally
1578 include a level vis -i2.
1579 (psim_usage): Document.
1581 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
1582 cntrl-c occures schedule an event to halt the simulation.
1583 (main): Catch CNTRL-C signals with the function cntrl_c.
1585 * events.c (event_queue_process): Mask interrupts while
1586 manipulating the async event queue.
1587 (event_queue_init): Ditto.
1588 (event_queue_schedule_after_signal): Ditto.
1590 * events.c (event_queue_process): Mark the event queue as being in
1591 the processing state when processing has started. Adjust code
1592 so that it is tolerant of halts.
1593 (event_queue_init): Start the event queue out with processing
1595 (event_queue_tick): Check that processing isn't still being
1598 * gen-idecode.c (print_run_until_stop_body): Call
1599 event_queue_process_events to clear possibly pending events before
1600 starting a simulation run. Re-arange main loop so that simulator
1601 is correctly restarted when an event halts the simulation.
1603 * psim.c (psim_halt): Handle an event halting the simulation.
1604 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
1607 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1609 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
1610 RA. Based on instruction frequency stats, expand additional
1612 * ppc-instructions: Change all `RA == 0' to RA_is_0.
1614 * ppc-opcode-stupid: Move all but the basic table in -complex into
1615 here. Update to new format.
1617 * Makefile.in (tmp-defines): New target. Force defines.h to always
1618 be built. Hence get ppc-opcode-goto to build.
1620 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1622 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
1625 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1627 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
1628 to be initialized independant of the rest of the simulation
1629 initalization. Otherwize a trace option explictly set from gdb
1630 could be overridden by hw_trace.
1632 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
1634 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
1635 debug.c. It could be much simpler.
1637 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1639 * Some devices support removable media. Add hooks to the disk
1640 device so that it supports this.
1642 * device.c (device_add_string_array_property,
1643 device_find_string_array_property): New functions, manipulate
1644 properties containing an array of strings.
1645 (device_find_string_property): Allow a string array.
1646 (device_init_static_properties): Update.
1647 (device_init_runtime_properties): Update.
1649 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
1650 media. If no file image is specified, use the next one in the
1651 image property list.
1652 (hw_disk_init_address): Change the file property so that it is a
1653 string array - use the first entry for the initial file image.
1655 * tree.c (print_string_aray_property): New function - print a
1657 (print_properties): Adjust.
1658 (print_string): Write a string, handling double quotes.
1660 * device.h: Define an ioctl to `change-media' with an optional new
1663 * hw_disk.c: Allow floppy disk devices to be specified.
1665 * psim.c (psim_command): New function, parse more complex psim
1666 commands such as "change-media" and "trace".
1667 * sim_calls.c (sim_do_command): Use.
1669 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1671 * For expressions like (RA == 0) that are entered in to the cache
1672 as RA_is_0. If possible generate the result of the expression so
1673 that the compiler gets a better chance of eliminating dead
1676 * gen-icache.c (print_icache_extraction): For a cache entry of
1677 the form <name>_is_<const> where it is a boolean field, generate
1678 the result of the expression instead of the expression its self.
1679 (print_icache_body): Remove code that was looking for *_is_0 and
1680 then generating corresponding definitions.
1682 * gen-icache.c (print_icache_struct): If there is no cache, do not
1683 output expressions in idecode.h file.
1685 * gen-icache.c (print_icache_body): Output them here.
1687 * ppc-opcode-complex: Clarify constant values for SPR==LR register
1690 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
1692 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1694 * The code that put values in and extracted values from the cache
1695 was too compilicated. The cache table did not allow values to be
1696 computed from cache entries. #defines could only be used when a
1697 cache was present, remove the restriction.
1699 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
1700 scratch variable is defined when a cache entry is beinf
1701 filled. Change the definition of a COMPUTE variable to be defined
1702 when the cache entry is being used.
1703 * gen-icache.c: Update.
1705 * ld-cache.h, ld-cache.c: Change field names so that their meaning
1706 is more obvious. old_name->field_name, new_name->derived_name.
1707 * gen-icache.c: Update
1709 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
1710 different types of cache code - put into cache, extract from
1711 cache, no cache - an explicit argument to print_icache_body.
1712 * gen-icache.c (print_icache_extraction): Ditto.
1714 * gen-semantics.c (print_c_semantic): Update use.
1715 * gen-idecode.c (print_jump_insn): Update use.
1716 * gen-icache.c (print_icache_function): Update use.
1718 * igen.c (main): Change 'R' option so that it does not force the
1721 * configure.in (enable-sim-icache): Clarify description. Make
1722 #define one of the defaults regardless of the cache. Probably
1723 should revamp and add a separate option.
1725 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1727 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1728 partition numbering.
1729 (pk_disklabel_create_instance): Partition 1..4 are valid - not
1731 (is_iso9660): New function, verify a CD9660 File system.
1732 (pk_disklabel_create_instance): Start expanding so that active
1733 partition selection is supported.
1735 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1737 * The cap object was retaining a reference to the instance of a
1738 device after it was deleted. Instead add and remove cap's from the
1739 cap db as they are created and deleted. This ensuring that a
1740 capibility is only used during the lifetime of the corresponding
1743 * cap.h, cap.c: Correct cap type - was signed32 should be
1746 * cap.c (cap_add, cap_remove): New methods for cap object that
1747 allow the explicit addition and removal of internal objects that
1748 the cap knows about.
1750 * cap.c (cap_init): Rewrite. Verify that the only objects
1751 remaining in the cap data base are those that were entered first.
1752 Thse objects will be the permenant ones.
1753 * device.c (device_init_address): Remember to initialize the cap
1756 * device.c (device_create_instance_from): Explicitly add device
1757 instances to the cap database. Simplify create code.
1758 (device_instance_delete): Explicitly remove device instances from
1761 * device.c (device_create_from): Explicitly add a device to the
1764 * device.c (device_create_from): Always set the cap members.
1766 * hw_disk.c: Output the instance when tracing.
1768 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1770 * tree.c (split_device_specifier): Add support for aliases when
1771 looking up a device. Now needs a device as an argument.
1772 (split_property_specifier): Ditto.
1774 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1776 * The memory "claim" and "release" methods take an address and
1777 size as arguments. These may be multi cell values. Initially fix
1778 the memory code so that they check/detect this. Leave the
1779 adjustment of any clients to later.
1781 * hw_memory.c (hw_memory_instance_claim,
1782 hw_memory_instance_release): Handle multi-cell memory devices.
1784 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1785 release of memory regions that were not claimed.
1787 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1789 * device.h, device.c (device_instance_call_method): Correct return
1790 type - can return either 0 or -1, hence should be a signed type.
1791 * device_table.h: Ditto.
1793 * hw_memory.c (hw_memory_instance_claim,
1794 hw_memory_instance_release): Update.
1795 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1796 hw_disk_nr_blocks): Ditto.
1798 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1800 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1801 method belonging to "/chosen/memory".
1802 (chirm_emul_release): Ditto.
1804 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1805 that are inlined. These modules are called via a table and are
1808 * hw_init.c (update_for_binary_section): Fix failure to allocate
1809 memory used by the binary in real-mode executions. If "claim"
1810 property is present, allocate memory from the "/chosen/memory"
1813 * emul_chirp.c (emul_chirp_create): Specify that memory should be
1814 claimed when loading a real image.
1816 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1819 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1820 when merging adjacent memory chunks.
1822 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1824 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1825 optional PROCESSOR & CIA args so that this routine also abort an
1828 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1829 miss-aligned access when a transfer fails abort.
1831 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1832 instead of the vm_read_buffer.
1833 * emul_netbsd.c (do_write): Ditto.
1834 * emul_unix.c (do_unix_write): Ditto.
1836 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1838 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1839 * configure: Regenerate.
1841 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1842 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1844 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1845 instead of explicit __unused__ attribute.
1846 (print_icache_body): Ditto.
1847 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1849 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1851 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1854 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1855 arguments so that there is a reference point for recovery.
1856 (vm_synchronize_context): Pass processor+cia for errors.
1857 (om_unpack_sr): Ditto.
1858 (om_unpack_srs): Ditto.
1859 * vm.c (vm_create): Review error messages.
1861 * vm.c: Include "cpu.h" so that cpu_error is visible.
1863 * ppc-instructions (Return From Interrupt): Pass CIA.
1864 (Instruction Synchronize): Ditto.
1865 * psim.c (psim_init): Ditto.
1867 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1869 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1870 but also saves current processor state.
1872 * basics.h: Move #include <stdarg.h> to here from device_table.h.
1874 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
1875 when simulation aborted.
1876 (program_interrupt): Ditto.
1877 (floating_point_unavailable_interrupt): Ditto.
1878 (alignment_interrupt): Ditto.
1879 (floating_point_assist_interrupt): Ditto.
1880 (perform_oea_interrupt): Ditto.
1881 (machine_check_interrupt): Ditto.
1883 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1885 * ppc-instructions (Move from Special Purpose Register): Support
1888 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1890 * debug.h, debug.c: Add "interrupts" trace option.
1892 * interrupts.c (data_storage_interrupt): Add tracing.
1893 (machine_check_interrupt): Ditto.
1894 (instruction_storage_interrupt): Ditto.
1895 (alignment_interrupt): Ditto.
1896 (program_interrupt): Ditto.
1897 (floating_point_unavailable_interrupt): Ditto.
1898 (system_call_interrupt): Ditto.
1899 (floating_point_assist_interrupt): Ditto.
1900 (deliver_hardware_interrupt): Ditto.
1902 * interrupts.c (program_interrupt): For UEA mode, halt the
1903 processor - so that the current state is saved - instead of
1905 (floating_point_unavailable_interrupt): Ditto.
1906 (floating_point_assist_interrupt): Ditto.
1908 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1910 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1913 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1915 * ppc-instructions (Store Multiple Word, Load Multiple Word):
1918 * tree.c (print_properties): For an array consider printing it out
1919 as an integer array.
1921 * hw_memory.c (hw_memory_init_address): If an "available" property
1922 is present, use that to initialize the available memory instead of
1923 using the reg property.
1925 * emul_generic.c (emul_add_tree_hardware): Add "available"
1926 property to memory device.
1928 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1930 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1932 * device.c (device_instance_call_method): Was only looking at the
1935 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1936 (hw_disk_block_size): Implement block-size method.
1937 (hw_disk_max_transfer): Implement max-transfer method.
1939 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1941 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1943 (chirp_emul_instance_to_package): Ditto.
1944 (chirp_emul_method): Ditto.
1945 (chirp_emul_read): Ditto.
1946 (chirp_emul_write): Ditto.
1947 (chirp_emul_close): Ditto.
1948 (chirp_emul_seek): Ditto.
1949 (chirp_emul_package_to_path): Ditto (for phandle).
1950 (chirp_emul_package_to_path): Return the length.
1952 * psim.c (psim_merge_device_file): Allow continuation lines.
1954 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1956 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1959 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1960 members - *_cell not host dependant int.
1962 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1964 * interrupts.c (perform_oea_interrupt): Print additional
1965 information if a double interrupt is encountered.
1967 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1969 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1970 being specified with the -f option.
1971 (psim_merge_device_file): Correct check for end of string.
1973 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1975 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1976 list of devices. Return zero to the client instead.
1977 * emul_chirp.c (chirp_emul_child): Ditto
1978 * emul_chirp.c (chirp_emul_parent): Ditto
1980 * device.c (device_root): Assert assumption about the device being
1983 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1985 * emul_chirp.c (emul_chirp_create): Add description property to
1986 each significant node in the device tree.
1987 * emul_bugapi.c (emul_bugapi_create): Ditto.
1989 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1991 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1992 tempoary two byte buffer. Single byte read with fgets will not
1994 * main.c: Include errno.h.
1995 (sim_io_read_stdin): For non-STDIO, make it work.
1997 * emul_chirp.c (chirp_emul_read): Return the correct error status.
1999 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2001 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
2002 Instead have each emulation default it to DO_USE_STDIO.
2004 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
2005 mechanism as the default if enabled or if nothing selected.
2007 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
2009 (sim_io_write_stdout): Ditto.
2010 (sim_io_write_stderr): Ditto.
2011 * main.c (sim_io_write_stdout): Ditto.
2012 (sim_io_write_stderr): Ditto.
2013 (sim_io_read_stdin): Ditto.
2015 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2017 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
2019 * vm.c (om_effective_to_virtual): Ditto.
2020 * events.c (event_queue_schedule{,_after_signal}): Ditto.
2021 (event_queue_{deschedule,process}): Ditto.
2022 * hw_htab.c (htab_decode_hash_table): Ditto.
2023 (htab_map_{page,binary}): Ditto.
2024 * hw_opic.c (hw_opic_init_data): Ditto.
2025 (handle_interrupt): Ditto.
2026 (do_processor_init_register_{read,write}): Ditto.
2027 (write_vector_priority_register): Ditto.
2028 ({read,write}_destination_register): Ditto.
2029 (do_suprious_vector_register_{read,write}): Ditto.
2030 (do_current_task_priority_register_N_{read,write}): Ditto.
2031 (do_timer_frequency_reporting_register_{read,write}): Ditto.
2032 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
2033 (do_ipi_N_dispatch_register_write): Ditto.
2034 (do_vendor_identification_register_read): Ditto.
2035 (do_feature_reporting_register_N_read): Ditto.
2036 (do_global_configuration_register_N_{read,write}): Ditto.
2037 * hw_phb.c (hw_phb_attach_address): Ditto.
2038 (hw_phb_unit_decode): Ditto.
2039 (hw_phb_address_to_attach_address): Ditto.
2040 (hw_phb_io_{read,write}_buffer): Ditto.
2041 * hw_ide.c (setup_fifo): Ditto.
2043 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
2044 files via -I<dir> instead of using "../../gdb/" prefixes.
2046 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2048 * debug.h: Add tracing for the pal device.
2051 * emul_chirp.c (chirp_emul_getprop): More tracing.
2053 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2055 * device.h, device.c (device_find_ihandle_runtime_property): New
2056 function. Reverse of add_ihandle_runtime property.
2057 (device_init_runtime_properties): Use it.
2059 * device.c (find_property_entry): New function returns the
2060 internal property spec.
2061 (device_set_property): Use.
2062 (device_find_property): Use.
2064 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2066 * psim.c (psim_merge_device_file): Strip newline from device
2069 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2071 * hw_htab.c (htab_map_binary): For overlapping text / data maps
2072 merge the two. Also check that the merge is safe.
2074 * emul_chirp.c (emul_chirp_create): Add a description property to
2075 the pte's so that they are easier to identify.
2077 (emul_chirp_create): Don't specify a load address for the CHRP
2078 image. Always use the values specified by the executable.
2080 * hw_htab.c (htab_map_page): Abort if a duplicate map is
2083 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2085 * hw_htab.c (htab_map_page): Formatting.
2087 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
2088 method name when handling the client call. Also check for other
2091 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
2092 etc to be overriden.
2094 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2096 * os_emul.c (os_emul_create): Use tree find property instead of
2097 device find property - sigh.
2099 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2101 * 961205: Release snapshot 961205.
2103 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2105 * configure.in (hostbitsize, bitsize): Fix typo in error message -
2106 cannot contain a comma.
2107 (sim-warnings): Check for more potential errors.
2109 * psim.c (psim_usage): Add -f <file> option. Specifies a file
2110 containing device tree specifications that should be merged into
2113 * configure.in: Sort options.
2114 * configure: Rebuild
2116 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2118 * psim.c (psim_usage): Add -n option - specify number of
2121 * emul_chirp.c: Add description.
2122 * emul_bugapi.c: Ditto.
2123 * emul_unix.c: Ditto.
2124 * emul_netbsd.c: Ditto.
2126 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2128 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
2129 encountered, assume that it is the single disk.
2130 * hw_pal.c: Add generic device/size decode methods.
2132 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
2133 property entry when determining the nvram size.
2135 * hw_core.c: Add generic address/size decode methods.
2137 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
2138 nonzero status from client functions.
2140 * main.c (error): Always include a cariage return when writing out
2143 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
2145 * sim_calls.c (sim_resume): Reset sim_should_run if single
2148 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2150 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
2153 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
2154 Attach the pal - for I/O - as a pseudo device haning from the
2157 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
2158 the device tree at the address of the hi-mem interrupt vector
2159 addreses. Used by bugapi to establish its trap instructions.
2161 * debug.h: Add a new macro DITRACE for tracing device instances.
2163 * debug.h: Extend the DTRACE macro so that it can also tests for
2164 device specific tracint.
2166 * device.h, device.c (device_trace): Add method to determine
2167 device specific tracing.
2168 (device_init_address): Set the devices tracing level.
2170 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2172 * tree.h, tree.c (tree_device): New files - separate out the
2173 device parser and other tree operations from the device.
2175 * inline.h, inline.c (INLINE_TREE): Add.
2176 * device.h, device.c (device_tree_add_parsed): Delete.
2177 * Makefile.in (tree.c): Add rules for new file.
2178 * Makefile.in: Better order the emul_* files.
2180 * emul_generic.c (emul_add_tree_hardware): Update.
2181 * emul_netbsd.c (emul_netbsd_create): Update.
2182 * emul_unix.c (emul_unix_create): Ditto.
2183 * emul_chirp.c (emul_chirp_create): Ditto.
2184 * emul_bugapi.c (emul_bugapi_create): Ditto.
2185 * psim.c (psim_tree): Ditto.
2188 * emul_generic.h: Include tree.h
2189 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
2191 * device.h, device.c (device_root): New function - returns the
2195 * device.h, device.c (device_clean): New function, clean up device
2196 ready for next simulation run. This includes things like deleting
2197 interrupt edges and properties created during the simulation and
2198 also scrubbing any pre-defined properties.
2199 * tree.c (tree_init): Use.
2201 * device.h, device.c (device_init_static_properties): New
2202 function. Initialize any static predefined properties. By static
2203 we mean those that have values that can be determined before the
2204 device tree initialization has started.
2205 * tree.c (tree_init): Use.
2207 * device.h, device.c (device_init_address): Add code to
2208 check/verify the devices #address-cells and #size-cells.
2209 (device_add_integer_property): Delete corresponding code.
2210 (device_nr_address_cells, device_nr_data_cells): Check for
2211 property when returning value.
2213 * device.h, device.c (device_init_runtime_properties): New
2214 function. Initialize those properties that are not `static'. At
2215 present the only such property is the ihandle.
2216 * tree.c (tree_init): Use.
2218 * device.h, device.c (reg, ranges): Rework these so that they use
2219 an array of the fundamental type - single reg or single range
2222 * device.h, device.c (device_add_ihandle_runtime_property):
2223 Re-implement the adding of an ihandle during tree construction so
2224 that it better fits in with device initialization.
2226 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2228 * device.h, device.c (device_ioctl): Add additional argument -
2229 request - so that the caller must always specify the type of
2232 * device_table.h: Update.
2233 * hw_trace.c (hw_trace_ioctl): Ditto.
2234 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
2235 * hw_init.c (hw_stack_ioctl_callback): Ditto.
2236 * psim.c (psim_options): Ditto.
2238 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2240 * BUGS: Updated a bit.
2242 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2244 * hw_opic.c: Finish - third round.
2246 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2248 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
2250 (hw_glue_io_write_buffer_callback): Ditto.
2252 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2254 * events.c (event_queue_process): Was incorrectly consuming future
2255 events on the queue when they should be left alone.
2257 * debug.h, debug.c (events): Add support for event queue tracing.
2258 * events.c: Add event tracing.
2260 * debug.h, debug.c: Order device trace options.
2262 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2264 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
2265 warnings generated by GCC.
2267 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2269 * sim-endian.h: Add LE versions of byte swap macros. Needed for
2270 PCI devices which are little-endian.
2272 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
2274 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2276 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
2277 so that it is implementing a 1-1 address map.
2279 * emul_generic.c (emul_add_tree_hardware): Adjust.
2281 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
2284 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2286 * device.c (split_find_device): Be tolerant of missing unit
2289 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2291 * basics.h (port_direction): New type, specify the direction of
2294 * device.h, device.c (device_interrupt_decode): Include
2295 specification of port direction in operations.
2296 (device_interrupt_encode): Ditto.
2298 * device_table.h: Add a direction field to the interrupt port
2301 * device.c (device_tree_add_parsed): Specify port direction.
2303 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2305 * hw_opic.c: Finish - second round.
2307 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2309 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
2310 to be specified as an array which allows 64bit addresses.
2312 * device.c (device_find_integer_array_property): New function.
2313 Simplify the querying of elements of an integer array.
2314 (device_add_integer_property, device_find_integer_property):
2315 Update to correctly use the cell type.
2317 * vm.c (om_unpack_sr): Clarify shifting comment.
2318 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
2320 * emul_chirp.c (emul_chirp_create): Initialize the segment
2323 * vm.c (om_effective_to_virtual): Trace segment register use.
2325 * hw_htab.c (htab_map_page): Print out the pteg base address to
2326 simplify cross checking between vm and the htab.
2327 (htab_decode_hash_table): Use device_error instead of error.
2328 (htab_map_page): Ditto.
2329 (htab_dma_binary): Ditto.
2330 (htab_map_binary): Ditto.
2331 (htab_init_data_callback): Ditto.
2333 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2335 * interrupts.h: Clarify what the optional instruction program
2336 interrupt is - a subset of illegal instruction program interrupt.
2338 * interrupts.c (program_interrupt): For UEA mode, clarify what an
2339 optional instruction program interrupt is.
2340 (program_interrupt): For OEA mode, as per spec, generate an
2341 illegal instruction program interrupt when an optional instruction
2344 * gen-semantics.c (print_semantic_body): Delete code
2345 differentiating between an unimplemented floating point and normal
2346 instruction. Instead, such a case can be handled explicitly.
2348 * ppc-instructions (store floating-point as integer word indexed):
2350 (Floating Convert to Integer Doubleword): Make the floating point
2351 assist interrupt explicit.
2352 (Floating Convert To Integer Doubleword with round towards Zero):
2354 (Floating Convert To Integer Word): Ditto
2355 (Move From FPSCR): Ditto.
2356 (Move to Condition Register from FPSCR): Ditto.
2357 (Move To FPSCR Fields): Ditto.
2358 (Move To FPSCR Field Immediate): Ditto.
2359 (Move To FPSCR Bit 0): Ditto.
2360 (Move To FPSCR Bit 1): Ditto.
2362 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2364 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
2365 breaking up transfers.
2367 * corefile.c: Adjust arguments so that the client server
2368 relationship is clarified.
2370 * hw_glue.c (hw_glue_init_address): Update so it can be attached
2373 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
2374 looking for things like overflow/underflow.
2376 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2378 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
2379 PAL device instead of the IOBUS. The disk must be attached to a
2382 * hw_disk.c (hw_disk_init_address): Just use the unit address
2383 directly in the attach - the rest isn't relevant.
2385 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2387 * configure.in (sim-hardware, sim-packages): Allow additional
2388 hardware and packages to be prefixed as well as appended.
2390 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
2391 packages when building them. Consequently, a user can override a
2392 standard device by prefixing their own version.
2394 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
2396 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2398 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
2400 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
2401 (mon_print_info): Correct typo regarding # of unaligned reads and
2402 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
2405 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2407 * configure.in (AC_CHECK_FUNCS): Add access.
2408 * config{.in,ure}: Regenerate.
2410 * emul_unix.c (do_unix_nop): System call that always succeeds.
2411 (do_unix_access): Support access system call.
2412 (solaris_descriptors): Make sigaltstack and sigaction nops.
2413 ({solaris,linux}_descriptors): Add support for access.
2415 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
2417 * Makefile.in (clean): Move config.log to distclean.
2419 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2421 * corefile-n.h (core_map_write_N): Improve abort messages.
2423 * device.h, device.c (device_attach_address): Remove unused name
2425 (device_detach_address): Ditto.
2426 * device_table.h, device_table.c: Update.
2427 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
2428 * hw_nvram.c (hw_nvram_init_address): Ditto.
2429 * hw_memory.c (hw_memory_init_address): Ditto.
2430 * hw_vm.c (hw_vm_init_address_callback): Ditto.
2431 (hw_vm_attach_address): Ditto.
2432 (hw_vm_add_space): Ditto.
2433 * hw_init.c (update_for_binary_section): Ditto.
2434 * hw_core.c (hw_core_attach_address_callback): Ditto.
2436 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
2437 configurable parent busses.
2439 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2441 * device_table.c (generic_device_size_to_attach_size): Provide
2442 limited support for multi-cell sizes.
2443 (generic_device_address_to_attach_address): Ditto for addresses.
2445 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2447 * device.c (device_add_integer_property): Check for setting of
2448 #address-cells and #size-cells properties. For these, update the
2449 corresponding device values.
2450 (device_nr_address_cells, device_nr_size_cells): Use the value
2451 from the device instead of the property.
2453 * hw_core.c: Use generic address and size conversions for the top
2456 * hw_memory.c (hw_memory_init_address): Tolerate case where
2457 #address and #size cells is greater than 1.
2459 * device.c (device_tree_print_device): Clean out printing of
2462 * device.c (split_device_specifier): Don't detect comments here -
2463 "#" can be a valid prefix - eg #size-cells.
2465 * psim.c (psim_merge_device_file): Suppress comments and blank
2468 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
2469 pal unit address. Add the property /#address-cells to the root of
2472 * device.c (device_template_create_device): Check that the unit
2473 address was successfully parsed.
2475 * device_table.c (generic_device_unit_decode): Rewrite to better
2476 handle multi-cell addresses.
2477 (generic_device_unit_encode): Ditto.
2479 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
2480 longer need the explicit array type - the parser takes care of it.
2482 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
2485 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2487 * hw_ide.c: New file. Model of a basic IDE interface attached to
2490 * configure.in (hardware): Add the ide device to the default
2492 * configure: Regenerate.
2494 * debug.h, debug.c: Add tracing option for the IDE device.
2496 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2498 * hw_phb.c, hw_phb.h: New files - implement a PHB.
2500 * configure.in (hardware): Add the phb to the list of devices to
2503 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2505 * hw_com.c: Review description.
2508 * hw_eeprom.c: Ditto.
2512 * hw_com.c: Update event handling.
2514 * hw_disk.c: Implement tracing.
2516 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2518 * device_table.c (generic_device_init_address): Use
2519 assigned-addresses property in preference to any other reg
2522 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2524 * device.h, device.c (device_find_ranges_property): New function.
2525 Simplify the manipulation of "ranges" properties.
2527 * device.c (device_add_parsed): Extend to include support for the
2530 * device.c (device_add_parsed): Add assigned-addresses to the list
2531 of reg type properties.
2533 * device.c (device_tree_print_device): Add code to format and
2534 print a ranges property.
2536 * device.h, device.c (device_nr_address_cells,
2537 device_nr_size_cells): New functions. Determine the values of the
2538 standard properties #address-cells and #size-cells. Both of which
2539 are optional and have default values of two and one respectfuly.
2540 Previously, code that determined #address-cells was incorrectly
2541 using a value of one.
2543 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2545 * debug.h, debug.c: Sort debug options, Add entries for the
2548 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2550 * ppc-instructions (Floating Select): Add support for fsel unless
2551 model is 601. Allow user to filter out instruction unless -Fs is
2553 (Store Floating-Point as Integer Word Indexed): Raise optional
2554 instruction program abort. Allow user to filter out instruction
2555 unless -Fs is passed to igen.
2556 (Floating Square Root{, Single}): Ditto.
2557 (Floating Reciprocal Estimate Single): Ditto.
2558 (Floating Reciprocal Square Root Estimate): Ditto.
2560 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
2562 * configure: Regenerate.
2564 * interrupts.h (program_interrupt_reasons): Add
2565 optional_instruction_program_interrupt.
2567 * interrupts.c (program_interrupt): Call error with more detailed
2568 information on program interrupts, particularly in user mode. Add
2569 support for optional_instruction_program_interrupt.
2571 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2573 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
2575 * debug.h, debug.c (trace_glue_device): Add tracing support for
2576 the interrupt glue logic device.
2578 * configure.in (hardware): Add glue device.
2579 * configure: Regenerate.
2581 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2583 * device.c (device_tree_parse_integer_property): New function,
2584 parse a list of integers as an array property.
2585 (device_tree_add_parsed): Call it.
2587 * device.c (device_tree_parse_string_property): New function,
2588 parse a list of strings as a string property (with embeded
2589 null's). For moment, don't try to implement a complext string
2591 (device_tree_add_parsed): Call it.
2593 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2595 * hw_opic.c: New file. OpenPIC interrupt controller.
2597 * configure.in (hardware): Add opic device.
2598 * configure: re-generate.
2600 * hw_pic.c: Delete, replaced with hw_opic.c.
2602 * debug.h, debug.c: Add debug option for OpenPIC device. -
2605 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2607 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
2608 now the file that does all the inlining.
2610 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
2611 library source code that could be involved in an inlining. Make
2612 idecode.o only dependant on the inlined library source code.
2614 * Makefile.in (LIB_OBJ): Put options last on the list so that it
2617 * std-config.h (DEVICE_INLINE): Only inline locals when the
2618 default is to inline.
2620 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2622 * hw_htab.c (htab_sum_binary): Determine the real-base for the
2625 * hw_htab.c (htab_map_binary): Depending on the value of the
2626 load-base, either map the program in as a contiguous section or as
2627 separate sections controled by th binaries lma values.
2628 (htab_init_data_callback): Ditto.
2630 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2632 * emul_generic.c (emul_add_tree_options): Remove load-base option.
2634 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
2635 struct. Don't require the load_base field to be present - just
2636 issue warning - it is a recent addition.
2637 (emul_chirp_create): Support both virtual and physical modes.
2639 * emul_chirp.c (emul_chirp_create): Add a stack initialization
2640 property so that any arguments specified on the command line can
2641 be passed on to user programs.
2643 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
2644 argument passing to the pseudo device stack.
2646 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2648 * device.c (device_error): Make it more tolerant to incomplete
2651 * hw_init.c (hw_data_init_data_callback): Extend the data device
2652 so that it can perform initialization operations either dma or a
2653 more complex instance open, seek, write operation.
2654 * hw_init.c: Update the description of the data device to reflect
2657 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2659 * device.c (device_event_queue_schedule,
2660 device_event_queue_deschedule, device_event_queue_time): Have the
2661 device object export the event operations. Making these available
2662 from the device object should hopefully simplify writing device
2665 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2667 * configure.in (sim-hardware): Add eeprom device to default build.
2669 * hw_eeprom.c: Rewrite so it works.
2671 * debug.h, debug.c: Add tracing support for the eeprom and com
2674 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2676 * debug.h: Add disklabel-package and disk-device trace options.
2677 debug.h (PTRACE): Add macro to simplify tracing in packages.
2679 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2681 * device.c (device_create_instance_from): Tighten up loop
2682 searching for device instances.
2683 (device_instance_delete): Ditto.
2684 (device_instance_delete): Only leaf instances need to be removed
2685 from a devices list of active instances.
2687 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2689 * hw_disk.c: Add the cdrom as an alias.
2691 * pk_disklabel.c (disklabel_delete): Implement, remembering to
2692 delete the raw disk instance while we're at it.
2694 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
2695 little bit more - still a long way to go.
2697 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
2698 new head position after a read or write.
2700 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2702 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
2703 the internal buffer.
2705 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2707 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
2708 in the correct order.
2710 * emul_chirp.c (chirp_emul_call_method): Correct computation for
2711 the address of the first stack argument passed in from the client
2714 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2716 * words.h: Add new types signed_cell and unsigned_cell which
2717 correspond to the signed and unsigned IEEE 1275 memory locations.
2718 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
2719 memory cell, replace uses of unsigned32 with unsigned_cell.
2720 * device_table.h: Ditto.
2722 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2723 convert cell sized values to from big endian.
2724 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2725 use these new macros.
2727 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2729 * device.c (device_tree_add_parsed): Detect and report an
2730 interrupt being attached to an invalid device. Was dumping core.
2732 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2734 * device.h, device.c (device_address_to_attach_address,
2735 device_size_to_attach_size): New functions. Convert a devices
2736 unit address or unit size structure into a form suitable for
2737 passing on to the attach and detach functions.
2738 * device_table.h: Add extra methods to device table.
2740 * device.h, device.c (device_find_reg_property): New function.
2741 For a reg type property, return the selected address + size
2742 tupple, along with a positive success status. Add a reg_property
2743 to the list of property types.
2744 * (device_tree_add_parsed): Make array properties with the name
2745 reg or alternate-reg of type reg_property.
2747 * hw_memory.c (hw_memory_init_address): Rewrite to use new
2748 find_reg_property method.
2749 * hw_nvram.c (hw_nvram_init_address): Ditto.
2751 * device.c (device_tree_print_device): Add code to print out a reg
2754 * device_table.c (generic_device_address_to_attach_address,
2755 generic_device_size_to_attach_size ): New functions. Generic
2756 functions for converting between unit and attach address or size.
2758 * device_table.c (generic_device_init_address): Rewrite to use the
2759 new find_reg and address convert functions. Look for both reg and
2760 alternate-reg properties.
2762 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2764 * hw_com.c: New file. A '550 serial device that can quickly be
2765 attached to any bus.
2766 * configure.in (enable-sim-hardware): Add the com device.
2767 * configure: re-generate.
2769 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2771 * device.c (device_tree_verify_reg_unit_address): New
2772 function. Check that the unit address as specified by the reg
2773 property correctly corresponds to any unit address previously
2774 specified by the devices name.
2775 (device_tree_add_parsed): When adding a reg property, verify
2776 that the unit-address - first value of property - correctly
2777 matches any previous value specified when creating the device
2780 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2782 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2784 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2786 * device.c (device_full_name): Cast strdup to char *, since AIX
2787 3.2.5 mistakenly declares the function to be const char *.
2788 (device_create_from): Ditto.
2789 (device_create_instance_from): Ditto.
2790 (device_add_property): Ditto.
2792 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2794 * debug.c (trace_option): For -t all, do not set the
2795 trace_dump_device_tree flag, so that the simulator is run.
2797 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2799 * Makefile.in (options.o): Depend on defines.h.
2800 (defines.h): New rule, go through config.h and make strings of all
2801 of the #define HAVE_xxx macros.
2802 (distclean): Remove defines.h.
2804 * options.c (print_options): Print whether many of the
2805 configuration macros are defined.
2807 * main.c (main): If -t options and no filename, just print the
2808 options, and don't print the usage message.
2810 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2812 * configure.in: Test whether /dev/zero works on the system, and if
2813 it does, define HAVE_DEVZERO.
2814 * configure: Regenerate.
2816 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2817 if we don't have a working /dev/zero on the system.
2819 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2820 defined, don't add disk support.
2821 (emul_bugapi_do_diskio): Ditto.
2822 (emul_bugapi_instruction_call): Ditto.
2824 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2826 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2827 defined, make sure HAVE_TCGETATTR is #undef'ed
2829 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2831 * std-config.h (REGPARM): Only define REGPARM attributes if using
2832 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2833 a x86 platform, define REGPARM as nothing.
2835 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2838 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2840 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2842 * gen-idecode.c: Ditto.
2844 * gen-idecode.c (print_idecode_table): Comment out check for
2845 switch/table combination until a bug with it is fixed.
2847 * ppc-opcode-goto: New file. Like complex and flat but uses
2848 goto-switch instead of padded-switch for the tables.
2850 * gen-idecode.c (print_goto_switch_name): New function.
2851 (print_goto_switch_table_leaf): New function.
2852 (print_goto_switch_break): New function.
2853 (print_goto_switch_table): New function. Prints a jump table
2854 that can be jumped into instead of a switch statement.
2856 * gen-idecode.c (*switch_*): As an option output a switch that is
2857 implemented using a jump table but only if the switch is not
2860 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2862 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2863 * configure: Regenerate.
2865 * device.c (device_instance_call_method): Fixup format message in
2866 error case. Return 0 in case of error to shut up compiler
2869 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2871 * device_table.c (generic_device_unit_decode): Require a comma
2872 between elements of a unit address.
2874 * device.c (device_tree_print_device): For reg, alternate-reg and
2875 ranges properties use special print functions.
2876 (device_print_ranges_property): Print formatted ranges property.
2877 (device_print_reg_property): Print formatted reg property.
2879 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2881 * device.c (device_tree_add_parsed): For reg, ranges and
2882 alternate-reg properties use a special parser.
2883 (device_tree_parse_reg_property): New function to parse a reg
2885 (device_tree_parse_ranges_property): New function to parse a
2887 (device_encode_unit): Wrapper for encode_unit callback.
2888 (device_decoce_unit): Wrapper for decode_unit callback.
2890 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2892 * device_table.h (device_instance_callbacks): Relace the claim and
2893 release methods with a more general table mapping from method-name
2896 * device.c (device_instance_call_method): New function. Implement
2897 the OpenBoot call-method client interface. Attempts to locate the
2898 instances method in the callback table.
2899 (device_instance_claim, device_instance_release): Delete.
2900 Replaced with call-method and a lookup table.
2902 * emul_chirp.c (chirp_emul_call_method): Use the new device
2903 instance call method and let that handle a client claim call.
2905 * hw_htab.c (claim_memory): Wrapper function to call the memory
2906 devices "claim" method using the new device-instance call-method
2907 interface. Replaces the previous direct calls to claim.
2908 (htab_map_region): Use claim_memory.
2909 (htab_init_data_callback): Ditto.
2911 * hw_memory.c (hw_memory_instance_claim): Update function
2912 interface so that it is compatible with call-method.
2913 (hw_memory_instance_release): Ditto.
2914 (hw_memory_instance_methods): New table of memory specific
2915 methods claim and release. Add to the hw_memory_callback
2918 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2920 * psim.c (psim_init): Back out of change to initial value of
2923 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2925 * sim_callbacks.h (sim_io_printf_filtered): Replace
2926 printf_filtered with a local simulator specific version. Add
2927 #define printf_filtered to simplify updating of existing code.
2929 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2930 sim_io_write_stderr): New functions. Read / write to the
2931 simulations stdin and stdout and stderr interfaces. Merge in code
2932 from hw_pal that previously handled async I/O.
2933 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
2934 flush_stdoutput to simplify updating of existing code.
2936 * hw_pal.c (scan_hw_pal, write_hw_pal,
2937 hw_pal_instance_write_callback): Use the new sim_io functions.
2939 * main.c: Implement standalone versions of the new sim_io
2940 functions. Include support for async I/O.
2941 * sim_calls.c: Ditto. This time using the gdb callback table.
2943 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2944 stdio configuration so that it works in the same way as the rest
2946 * psim.c (psim_create): Initialize current_stdio from the device
2948 * emul_generic.c (emul_add_tree_options): Enter a default value
2949 for use-stdio in the device tree.
2951 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2953 * gen-idecode.c (print_jump): Was always generating a jump back to
2954 idecode. Only necessary at tail of semantic code.
2955 (print_jump): Was always setting the processor's cia, even during
2956 startup when the processor was still undefined.
2957 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2960 * options.c (print_options): Add printing of WITH_REGPARM and
2963 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2964 (disabled) values if not defined.
2966 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2968 * ppc-cache-rules (cache): Change RS and RB to cache instead of
2969 compute. The block move instructions use them.
2971 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2973 (CR_FIELD): New macro, extract specific CR register.
2974 (FPSCR_FIELD): New macro, extract specific FPSCR register.
2976 * registers.h (GPR): New macro, simplify accesses to GPR[i].
2978 * bits.c (INSERTED): Covert INSERTED macro into a function.
2979 (EXTRACTED): Conditionally compile on correct bit size macro.
2981 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2983 * ppc-instructions: With hints from Paul Martin, type in missing
2984 some instruction semantics. Leave disabled for the moment.
2985 (Load Multiple Word): Ditto.
2986 (Store Multiple Word): Ditto.
2987 (Load String Word Immediate): Ditto.
2988 (Load String Word Indexed): Ditto.
2989 (Store String Word Immedate): Ditto.
2990 (Store String Word Indexed): Ditto.
2991 (Move to Condition Register from XER): Ditto.
2992 (Move From Condition Register): Ditto.
2993 (Move From FPSCR): Ditto.
2994 (Move to Condition Register from FPSCR): Ditto.
2995 (Move To FPSCR Field Immediate): Ditto.
2996 (Move To FPSCR Fields): Ditto.
2997 (Move To FPSCR Bit 0): Ditto.
2998 (Move To FPSCR Bit 1): Ditto.
3000 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3002 * std-config.h (SEMANTICS_INLINE): By default, mask out the
3003 inlining of semantic functions from DEFAULT_INLINE. Almost all
3004 configurations call the semantic code via a pointer so there is
3007 * std-config.h (ICACHE_INLINE): Ditto.
3009 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3011 * configure.in (sim_regparm): Add configuration option for
3012 enabling GCC's regparm attribute.
3013 * (sim_stdcall): Add configuration option for enabling GCC's
3016 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
3018 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
3020 * std-config.h (REGPARM): Extend construction of REGPARM macro so
3021 that it can include __stdcall__ function attribute.
3023 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
3025 * options.c (print_options): Include SUPPORT_INLINE in information
3028 * gen-idecode.c (print_run_until_stop_body): Only generate loop
3029 termination test if creating idecode_run_until_stop. Push the
3030 loop termination test back into each alternative branch.
3032 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3034 * gen-icache.c (print_icache_function): Have the cache function
3035 always update the cache_entries semantic and address fields.
3037 * gen-idecode.c (print_idecode_switch_illegal): Include a break
3038 when generating illegal instructions. This was commented out
3039 which is a hangover from looking a at switch statements generated
3040 using indirect jumps.
3042 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3044 * igen.c (print_my_defines): Replaces print_define_my_index.
3045 Print both a definition for MY_INDEX and MY_PREFIX.
3046 * gen-icache.c (print_icache_function): Adjust.
3047 * gen-idecode.c (print_jump_insn): Adjust.
3048 * gen-semantics.c (print_c_semantic): Adjust.
3050 * gen-support.c (gen_support_h): Add optional include to created
3051 support.h so that, like cpu, it is optionally inlined for all
3052 modules that include it.
3053 * inline.h, inline.c: Adjust so that support.[hc] is handled the
3056 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
3057 name for a lable and then branch to it.
3059 * ppc-instructions (convert_to_integer, Floating Round to
3060 Single-Precision, Floating Convert from Integer Doubleword): Use
3061 LABEL and GOTO instead of the recently added switch statements.
3063 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
3065 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
3068 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3070 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
3071 * (--enable-sim-inline): Reorder patern matching of arguments so
3072 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
3074 * configure: rebuild.
3076 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
3078 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
3079 configuration options. Let the user specify the packages or
3080 hardware devices that are to be included in the build. Makes it
3081 possible for user packages to be specified.
3083 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
3084 hardware instead of checking it using ls. configure.in should
3085 have taken care of any problems.
3086 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
3088 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
3090 * psim.c (psim_options): Enter the argument to the memory size
3091 option directly into the device tree. Was using atol() which is
3092 dangerously non portable.
3094 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
3096 * configure.in (icache): Extend icache flag to include an insn
3097 option. If specifyed the insn - aka instruction - is included in
3098 the instruction cache. Make this the default.
3099 * configure: re-generate.
3101 * igen.c (main), igen.h: Add option -S - inSn - for specifying
3102 that the instruction should be included in the icache.
3104 * gen-icache.c (print_icache_body): If enabled, output code to put
3105 the instruction into the icache.
3106 (print_icache_struct): If enabled, add insn to the icache struct.
3108 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
3110 * Makefile.in (BUILD_CFLAGS): Include -g when building the
3113 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
3115 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
3116 the strict-alignment option when hardwired for non-strict
3119 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3121 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
3123 * ppc-instructions: Adjust so that references are to MY_INDEX and
3126 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3128 * gen-idecode.c: Output the complete run_until_stop function
3129 instead of just the code to handle a single instruction issue.
3130 * : Have the generated idecode.c include inline.c (instead of psim.c).
3132 * std-config.h: Change psim.c so that it isn't inlined (as this is
3135 * psim.c (run_until_stop): Delete the old run_until_stop function
3136 instead calling the idecode_run and idecode_run_until_stop
3137 functions that gen-idecode.c is now creating.
3139 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3141 * dgen.c: Maintenance - update to use new features found in lf.c.
3143 * filter_filename.c (filter_filename): Maintenance - make the
3146 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3148 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
3149 eliminate trace statements.
3151 * debug.c: Change trace format so that it is consistent
3152 (file:line-nr) with CC's error output.
3154 * gen-itable.c (itable_c_insn): Add the source file name and
3155 source line number to the instruction's informational entry.
3157 * debug.c (ITRACE): Use the itable (and my_index) to get the
3158 current instructions name and source line number.
3160 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
3161 match new interface.
3163 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
3164 corresponding call to ITRACE so that it still matches.
3166 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
3167 of ITRACE. The CPP line directives would have previously set the
3168 line-nr and file name so ITRACE isn't needed.
3170 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3172 * gen-idecode.c (print_jump_until_stop_body): New function and
3173 idecode generation option. Instead of generating and calling
3174 separate functions containing the semantic and icache code
3175 generate a single monolythic function and use goto's (and GCC's
3176 indirect jump) to move between code blocks.
3178 * Makefile.in: Add sim_jump flag to those passed to igen.
3180 * configure.in: New option --enable-sim-jump (default disabled)
3182 * ppc-instructions: Eliminate any uses of labels and goto's.
3183 These result in duplicate declarations when a single flat function
3186 * ppc-opcode-jump: New file. Set of opcode rules useful when
3187 testing jumping idecodes.
3189 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3191 * gen-idecode.c: Optionally include the semantic code for an
3192 instruction in the function that is doing the decoding.
3194 * igen.c: Add option (-C) to generate semantics in the instruction
3197 * configure.in (--enable-sim-icache): Accept an option list such
3198 as 1024,define. Add a new choice to the list - semantic - which
3199 will cause igen to generate instruction decode functions that
3200 include the corresponding semantic code.
3202 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3204 * configure.in: New option --enable-sim-line-nr (default enabled).
3205 Enable/disable the inclusion of CPP line directives in the
3206 generated files. Such directives refer back to the source files
3207 used when generating the simulator code.
3209 * Makefile.in (sim_line_nr): Pass to igen.
3211 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3213 * igen.c (main): Revamp the options so that more letters are
3216 * configure.in: Adjust to match igen's revamped options
3218 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3220 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
3221 that they use the same technique as igen (ie a dummy targets
3222 tmp-pk and tmp-hw are created).
3224 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3226 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
3228 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3230 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
3231 out the loading of each of the tables from the rest of igen.
3232 * Makefile.in: Adjust.
3235 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
3236 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
3237 code creating each separate set of generated files.
3238 * Makefile.in: Adjust.
3241 * gen-support.[ch]: New files. Output the support functions (found
3242 in the ppc-instructions file) into a separate file.
3244 * inline.h, inline.c: Add.
3245 * std-config.h: Add.
3247 * ld-cache.c: Re-design the cache table format.
3248 * ppc-cache-rules: Update to new format.
3250 * ld-decode.c: Re-design the decode table format.
3251 * ppc-opcode-simple: Update to new format
3252 * ppc-opcode-complex: Ditto
3253 * ppc-opcode-flat: Ditto
3255 * filter.h, filter.c: New files. Separate the opcode filter table
3256 reading code from the rest of igen.c. Re-design the filter so that
3257 it works inclusivly not exclusivly.
3258 * igen.c: Remove the opcode filter table loading code.
3259 * Makefile.in (filter.o): Adjust
3260 * configure.in: Adjust filter flag so that default includes 32bit
3262 * ppc-instructions: Clean up filter fields so that only in use
3263 entries are specified (ie delete `be').
3265 * misc.c (name2i, i2name): New function. Map between a string and
3268 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3270 * sim_calls.c (sim_close): If simulator not created, skip printing
3273 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3275 * registers.c (register_description): Typo, insns not insn.
3277 * ppc-instructions (model_get_number_of_stalls): New model function,
3278 returns number of stalls for the specified processor.
3279 * psim.c (psim_read_register): Add call to new function
3280 model_get_number_of_stalls().
3282 * ppc-instructions (model_get_number_of_cycles): New model function,
3283 returns number of stalls for the specified processor.
3284 * psim.c (psim_read_register): Add call to new function
3285 model_get_number_of_cycles().
3287 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3289 * device_table.h: Don't pass the parent device into a devices
3290 create function. This makes the create function consistent with
3292 * device.c (device_template_create_device): Ditto
3293 * hw_pal.c (hw_pal_create): Ditto
3294 * hw_core.c (hw_core_create): Ditto
3295 * hw_vm.c (hw_vm_create): Ditto
3296 * hw_disk.c (hw_disk_create): Ditto
3297 * hw_nvram.c (hw_nvram_create): Ditto
3298 * hw_memory.c (hw_memory_create): Ditto
3299 * hw_cpu.c (hw_cpu_create): Ditto.
3301 * device.c (split_find_device): Allow a null initial parent device.
3302 (device_template_create_device): Ditto.
3304 * device.c (device_create_from): Make local (static) only used
3306 * device_table.h: typedef device_callbacks moved here (from
3307 device.h) where it belongs.
3309 * hw_core.c: New file. Implements just the core device using the
3312 * corefile.c: Moved all core device functions into the new
3313 hw_core.c file. core_device_create() disapears.
3315 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
3318 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3320 * hw_init.c: Correct typo in comment.
3322 * corefile.c (core_init): Remove any remaining references to a
3324 (core_map_find_mapping): Ditto.
3326 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3328 * corefile.c (core_init): Make function global so that other
3329 devices are able to use the full core object.
3331 * corefile.c (core_create, core_from_device): Break core_create
3332 into two functions. The first creates a core object, the second
3333 returns the core object associated with a core device.
3335 * corefile.c (core_device_create): Use core_create to make the
3338 * psim.c (psim_create): Use core_from_device() instead of
3341 * device.c (device_template_create_device): Make static as only
3342 needed by functions internal to device.c.
3344 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3346 * ppc-opcode-test-2: Remove description of fields.
3347 * ppc-opcode-complex: Ditto
3348 * ppc-opcode-flat: Ditto
3349 * ppc-opcode-simple: Ditto
3350 * ppc-opcode-stupid: Ditto
3351 * ppc-opcode-test-1: Ditto
3352 * ppc-cache-rules: Ditto
3354 * igen.c: Add description of files as a comment at the front.
3356 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3358 * configure.in: Check for whether the termios and termio
3359 structures are really defined, and whether or not, they define the
3361 * configure: Regenerate.
3363 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
3366 * emul_unix.c: Various changes to allow for building on systems
3367 with different termio and termios structures. If host has both
3368 termio and termios, just use termios. No longer include
3371 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3373 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3374 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3376 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3377 (AC_PROG_INSTALL): Added.
3378 * configure: Rebuilt.
3380 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3382 * corefile.h: Rewrite documentation so that it can be extracted and
3383 converted into texinfo (and hence ready for translation into html,
3387 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3389 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
3391 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
3393 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
3394 is the source of SEEK_SET.
3396 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3398 * psim.c (psim_options): Correct type of dummy arguments being
3399 passed to a device_ioctl call.
3401 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
3402 (write_stack_arguments): Ditto.
3403 * hw_trace.c: Instance callback entry no longer a table.
3405 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3407 * emul_unix.c (do_unix_umask): Cast printf argument.
3408 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
3410 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3412 * hw_init.c (update_for_binary_section): Abort if we find an
3413 .interp section, which indicates the need for shared libraries to
3416 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3418 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
3419 for time, gettimeofday, and getrusage system calls.
3420 ({solaris,linux}_descriptors): Add new system calls.
3421 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
3422 (do_get{,p}pid): Use pic_t types.
3424 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
3425 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
3426 * config{.in,ure}: Regenerate.
3428 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3430 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
3431 `ppc-elf' and `ppc-xcoff' for the stack-type.
3432 * emul_unix.c (emul_unix_create): Ditto.
3433 * emul_bugapi.c (emul_bugapi_create): Ditto.
3434 * hw_init.c: Reconize the new names.
3436 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
3437 call is used (no system parameter).
3439 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3441 * emul_unix.{h,c}: New files to provide Solaris and Linux system
3444 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
3445 (os_emul.o): Depend on emul_unix.h.
3446 (emul_unix.o): New dependency.
3448 * configure.in (--enable-sim-alignment): Add 0|default to mean set
3449 alignment to 0, which means use appropriate alignment for mode.
3450 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
3451 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
3452 * config.in: Regenerate.
3453 * configure: Regenerate.
3455 * emul_generic.c (emul_write2_status): New function to return
3456 results in r3 and r4 for Solaris system calls.
3457 (emul_do_system_call): If the system call is not support, but
3458 there is a string for the system call name, print out the string
3459 instead of the system call number.
3461 * emul_generic.h (emul_write2_status): Declare it.
3463 * emul_netbsd.c: Use /* */ around comment on #endif.
3465 * os_emul.c: Include emul_unix.h.
3466 (os_emulations): Add emulations for Solaris, and Linux.
3468 * psim.c (psim_usage): Add message about solaris, linux
3471 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3473 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
3475 * README: Correct PSIM's title
3477 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3479 * basics.h: New global type object_disposition, used to indicate
3480 the status of objects when things are restarted.
3482 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
3484 * device_table.h: Change the interrupt descriptor structure so
3485 that it includes an additional member - an upper bound on the
3486 interrupts by that name.
3488 * device.c (device_interrupt_decode): Allow a range of interrupt
3489 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
3491 * device.c (device_tree_print_device): Include a list of valid
3492 interrupt ports when listing supported devices.
3494 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
3496 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
3497 the interrupt net so that it uses int0 .. intN.
3499 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3501 * device.h, device.c (device_ioctl): Drop the system argument.
3502 Devices can not obtain this using the device_system() call.
3503 * device_table.h: Adjust accordingly.
3504 * hw_*.c: Adjust accordingly.
3505 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
3506 * psim.c (psim_options): Use a device_ioctl call to force the
3507 hw_trace device to update the trace options.
3508 * hw_trace.c: Replace the init function with an ioctl call. Adjust
3511 * psim.c (psim_init): Re-order initialization so that the
3512 os-emulation is initialized after the device tree. Without this,
3513 os-emul's are not able to create instances or access properties
3514 that contain an instance handle.
3516 * device.h, device.c (device_add_*_property): Make these functions
3517 internal to device.c. The user has access to the more generic
3518 device_tree_add_parsed function. Differentiate between the initial
3519 and current value for each property.
3520 * (clean_device_properties): New function that deletes any
3521 properties created after the start of a simulation and restores
3522 the initial value of any others (ignoring ihandles).
3523 * (init_device_properties): (Re)Initialize any properties that
3524 contain ihandles. create
3526 * (device_tree_init): Include calls to clean the device tree's
3527 properties and then initialize them. Document this in the device.h
3530 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3532 * interrupts.c (decrementer_interrupt): Always pend a decrementer
3533 interrupt even if it is not yet possible to deliver it.
3535 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
3537 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
3538 visable adjusting the arguments so that the interface is correct.
3539 (mon_print_info): Adjust calls.
3541 * registers.h, registers.c (register_description): Add phony
3542 cycle, insn and stall registers.
3544 * psim.c (psim_read_register): Return nr of instructions for given
3547 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3549 * hw_htab.c: New file. Extract contents from disk_table.c.
3550 Contains a device that, during initialization will create a
3551 PowerPC htab in memory.
3552 * hw_register.c: New file. Extract contents from disk_table.c.
3553 Contains a device that, during initialization, will parse its
3554 property list and use that to initialize various processor
3555 registers (not target specific).
3556 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
3557 a device that handles accesses to invalid virtual memory addresses
3559 * hw_init.c: New file. Extract contents from disk_table.c. Misc
3560 devices that can initialize memory from a file.
3561 * hw_trace.c: New file. Extract contents from disk_table.c.
3562 Configure trace options from property values.
3564 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
3565 hw_trace.c): Add new device files.
3567 * device_table.c: Remove above code, now in separate independant
3570 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3572 * hw_disk.c: New file. Disk and CDROM device.
3574 * Makefile.in (hw_disk.o): Add device hw_disk.c.
3576 * pk_disklabel.c: New file. Implement the miss-named disk-label
3579 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
3582 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
3583 they are re-created when the makefile is updated.
3585 * emul_generic.c (emul_add_tree_hardware): Add a disk device
3586 (below the iobus) to the device tree. Include an ihandle of
3587 the disk as /chosen/disk.
3589 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
3590 output and (new) disk handles yet.
3591 * (emul_bugapi_init): Initialize the input, output (and just added)
3593 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
3594 what I think the behavour is).
3595 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
3596 i/o bug call. For RETURN call, exit using gpr[3]'s status even
3597 though this isn't part of the spec - makes it possible for machine
3598 code to signal the aporting of a simulation run.
3600 * emul_chirp.c (chirp_emul_call_method): Add support for the
3601 claim/release methods.
3602 * (chirp_emul_exit): Add an optional exit status argument to
3603 the exit method. Makes it possible for chirp emul simulations
3604 to abort upon an error.
3605 * device.h, device.c (device_instance_claim,
3606 device_instance_release): New methods for claiming and releasing
3608 * hw_memory.c: add claim and release memory methods.
3609 * hw_*: Use the claim memory method when allocating physical
3612 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3614 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
3615 time when updating the clock.
3617 * hw_nvram.c: Tidy up documentation
3619 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3621 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
3622 macros to determine whether or not the appropriate st_<xxx> fields
3623 exist in the stat structure.
3624 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
3625 the real basic ones like open, read, write, etc.
3626 * config{.in,ure}: Regenerate.
3628 * emul_netbsd.c: Add support for missing system calls, and/or
3629 missing stat fields.
3630 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
3633 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
3635 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
3636 F_SETFL not defined.
3638 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3640 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
3643 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3645 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
3646 * config{.in,ure}: Regenerate.
3647 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
3650 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3652 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
3655 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
3657 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
3658 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
3661 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3663 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
3664 fgets to read line. If not using stdio, do a simple blocking read
3667 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3669 * Makefile.in: Correctly build simulator for build machine != host
3672 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3674 * configure.in (--enable-hostendian): Rework so the default uses
3675 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
3677 * configure: Regenerate.
3679 * sim-endian.h: Add more tests for host endian to support more
3680 platforms in a cross compilation environment.
3682 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3684 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
3685 use stdio, instead of unpended read/printf_filtered.
3686 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
3687 flush stdout after writing the characters.
3689 * options.c (print_options): Print out WITH_STDIO.
3691 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
3692 configuration variable.
3693 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
3694 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
3695 files to contain directory pieces.
3697 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
3698 should use stdio for console input.
3699 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
3701 * configure.in (--enable-sim-stdio): Add new switch to control
3702 whether stdio is used for console I/O.
3703 * configure: Regenerate.
3705 * interrupts.c (external_interrupt): Declare it to be
3706 INLINE_INTERRUPTS, not INLINE_CPU.
3708 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3710 * events.c (insert_event_entry): Allow events to be scheduled
3711 *NOW* (at delta time 0). Add assertions to clarify behavour of
3714 * events.c (update_time_from_event): New function. Calculates the
3715 number of ticks from the next event. Use this.
3717 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
3719 * emul_netbsd.c (do_break): Return 0 if success (instead of
3722 * device_table.c (vm_ioctl_callback): Don't return adjusted break
3725 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
3727 * device_table.h: Change type of the device ioctl so that it
3728 returns an int (status).
3729 * device.h (device_ioctl): Ditto.
3730 * device.c (device_ioctl): Ditto.
3732 * device_table.c (stack_ioctl_callback): Return 0 status.
3733 (vm_ioctl_callback): Ditto
3735 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3737 * emul_netbsd.c (do_read): Correctly set the return value.
3740 (do_geteuid): Ditto.
3742 (do_getegid): Ditto.
3744 (do_sigprocmask): Ditto.
3747 (do_gettimeofday): Ditto.
3748 (do_getrusage): Ditto.
3752 (do___sysctl): Ditto.
3754 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3756 * device_table.c (vm_ioctl_callback): Don't access the processor
3757 registers directly, instead leave it to the caller to handle this.
3759 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3760 perform a break. Pass in the new break value and set the
3761 registers according to the result.
3763 * emul_generic.c (emul_write_status): Change so that r3 contains
3764 either status or errno and failure is indicated by SO.
3766 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3768 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3771 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
3773 * interrupts.h (interrupts): New structure contains state of
3776 * cpu.c (cpu_interrupts): New function. Pending interrupt status
3777 in the cpu and grant access to it. Add interrupts to cpu
3780 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
3782 * device.c (device_tree_add_parsed): Check that the creation of a
3783 device instance worked before using it.
3785 * psim.c (psim_halt): Remove cia argument from psim_halt. This
3786 function does not save the CIA so do not pass it in.
3788 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
3790 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3791 found in device_table.c into a single hack pal.
3793 * device_table.c (halt, icu, console): Delete.
3795 * Makefile.in (hw_pal.o): New dependency.
3797 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3798 so that it uses the pal instead of the icu/halt/console devices.
3799 Wire the pal's interrupt ports up to the cpu nodes.
3801 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
3803 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3804 device_table.c to here.
3806 * Makefile.in (hw_iobus.o): New dependency.
3808 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3810 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3811 (emul_bugapi_create): Create input, output from /chosen/stdin and
3813 (emul_bugapi_do_{read,write}): Switch to use device_instance
3815 (emul_bugapi_instruction_call): Change calls to
3816 emul_bugapi_do_{read,write} to pass device instance argument.
3818 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3820 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3821 default is not written out if a default was already written.
3823 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3824 size cooked_buf, not sizeof natural_word, since floating point
3825 registers are 8 bytes.
3827 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3829 * configure: Regenerate with autoconf 2.9.
3831 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3833 * device_table.h: Always include string headers.
3835 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3837 * main.c (error): Be careful to not try to print out statistics
3838 when the simulation was never created.
3840 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3842 * basics.h: Move the event queue's definition to here so that it
3843 can be refered to globally with out importing all of events.h.
3845 * psim.h, psim.c (psim_event_queue): New function. Grant access
3846 to the simulation event queue. Will make this the single point of
3847 access (there is after all only one event queue in the
3850 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3851 queue instead of it being passed in. No longer allow access to
3852 the cpu's copy of the event queue.
3854 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3856 * events.h, events.c (event_handler): Remove event_queue from
3857 arguments passed to an event handler. That argument is redundant
3858 - the `data' should refer to a data structure that contains the
3859 event queue if queing is needed.
3861 * cpu.c (cpu_decrement_event): adjust
3863 * events.c (event_queue_process): adjust
3865 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3867 * device.h, device.c (device_system): New, returns a handle for
3868 the system given the device.
3870 * device.c (device_address_init): Store a pointer back to the
3871 system in each devices node.
3873 * device_table.h: Don't pass `system' into each device when it is
3874 being initialized, this is now available using device_system(me).
3876 * device.c (device_address_init, device_data_init): Adjust.
3878 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3881 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3883 * interrupts.c (decrementer_interrupt, external_interrupt):
3884 Remember that an interrupt wasn't delivered so that it can be
3887 * interrupts.c (check_masked_interrupt): New function. (re)
3888 checks for the posibility that a recent change to the MSR may have
3889 made it possible to deliver an interrupt that was previously
3890 masked be the EE bit.
3892 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3893 a pending interrupt being delivered using check_masked_interrupt().
3895 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3896 leaving it to that module to handle both interrupt synchronization
3899 * cpu.c (struct _cpu): remove variables that were going to record
3900 pending decrementer and external interrupts.
3902 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3904 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
3905 between the interrupt controller and the simulators internal
3906 processor model. Maps device interrupts onto the processor
3907 interrupt function calls.
3909 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3911 * hw_nvram.c: NVRAM device that includes a real-time clock that is
3912 updated each second.
3914 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3916 * device.h (attach_type): Remove attach_default type address
3917 spaces. Will replace with levels of callback memory.
3919 * corefile.h, corefile.c (new_core_mapping), corefile.c
3920 (core_map_attach): Replace default attach with a layerd callback
3923 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3925 * device.c (split_property_specifier): ensure that only a single
3927 (split_value): New function, parses the value part of a device
3930 * device.c (device_tree_add_parsed): Use the interrupt conversion
3931 functions to determine the interrupt port numbers.
3933 * device_table.h: Add table that maps between an interrupts
3934 symbolic name and its port number.
3936 * device.h, device.c (device_interrupt_decode,
3937 device_interrupt_encode): new functions use the recently added
3938 interrupt port name/number tables to perform conversion.
3940 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3942 * device.h, device.c (device_set_array_property,
3943 device_set_boolean_property, device_set_ihandle_property,
3944 device_set_integer_property, device_set_string_property): New
3945 functions - allow the value of a given property to be changed.
3947 * device.h, device.c: Re-order declaration and definition of
3950 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3952 * device.c (device_tree_print_device, device_tree_add_parsed):
3953 Remove references to phandle properties.
3955 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3957 * Makefile.in (corefile.o): missing dependency on device_table.h
3960 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3962 * device_table.h: Revamp device init callbacks so that they are a
3964 * device.c (device_init_data, device_init_address): If an init
3965 callback is NULL assume it should do nothing.
3966 * device_table.c (ignore_device_init, unimp_device_init): delete
3968 * device_table.c, hw_memory.c: adjust.
3972 * (device_instance): ditto.
3974 * (address nee config_address): ditto.
3975 * (interrupt): ditto.
3977 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3979 * igen.c (idecode_switch_end): Output a default entry when the
3980 switch statement is perfect. Firstly stops GCC complaining about
3981 an incomplete switch and secondly it will be eliminated by a good
3984 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3986 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3987 hw_*.c files. hw.h declares a device descriptor table for each hw
3988 device while hw.c lists those tables in a form suitable for the
3989 construction of a top leveltable in device_table.c.
3991 * Makefile.in (device_table.o): now depends on hw.c a generated
3994 * device_table.c (device_table): Re-arange the table of devices so
3995 that two levels are possible. Make use of hw.c.
3996 * device_table.h: ditto.
3998 * device.c (device_template_create_device): Handle new two level
3999 device lookup table.
4000 * device.c (device_usage): ditto.
4002 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4004 * device_table.c: Delete the memory device (moved to hw_memory.c).
4006 * hw_memory.c: New file. Just an OpenBoot memory device.
4008 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
4010 * device.c (device_init_address): New. Split initialization into
4011 two stages, address and address spaces
4012 * device.c (device_init_data): New. ... and data or other work.
4013 With out this, devices try to modify memory before it as been
4016 * device.c (device_tree_init): Update to perform staged
4019 * device.c (device_init): Delete.
4021 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
4023 * device_table.c (data_*): Rewrite to make heaver use of property
4024 nodes. Allow initialization by different data types.
4025 * device_table.c (htab_* pte_*): Rewrite to use properties.
4027 * emul_chirp.c (emul_chirp_create): Use
4028 * emul_bugapi.c (emul_bugapi_create): Ditto
4029 * emul_netbsd.c (emul_netbsd_create): Ditto
4031 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
4033 * emul_generic.c (emul_add_tree_options): Annotate existing tree
4034 with options that haven't yet been specified.
4035 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
4036 with demo devices and properties.
4038 * emul_chirp.c (emul_chirp_create): Update to use new
4039 device_tree_add_parsed call and additional information now
4040 included in the device tree. Use emul_add_tree* functions to add
4041 any missing details.
4042 * emul_bugapi.c (emul_bugapi_create): Ditto
4043 * emul_netbsd.c (emul_netbsd_create): Ditto
4045 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
4047 * device.c (device_instance_create): New. Create/delete and
4048 operate on instances of a device.
4049 * device.c (device_instance_delete): Ditto
4050 * device.c (device_instance_read): Ditto
4051 * device.c (device_instance_write): Ditto
4052 * device.c (device_instance_seek): Ditto
4053 * device.c (device_instance_data): Ditto
4054 * device.c (device_instance_name): Ditto
4055 * device.c (device_instance_path): Ditto
4057 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
4058 * emul_chirp.c (chirp_emul_close): Ditto
4059 * emul_chirp.c (chirp_emul_read): Ditto
4060 * emul_chirp.c (chirp_emul_write): Ditto
4061 * emul_chirp.c (chirp_emul_seek): Ditto
4063 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
4064 Being careful to convert all from target to host byte order.
4065 * emul_chirp.c (chirp_write_h2t_args): Converse.
4067 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
4069 * device.c (device_tree_add_parsed): New. Rewrite code to add
4070 devices to the device tree so that a single printf style function
4073 * device.c (device_tree_add_*): Delete. Replaced by above.
4075 * device.c (split_device_specifier): Functions to manipulate a
4076 device specifier (path) breaking it into its components
4077 * device.c (split_property_specifier): Ditto
4078 * device.c (split_device_name): Ditto
4079 * device.c (split_find_device): Ditto
4081 * device.c (scan_*): Delete
4083 * device.c (device_tree_find_device): Rewrite to use above.
4084 * device.c (device_add_property): Ditto
4086 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
4088 * psim.c(psim_options): Parse the psim options, installing their
4089 value in the device tree. Options are now first entered into a
4090 device tree and then extracted out again when needed. This allows
4091 greater flexability in configuration.
4093 * psim.c (psim_tree): Returns a basic device tree ready for
4094 parsing by psim_options.
4095 * psim.c (psim_usage): New. Give usage to varing levels of detail
4096 according to the verbosity. In turn output device and trace
4099 * main.c (main): Update to use new system
4100 * sim_calls.c (sim_open, sim_do_command): Ditto
4102 * psim.c (psim_options): Add `r' option - ram size.
4103 * psim.c (psim_options): Add `o' option - openboot tree entry.
4104 * psim.c (psim_options): Add `h'/`H' options - more help.
4106 * debug.c (trace_usage): Add more detailed help.
4107 * device.c (device_usage): New. Output help including a list of
4108 the devices currently available in the device table.
4109 * device_table.c: Add usage operator to each device.
4111 * corefile.c (core_create, core_device_create): Adjust so that the
4112 core device is created earlier for psim_tree(). Core can later be
4115 * psim.c (psim_create): Update to handle above way of creating
4116 things. Extract all information from the device tree.
4118 * device_tree.c (trace_*): New device node, its properties are
4119 used to set the value of the trace options. Init this device (in
4120 psim_options) when ever the options are updated.
4122 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
4124 * debug.h: Add trace_print_info, trace_print_device_tree and
4125 trace_dump_device_tree. The first is a replacement for the
4126 variable `print_info' found in main.c and sim_calls.c. The latter
4127 two enable the dumping of the entire device tree.
4129 * debug.c: Add to trace_description table.
4131 * main.c (main): Use above trace instead of local variable
4132 * sim_calls.c (sim_close): Ditto
4134 * device.c (device_tree_print_device): New. Prints the device
4135 tree in a format that is consistent with what can be parsed by the
4136 device tree load from file code.
4138 * psim.c (psim_create): Dump device tree if enabled. If nump
4139 selected, exit psim immediately.
4141 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
4143 * corefile-n.h (core_map_read_N): When mapping from an address to
4144 a device, do not subtract the devices base. The device its self
4145 can do this. Brings the behavour into line with OpenBoot.
4146 * corefile-n.h (core_map_write_N): Ditto
4147 * corefile.c (core_map_read_buffer): Ditto
4148 * corefile.c (core_map_write_buffer): Ditto
4150 * device_table.c (console_io_read_buffer_callback): Adjust to
4151 handle biased address.
4152 * device_table.c (console_io_write_buffer_callback): Ditto
4154 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
4156 * device.c (attach_device_interrupt_edge): New. Interrupt model
4157 did not allow interrupts to be wired up as a general net (edges).
4158 Re-implement so that interrupt events can be passed to multiple
4159 controllers and interrupt controllers can further propogate
4162 * device.c (attach_device_interrupt_edge) : New, Ditto
4163 * device.c (detach_device_interrupt_edge) : New, Ditto
4164 * device.c (clean_device_interrupt_edges) : New, Ditto
4165 * device.c (device_interrupt_event) : New, Ditto
4166 * device.c (device_interrupt_attach) : New, Ditto
4167 * device.c (device_interrupt_detach) : New, Ditto
4168 * device.c (device_child_interrupt_attach) : New, Ditto
4169 * device.c (device_child_interrupt_detach) : New, Ditto
4171 * device.c (device_attach_interrupt) : Delete old
4172 * device.c (device_detach_interrupt) : Delete old
4173 * device.c (device_interrupt) : Delete old
4174 * device.c (device_interrupt_ack) : Delete old
4176 * device_table.c (unimp_*) : Update to match
4178 * device_table.c (icu_io_write_buffer_callback) : Update to use
4180 * device_table.c (icu_interrupt_event_callback) : Ditto
4182 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
4184 * device.c (external_to_device) : New function that provides a
4185 standard mapping between a devices internal representation (a
4186 pointer) and its external (or what is passed to a client)
4187 representation (a phandle). Implement using the cap object
4188 attached to the root node.
4190 * device.c (device_to_external) : Ditto
4191 * device.c (external_to_device_instance) : Ditto but for ihandle
4192 and device instance.
4193 * device.c (device_instance_to_external) : Ditto
4195 * Makefile (device.o): Add dependency on cap.
4197 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
4198 needing to translate between internal and external representations
4199 changed to use the external_to_device et.al. device operations.
4200 * emul_chirp.c (chirp_emul_*) : Ditto
4202 * Makefile (emul_chirp.o): Remove dependency on cap
4204 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4206 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
4207 on OpenBoot note section.
4209 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
4211 * emul_generic.c (emul_write_buffer): Use vm faulting byte
4212 read/write calls for buffer transfers. This will cause a fault to
4213 occure if the transfer fails. CHRP catches the fault while the
4214 others suffer the consequences.
4215 (emul_read_buffer): Ditto.
4216 (emul_write_word): Ditto.
4217 (emul_read_word): Ditto.
4218 (emul_read_string): Ditto.
4220 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
4222 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
4223 emul_generic (emul_blr_instruction): Use a real blr instruction to
4224 return from a client service call.
4226 * emul_chirp.c (services): Add all OpenBoot services to table.
4228 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
4229 (emul_chirp_create) : Use names instead of numbers for
4230 instructions being stored in memory.
4232 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
4234 * Makefile.in (maintainer-clean): Remove .log, core and *.core
4235 (From NetBSD) files.
4237 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4239 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes