1 2021-05-14 Mike Frysinger <vapier@gentoo.org>
3 * Makefile.in: Update path.
4 * gdb-sim.c: Update include path.
7 * sim_calls.c: Likewise.
9 2021-04-22 Tom Tromey <tom@tromey.com>
11 * mon.c: Update includes.
12 * emul_unix.c: Update includes.
13 (do_unix_gettimeofday): Update condition.
15 2021-04-22 Tom Tromey <tom@tromey.com>
17 * Makefile.in (stamp-vals, stamp-map): New targets.
18 (targ-vals.h, targ-map.c): Update.
19 (clean): Remove files.
21 2021-04-08 Tom Tromey <tom@tromey.com>
23 * emul_unix.c: Include time.h.
25 2021-04-08 Simon Marchi <simon.marchi@polymtl.ca>
27 * Makefile.in: Set ASAN_OPTIONS when running igen.
29 2021-04-03 Mike Frysinger <vapier@gentoo.org>
31 * Makefile.in (install): Install as run-ppc when not the primary arch.
32 (install-strip): Likewise.
34 2021-03-13 Mike Frysinger <vapier@gentoo.org>
36 * Makefile.in (BUILD_LDFLAGS): Rename to ...
37 (LDFLAGS_FOR_BUILD): ... this.
38 (LINK_FOR_BUILD): Change BUILD_LDFLAGS to LDFLAGS_FOR_BUILD.
40 2021-03-13 Mike Frysinger <vapier@gentoo.org>
42 * Makefile.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
43 Change $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) to
44 $(LINK_FOR_BUILD). Change $(CC_FOR_BUILD) $(BUILD_CFLAGS) to
47 2021-03-08 Mike Frysinger <vapier@gentoo.org>
49 * Makefile.in (gentmap, dgen, igen, tmp-filter, tmp-ld-decode,
50 tmp-ld-cache, tmp-ld-insn): Delete $(BUILD_LIBS).
52 2021-03-07 Mike Frysinger <vapier@gentoo.org>
54 * Makefile.in (check): Define.
56 2021-02-13 Mike Frysinger <vapier@gentoo.org>
58 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
59 * aclocal.m4, configure: Regenerate.
61 2021-02-06 Mike Frysinger <vapier@gentoo.org>
63 * Makefile.in (STD_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
64 (NOWARN_CFLAGS): Likewise.
65 (HDEFINES, TDEFINES): Delete.
66 * configure.ac: Delete AC_SUBST(HDEFINES) and bfd/configure.host
68 * configure: Regenerate.
70 2021-01-19 Mike Frysinger <vapier@gentoo.org>
72 * Makefile.in (version.c): Simplifiy args and call move-if-change.
74 2021-01-11 Mike Frysinger <vapier@gentoo.org>
76 * configure.ac: Delete checks for stdlib.h, string.h,
77 strings.h, and time.h.
78 * config.in, configure: Regenerate.
79 * cpu.c, debug.c, device.c, device_table.c, device_table.h,
80 dgen.c, emul_bugapi.c, emul_chirp.c, emul_netbsd.c, emul_unix.c,
81 filter.c, hw_com.c, hw_eeprom.c, hw_nvram.c, hw_opic.c, hw_pal.c,
82 hw_phb.c, hw_sem.c, hw_shm.c, lf.c, main.c, misc.c, misc.h,
83 mon.c, pk_disklabel.c, psim.c, registers.c, sim_calls.c, table.c,
84 tree.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H, HAVE_STRING_H,
85 HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H, and strings.h include.
86 * hw_nvram.c: Likewise.
87 (_hw_nvram_device): Always define host_time as time_t.
88 (hw_nvram_update_clock): Delete error fallback.
89 * gen-model.c (gen_model_c): Delete HAVE_STDLIB_H output.
92 2021-01-09 Mike Frysinger <vapier@gentoo.org>
94 * configure: Regenerate.
96 2021-01-08 Mike Frysinger <vapier@gentoo.org>
98 * sim_calls.c (sim_memory_map): Define.
100 2021-01-04 Mike Frysinger <vapier@gentoo.org>
102 * gen-icache.c, igen.c: Include stdlib.h.
104 2021-01-04 Mike Frysinger <vapier@gentoo.org>
106 * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
107 * configure: Regenerate.
109 2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
111 * emul_netbsd.c (do_sigprocmask): Fix printf format.
113 2020-07-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
115 * ld-insn.h (last_model, last_model_data, last_model_function,
116 last_model_internal, last_model_macro, last_model_static):
118 (max_model_fields_len, model_data, model_functions,
119 model_internal, model_macros, model_static, models): Declare, but do not
121 * ld-insn.c (last_model, last_model_data, last_model_function,
122 last_model_internal, last_model_macro, last_model_static,
123 max_model_fields_len, model_data, model_functions,
124 model_internal, model_macros, model_static, models): Define.
126 2020-03-12 Kamil Rytarowski <n54@gmx.com>
128 * emul_netbsd.c (netbsd_signal_names): Sync with NetBSD 9.99.49.
130 2020-03-12 Kamil Rytarowski <n54@gmx.com>
132 * emul_netbsd.c (netbsd_error_names): Sync with NetBSD 9.99.49.
134 2019-12-19 Tom Tromey <tromey@adacore.com>
137 * Makefile.in (install-strip): New target.
139 2019-09-20 Alan Modra <amodra@gmail.com>
141 * emul_generic.c (emul_add_tree_options): Delete old bfd code.
143 2019-01-26 Tom Tromey <tom@tromey.com>
145 * Makefile.in (version.c): Use sim's create-version.sh.
147 2018-05-09 Sebastian Rasmussen <sebras@gmail.com>
149 * e500_registers.h: Comment typo fix.
150 * ppc-instructions (ppc_insn_mfcr): Likewise.
152 2017-09-05 John Baldwin <jhb@FreeBSD.org>
155 * sim_calls.c (error): New function.
157 2017-02-13 Mike Frysinger <vapier@gentoo.org>
159 * cpu.h: Include libiberty.h.
160 * emul_bugapi.c (emul_bugapi_instruction_name): Use ARRAY_SIZE.
161 * emul_generic.h: Include libiberty.h.
162 * emul_netbsd.c (emul_netbsd_syscalls): Use ARRAY_SIZE.
163 * emul_unix.c (convert_to_solaris_stat): Likewise.
164 (emul_solaris_syscalls): Likewise.
165 (emul_linux_syscalls): Likewise.
166 * options.c (print_options): Likewise.
167 * ppc-instructions: Likewise.
169 2016-01-10 Mike Frysinger <vapier@gentoo.org>
171 * configure.ac (sim-assert): Call AC_MSG_CHECKING,
172 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT
173 (sim-env, sim-stdio, sim-trace): Delete.
174 * config.in, configure: Regenerate.
175 * Make-common.in (ENV_CFLAGS, TRACE_CFLAGS, ASSERT_CFLAGS,
176 STDIO_CFLAGS): Delete.
177 (CONFIG_CFLAGS): Delete $(ENV_CFLAGS), $(TRACE_CFLAGS),
178 $(ASSERT_CFLAGS), and $(STDIO_CFLAGS).
179 * std-config.h (WITH_ENVIRONMENT, WITH_TRACE, WITH_ASSERT,
182 2016-01-10 Mike Frysinger <vapier@gentoo.org>
184 * configure: Regenerate.
186 2016-01-10 Mike Frysinger <vapier@gentoo.org>
188 * configure: Regenerate.
190 2016-01-10 Mike Frysinger <vapier@gentoo.org>
192 * configure.ac: Delete --enable-sim-regparm and sim_regparm,
193 and --enable-sim-stdcall and sim_stdcall.
194 * configure: Regenerate.
195 * Makefile.in (REGPARM_CFLAGS, STDCALL_CFLAGS): Delete.
196 (CONFIG_CFLAGS): Delete $(REGPARM_CFLAGS) and $(STDCALL_CFLAGS).
197 * inline.h: Delete REGPARM everywhere.
198 * options.c (print_options): Delete WITH_REGPARM and
200 * std-config.h (WITH_REGPARM, WITH_STDCALL, REGPARM): Delete.
202 2016-01-10 Mike Frysinger <vapier@gentoo.org>
204 * configure.ac: Delete --enable-sim-cflags and sim_cflags.
205 * configure: Regenerate.
206 * INSTALL: Delete all mention of --enable-sim-cflags.
207 * Makefile.in (SIM_CFLAGS): Delete.
208 (STD_CFLAGS, NOWARN_CFLAGS): Delete $(SIM_CFLAGS).
211 2016-01-06 Mike Frysinger <vapier@gentoo.org>
213 * sim_calls.c (sim_open): Mark argv const.
214 (sim_create_inferior): Mark argv and env const.
216 2016-01-04 Mike Frysinger <vapier@gentoo.org>
218 * configure.ac (sim-bswap): Delete.
219 * configure: Regenerate.
220 * INSTALL: Delete --enable-sim-bswap docs.
221 * Makefile.in (BSWAP_CFLAGS): Delete.
222 (CONFIG_CFLAGS): Delete $(BSWAP_CFLAGS).
223 * options.c (print_options): Delete WITH_BSWAP.
224 * sim-endian.h (htonl, ntohl): Delete.
225 * std-config.h (WITH_BSWAP): Delete.
227 2016-01-02 Mike Frysinger <vapier@gentoo.org>
229 * main.c (main): Pass SIM_OPEN_STANDALONE to psim_options and
231 * psim.c (psim_usage): Add new kind arg. Only show bug URL and
232 exit when kind is SIM_OPEN_STANDALONE.
233 (psim_options): Add new kind arg. Pass kind down to all psim_usage
234 calls. Replace error/break calls after psim_usage with return NULL.
235 Only exit with version case when kind is SIM_OPEN_STANDALONE.
236 * psim.h: Include gdb/remote-sim.h.
237 (psim_options): Add new kind arg.
238 (psim_usage): Likewise.
239 * sim_calls.c (sim_open): Pass kind to psim_options. Return NULL
240 when it returns NULL.
242 2015-12-29 Kevin Buettner <kevinb@redhat.com>
244 * emul_netbsd.c (fd_closed): New static array.
245 (fdbad): New function.
246 (do_read, do_write, do_close, do_dup, do_ioctl, do_dup2, do_fcntl)
247 (do_fstatfs, do_fstat, do_lseek): Call `fdbad'.
248 (emul_netbsd_init): Initialize `fd_closed'.
249 * emul_unix.c (fd_closed): New static array.
250 (fdbad): New function.
251 (do_unix_read, do_unix_write, do_unix_close, do_unix_dup)
252 (do_unix_dup2, do_unix_lseek, do_solaris_fstat, do_solaris_ioctl)
253 (do_linux_fstat, do_linux_ioctl): Call `fdbad'.
254 (emul_solaris_init, emul_linux_init): Initialize `fd_closed'.
256 2015-12-26 Mike Frysinger <vapier@gentoo.org>
258 * Makefile.in (TCONFIG_H): Delete.
259 (sim-fpu.o): Delete $(TCONFIG_H).
260 (tconfig.h): Delete rule.
262 2015-11-21 Mike Frysinger <vapier@gentoo.org>
265 * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c.
266 (callback.o): Change $< to $(srcdir)/../common/callback.c.
267 (options.o): Change $< to $(srcdir)/options.c.
269 2015-11-17 Pedro Alves <palves@redhat.com>
271 * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call
272 sim_io_printf_filtered instead of printf_filtered.
274 2015-06-12 Mike Frysinger <vapier@gentoo.org>
276 * configure: Regenerate.
278 2015-04-29 Nick Clifton <nickc@redhat.com>
281 * hw_htab.c (htab_map_binary): Fix overlap check.
283 2015-04-13 Mike Frysinger <vapier@gentoo.org>
285 * Makefile.in (version.o): Change to using create-version.sh from gdb.
286 (create-version.sh): Delete.
288 2015-03-31 Mike Frysinger <vapier@gentoo.org>
290 * config.in, configure: Regenerate.
291 * Makefile.in (INCLUDES): Add $(ZLIBINC).
292 (ZLIB, ZLIBINC): Define.
293 (BFD_LIB): Add $(ZLIB).
295 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
297 * ChangeLog, ChangeLog.00, hw_com.c, ld-cache.h, ppc-instructions:
298 Change immediatly to immediately.
300 2014-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>
302 * basics.h, device.c, device.h, hw_htab.c, hw_memory.c:
303 Correct spelling in comments.
305 2014-08-19 Alan Modra <amodra@gmail.com>
307 * configure.ac: Invoke AC_PLUGINS.
308 * configure: Regenerate.
309 * config.in: Regenerate.
311 2014-03-10 Mike Frysinger <vapier@gentoo.org>
313 * sim_calls.c (sim_do_command): Add const to cmd.
315 2014-03-05 Mike Frysinger <vapier@gentoo.org>
317 * sim_calls.c (sim_load): Add const to prog.
319 2014-02-17 Aaro Koskinen <aaro.koskinen@iki.fi>
322 * Makefile.in (psim): Delete $(LIBS) from dependency.
324 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
326 * Makefile.in (srcsim): New variable.
327 (version.c): Adjust call to $(srccom)/create-version.sh as per change.
329 2013-06-28 Tom Tromey <tromey@redhat.com>
331 * Make-common.in (version.c): Use version.in, not
334 2013-06-24 Joel Brobecker <brobecker@adacore.com>
336 * Makefile.in (srccom): New variable.
337 (version.c): Update rule dependencies, and re-implement using
338 sim/common/create-version.sh.
340 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
343 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
344 * ppc-instructions (isel): New instruction.
346 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
348 * ppc-instructions (isel): New instruction.
350 2012-12-19 Joel Brobecker <brobecker@adacore.com>
352 * COPYING: Update to GPL version 3.
354 2012-06-15 Joel Brobecker <brobecker@adacore.com>
356 * configure: Regenerate.
358 2012-05-24 Pedro Alves <palves@redhat.com>
361 * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
363 2012-03-14 Michael Haubenwallner <michael.haubenwallner@salomon.at>
365 * emul_unix.c (st_pad1, st_pad2, st_pad3): Undefine.
367 2012-01-02 Joel Brobecker <brobecker@adacore.com>
369 * dp-bit.c: Reformat copyright header.
371 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
373 * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
375 2011-10-17 Mike Frysinger <vapier@gentoo.org>
377 * configure.ac: Change include to common/acinclude.m4.
379 2011-10-17 Mike Frysinger <vapier@gentoo.org>
381 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
382 call. Replace common.m4 include with SIM_AC_COMMON.
383 * configure: Regenerate.
385 2011-06-09 Joel Brobecker <brobecker@adacore.com>
387 * psim.c (psim_options): Fix length of comparison when checking
388 for --sysroot= option.
390 2011-06-08 Joel Brobecker <brobecker@adacore.com>
392 * psim.c (psim_options): Add option that cause the error
393 in invalid-option error messages. Print the usage when
394 detecting an invalid long-name option.
396 2011-06-08 Joel Brobecker <brobecker@adacore.com>
398 * psim.c (psim_options): Accept and ignore `--sysroot=...'.
400 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
402 From Stephen Kitt <steve@sk2.org>
403 * vm.c (vm_synchronize_context): Spelling fix in function
406 2011-04-16 Mike Frysinger <vapier@gentoo.org>
408 * sim_calls.c (sim_complete_command): New stub function.
410 2011-02-14 Mike Frysinger <vapier@gentoo.org>
412 * cap.c (cap_remove): Change zfree to free.
413 * corefile.c (core_init): Likewise.
414 * device.c (detach_device_interrupt_edge): Likewise.
415 (clean_device_interrupt_edges): Likewise.
416 (device_instance_delete): Likewise.
417 (device_set_property): Likewise.
418 (clean_device_properties): Likewise.
419 (device_add_range_array_property): Likewise.
420 (device_add_reg_array_property): Likewise.
421 * emul_bugapi.c (emul_bugapi_do_read): Likewise.
422 (emul_bugapi_do_write)
423 * emul_netbsd.c (write_direntries): Likewise.
425 (do_write): Likewise.
426 (do_getdirentries): Likewise.
427 * emul_unix.c (do_unix_read): Likewise.
428 (do_unix_write): Likewise.
429 * events.c (event_queue_init): Likewise.
430 (event_queue_deschedule): Likewise.
431 (event_queue_process): Likewise.
432 * hw_disk.c (open_disk_image): Likewise.
433 (hw_disk_instance_delete): Likewise.
434 * hw_eeprom.c (hw_eeprom_instance_delete): Likewise.
435 * hw_htab.c (htab_dma_binary): Likewise.
436 * hw_init.c (update_for_binary_section): Likewise.
437 * hw_memory.c (hw_memory_set_available): Likewise.
438 (hw_memory_init_address): Likewise.
439 (hw_memory_instance_release): Likewise.
440 * pk_disklabel.c (disklabel_delete): Likewise.
441 * table.c (table_push): Likewise.
442 * tree.c (parse_reg_property): Likewise.
443 (parse_ranges_property): Likewise.
444 (parse_string_property): Likewise.
445 * main.c (zfree): Delete.
446 * sim_calls.c (zfree): Likewise.
447 * sim_callbacks.h (zfree): Likewise.
449 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
451 * gdb-sim.c (sim_store_register): Update return value to
454 2011-01-05 Joel Brobecker <brobecker@adacore.com>
456 * psim.texinfo: Copyright year update.
458 2010-04-14 Mike Frysinger <vapier@gentoo.org>
460 * sim_calls.c (sim_write): Add const to buf arg.
462 2010-02-14 Andreas Schwab <schwab@linux-m68k.org>
464 * ppc-instructions: Fix missing assignment in last change.
466 2010-02-05 Andreas Schwab <schwab@linux-m68k.org>
468 * ppc-instructions: Fix aliasing bugs when calling
469 invalid_arithemetic_operation.
471 2009-11-13 Nathan Froyd <froydnj@codesourcery.com>
473 * configure.ac: If build != host, create a separate build-config.h
474 file desecribing the build machine.
475 * configure: Regenerate.
476 * lf.c: Include build-config.h instead of config.h.
481 * filter.c: Likewise.
484 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
486 * std-config.h: Fix spelling error.
488 2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
490 * main.c: Fix spelling error.
492 2009-09-15 Andreas Tobler <andreast-list@fgznet.ch>
493 Doug Evans <dje@google.com>
495 * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN.
496 * configure: Regenerate.
497 * config.in: Regenerate.
498 * hw_sem.c: (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN.
500 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
502 * config.in: Regenerate.
503 * configure: Likewise.
505 * configure: Regenerate.
507 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
509 * Makefile.in (datarootdir): New variable.
511 2009-01-12 Nathan Froyd <froydnj@codesourcery.com>
513 * ppc-instructions (sync): Add L field.
515 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
517 * ppc-instructions, ppc-spr-table: Add ability
518 to read tbrl and tbru special registers.
520 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
522 * configure: Regenerated.
523 * configure.ac: Add test for System V shared memory and semaphore.
524 * debug.c, debug.h: Add trace support for new devices.
525 * hw_sem.c, hw_shm.c: New files.
526 * Makefile.in: Add hw_sem.c and hw_shm.c.
528 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
530 * configure.ac: Add test for libz and zlib.h.
531 * Makefile.in (LIBS): Set from @LIBS@.
532 * configure: Regenerate.
535 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
536 Daniel Jacobowitz <dan@codesourcery.com>
537 Joseph Myers <joseph@codesourcery.com>
539 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
540 * configure, config.in: Regenerated.
541 * Makefile.in (LIB_OBJ): Add version.o.
542 (version.c, version.o): New rules.
543 * psim.c (psim_usage): Add help parameter. Print the bug URL.
544 Exit with code 0 for help.
545 (psim_options): Update calls to psim_usage. Handle --help and
547 * psim.h (psim_usage): Update prototype.
548 * main.c (main): Update psim_usage call.
550 2008-03-14 Nick Hudson <nick.hudson@dsl.pipex.com
552 * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
553 * configure: Regenerate.
555 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
557 * gdb-sim.c (regnum2spr): Rename to...
558 (sim_spr_register_name): ... this. Make global.
560 2007-09-04 Jerome Guitton <guitton@adacore.com>
562 * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
563 name property before parsing it.
565 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
567 * acconfig.h: Remove.
568 * config.in: Regenerate.
570 2006-11-22 Tom Marn <tom.marn@telargo.com>
572 Committed by Andrew Cagney.
573 * ppc-instructions: Implement optional PowerPC stfiwx instruction.
575 2006-07-12 Fred Fish <fnf@specifix.com>
577 * sim-endian.h (asm/byteorder.h): Don't include private kernel
580 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
582 * configure: Regenerated.
584 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
586 * Makefile.in: Replace INTLLIBS and INTLDEPS with LIBINTL
587 and LIBINTL_DEP everywhere.
588 (INTL_DIR, INTL_SRC): Remove.
589 (INTL_CFLAGS): Use INCINTL.
590 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR.
591 * configure: Regenerated.
593 2006-05-05 Andreas Schwab <schwab@suse.de>
595 * configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
596 * configure: Regenerate.
598 * Makefile.in (CFLAGS_FOR_BUILD): Define.
599 (BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
600 (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
602 2006-04-23 Andreas Schwab <schwab@suse.de>
604 * Makefile.in (tmp-ld-decode): Fix dependencies.
605 (tmp-ld-cache): Likewise.
606 (tmp-ld-insn): Likewise.
608 2006-02-01 Mark Mitchell <mark@codesourcery.com>
610 * emul_netbsd.c (emul_netbsd_create): Quote file-name property.
611 * emul_unix.c (emul_unix_create): Likewise.
612 * tree.c (libiberty.h): Include it.
613 (tree_quote_property): New function.
614 * tree.h (tree_quote_property): Declare.
616 2006-01-25 Mark Mitchell <mark@codesourcery.com>
618 * words.h (natural32): Define as "int".
620 2006-01-23 Mark Mitchell <mark@codesourcery.com>
622 * words.h (signed32): Define as "int".
623 (unsigned32): Define as "unsigned int".
625 2005-11-28 Mark Mitchell <mark@codesourcery.com>
627 * configure.ac (USE_WIN32API): Define it.
628 * configure.in: Regenerate.
629 * config.in: Likewise.
630 * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
631 * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
633 2005-11-28 Mark Mitchell <mark@codesourcery.com>
635 * psim.c: Include gdb/signals.h.
637 * sim_calls.c (gdb/signals.h): Include it.
638 (sim_stop_reason): Use TARGET_SIGNAL_*.
639 * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
641 2005-07-15 Ben Elliston <bje@au.ibm.com>
643 * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's.
645 2005-07-15 Ben Elliston <bje@au.ibm.com>
647 * hw_init.c: Comment out tokens after #endif directive.
648 * hw_register.c: Likewise.
649 * hw_trace.c: Likewise.
652 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
654 * psim.c: Added libiberty.h header file.
656 2005-04-18 Manoj Iyer <manjo@austin.ibm.com>
658 * configure.ac: Added check for long long.
659 * config.in: Regenerated.
660 * configure: Regenerated.
661 * words.h: Modified logic to check for HAVE_LONG_LONG instead of
662 __GNUC__, added config.h header file.
664 2005-03-25 Anthony Green <green@redhat.com>
666 * tree.c (parse_reg_property): Fix memset usage.
668 2005-03-23 Mark Kettenis <kettenis@gnu.org>
670 * configure: Regenerate.
672 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
674 * configure.ac: Delete AC_CONFIG_AUX_DIR.
675 * configure: Re-generate.
677 2005-01-07 Andrew Cagney <cagney@gnu.org>
679 * configure.ac: Rename configure.in, require autoconf 2.59.
680 * configure: Re-generate.
682 2005-01-03 Andreas Schwab <schwab@suse.de>
684 * Makefile.in (hw_com.o, hw_eeprom.o): Depend on
687 2004-11-16 Andreas Schwab <schwab@suse.de>
689 * Makefile.in (defines.h): Depend on tmp-defines.
690 (hw.c hw.h): Depend on tmp-hw.
691 (pk.h): Depend on tmp-pk.
693 2004-11-11 Andreas Schwab <schwab@suse.de>
695 * sim_calls.c: Include "libiberty.h".
697 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
699 Committed by Andrew Cagney.
700 * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
701 Check for struct statfs.
702 * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
703 * configure, config.in: Regenerate.
705 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
707 * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.
709 2004-08-04 Andrew Cagney <cagney@gnu.org>
710 Jim Blandy <jimb@redhat.com>
712 * sim_callbacks.h (simulator): Declare.
713 * Makefile.in (gdb-sim.o): New rule.
714 (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
716 (GDB_SIM_PPC_H): Define.
717 * gdb-sim.c: New file.
718 * sim_calls.c: Do not include "defs.h".
719 (simulator): Drop static.
720 (sim_store_register, sim_fetch_register): Delete.
722 2004-08-04 Andrew Cagney <cagney@gnu.org>
724 * Back out accidently committed change.
726 2004-08-04 Jim Blandy <jimb@redhat.com>
728 Use a fixed register numbering when communicating with the PowerPC
730 * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
731 include GDB's "defs.h".
732 (gdb_register_name_table): New variable.
733 (gdb_register_name_table_size): New enum constant.
734 (gdb_register_name): New function.
735 (sim_fetch_register, sim_store_register): Use gdb_register_name,
736 instead of calling gdbarch_register_name.
737 * Makefile.in (GDB_SIM_PPC_H): New variable.
738 (DEFS_H): Delete variable.
739 (sim_calls.o): Update dependencies.
741 2004-07-26 Andrew Cagney <cagney@gnu.org>
743 Problem from Olaf Hering <olh@suse.de>.
744 * Makefile.in (install, installdirs): Add DESTDIR.
746 2004-07-10 Ben Elliston <bje@au.ibm.com>
748 * tree.c (parse_integer_property): Comment typo fix.
750 2004-07-06 Jim Blandy <jimb@redhat.com>
752 * Makefile.in: Update all dependency information.
753 (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
754 (EMUL_GENERIC_H): Values updated.
755 (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
756 (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
757 (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
758 (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
759 (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
760 (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
761 (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
762 (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
763 (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
764 (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
765 (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
766 (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
767 (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
768 (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
769 (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
770 (TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
771 (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
772 (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
773 (events.o, filter.o, filter_filename.o, filter_host.o)
774 (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
775 (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
776 (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
777 (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
778 (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
779 (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
780 (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
781 (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
783 2004-06-28 Jim Blandy <jimb@redhat.com>
785 * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
786 unsigned type before or-ing it with a 64-bit value.
788 2004-06-15 Alan Modra <amodra@bigpond.net.au>
790 * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
791 instead of bfd_get_section_size_before_reloc.
792 (htab_dma_binary(bfd): Likewise.
793 * hw_init.c (update_for_binary_section(bfd): Likewise.
795 2004-05-10 Daniel Jacobowitz <dan@debian.org>
797 * configure.in (sim_fpu_cflags): Add -I../common.
798 * configure: Regenerated.
800 2004-01-27 Andrew Cagney <cagney@redhat.com>
802 * ppc-instructions: Update copyright.
803 (convert_to_integer): Add trailing ";" to label.
805 2003-10-16 Michael Snyder <msnyder@redhat.com>
807 * emul_netbsd.c: Only a comment may follow an #endif.
809 2003-10-15 Michael Snyder <msnyder@redhat.com>
811 * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
813 2003-06-22 Andrew Cagney <cagney@redhat.com>
815 Written by matthew green <mrg@redhat.com>, with fixes from Aldy
816 Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
817 Nick Clifton <nickc@redhat.com>.
819 * ppc-instructions: Include altivec.igen and e500.igen.
820 (model_busy, model_data): Add vr_busy and vscr_busy.
821 (model_trace_release): Trace vr_busy and vscr_busy.
822 (model_new_cycle): Update vr_busy and vscr_busy.
823 (model_make_busy): Update vr_busy and vscr_busy.
824 * registers.c (register_description): Add Altivec and e500
826 * psim.c (psim_read_register, psim_read_register): Handle Altivec
828 * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
829 * configure.in (sim_filter): When *altivec* add "av". When *spe*
831 (sim_float): When *altivec* define WITH_ALTIVEC. When *spe* add
833 * configure: Re-generate.
834 * e500.igen, altivec.igen: New files.
835 * e500_expression.h, altivec_expression.h: New files.
836 * idecode_expression.h: Update copyright. Include
837 "e500_expression.h" and "altivec_expression.h".
838 * e500_registers.h, altivec_registers.h: New files.
839 * registers.h: Update copyright. Include "e500_registers.h" and
840 "altivec_registers.h".
841 (registers): Add Altivec and e500 specific registers.
842 * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
844 (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
845 (tmp-igen): Add dependencies on altivec.igen and e500.igen .
847 2003-06-22 Andrew Cagney <cagney@redhat.com>
849 Problems reported by Joshua LeVasseur.
850 * emul_chirp.c: Update copyright.
851 (chirp_emul_nextprop): Return the first property.
852 * hw_htab.c: Update copyright.
853 (htab_decode_hash_table): Fix check for htab size.
855 2003-06-21 Andrew Cagney <cagney@redhat.com>
857 * interrupts.c: Update copyright.
858 (external_interrupt): Fix test for already pending interrupt.
859 Problem found by Joshua LeVasseur.
861 * ppc-instructions: Add missing +8 line. Found by blofeldus at
864 2003-06-21 Andrew Cagney <cagney@redhat.com>
866 From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
867 (hw_nvram_init_address): Correct call to memset--swap second and
870 2003-06-21 Andrew Cagney <cagney@redhat.com>
872 * hw_com.c (hw_com_device_init_data): Check that the output, and
873 not input file opened. Pointed out by masahino tky3.3web.ne.jp.
875 2003-06-20 Andrew Cagney <cagney@redhat.com>
877 * sim_calls.c (sim_create_inferior): Assert that
878 psim_write_register succeeded.
879 (sim_fetch_register, sim_store_register): Make "regname" constant.
880 Delete Altivec hack. Return result from psim_read_register /
882 * psim.h (psim_read_register, psim_write_register): Change return
883 type to int. Update comments.
884 * psim.c: Update copyright.
885 (psim_stack): Assert that the psim_read_register worked.
886 (psim_read_register, psim_read_register): Return the register's
887 size. Allocate the cooked buffer dynamically.
888 * hw_register.c: Update copyright.
889 (do_register_init): Check that psim_write_register succeeded.
890 * hw_init.c: Update copyright.
891 (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
892 that the register transfer worked.
894 2003-06-19 Andrew Cagney <cagney@redhat.com>
896 * ld-insn.h: Update copyright.
897 (cache_fields): Define.
898 (insn_table_fields): Add insn_field_6 and insn_field_7.
899 (load_insn_table): Pass in the "cache_rules".
900 * ld-insn.c: Update copyright.
901 (load_insn_table): Add parameter "cache_rules". Handle "cache",
902 "computed" and "scratch" fields.
903 (main): Pass "cache_rules" to load_insn_table.
904 * ld-cache.h: Update copyright.
905 (append_cache_table): Declare.
906 * ld-cache.c: Update copyright.
907 (append_cache_table): New function.
908 (load_cache_table): Call.
909 * gen-model.c: Include "ld-cache.h".
910 * gen-itable.c: Include "ld-cache.h".
911 * igen.c: Move #include "ld-cache.h" to earlier. Update
913 (main): Permit a NULL "cache_rules". Pass address of
914 "cache_rules" to load_insn_table.
915 * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
916 (tmp-igen): Do not include ppc-cache-rules.
917 (gen-itable.o, gen-model.o): Add "ld-cache.h".
918 * ppc-cache-rules: Delete file.
919 * ppc-instructions: Add cache rules.
921 2003-06-19 Andrew Cagney <cagney@redhat.com>
923 * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
924 (SIM_FPU_FLAGS): Define.
925 (icache.o): Delete explicit compile command.
926 (semantics.o, idecode.o): Delete explicit compile command.
927 (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
928 * gen-support.c (gen_support_c): Generate #include of
929 "sim-inline.h" and "sim-fpu.h", but conditional on
931 * gen-idecode.c (gen_idecode_c): Ditto.
932 * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
933 "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
934 Move to before "support.h".
935 * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
938 2003-05-16 Ian Lance Taylor <ian@airs.com>
940 * Makefile.in (various): Use $(SHELL) whenever we invoke
943 2003-02-27 Andrew Cagney <cagney@redhat.com>
945 * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
947 2002-09-27 Andrew Cagney <ac131313@redhat.com>
949 * hw_disk.c (hw_disk_init_address): Set device type to "block",
952 2002-06-22 Andrew Cagney <ac131313@redhat.com>
954 * Makefile.in (INTL_SRC): Define.
955 (INTL_CFLAGS): Define.
957 (STD_CFLAGS): Add INTL_CFLAGS.
959 2002-06-17 Elena Zannoni <ezannoni@redhat.com>
961 * psim.c (psim_options): Don't choke when gdb invokes us with
962 the --architecture option, just ignore it.
964 2002-06-16 Andrew Cagney <ac131313@redhat.com>
966 * configure: Regenerated to track ../common/aclocal.m4 changes.
968 2002-06-08 Andrew Cagney <cagney@redhat.com>
970 * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
971 * sim_calls.c: Ditto.
973 2002-05-30 DJ Delorie <dj@redhat.com>
975 * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
977 * gen-idecode.c (print_run_until_stop_body): Likewise.
978 * gen-model.c (gen_model_c): Likewise.
980 2002-04-15 Elena Zannoni <ezannoni@redhat.com>
982 * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
983 AltiVec registers as a temporary stopgap.
985 2002-03-24 David O'Brien <obrien@FreeBSD.org>
987 * ppc/hw_disk.c: Export a disk device property.
989 2002-03-23 Andrew Cagney <ac131313@redhat.com>
991 From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
992 * ppc-instructions (lswx): Do the register control with the
993 register count. Initialize the right register in the loop.
994 (mtfsfi) : Correct prefix for the instruction.
996 2002-02-24 Andrew Cagney <ac131313@redhat.com>
999 * std-config.h: Fix grammar and typos. Update copyright.
1002 2002-01-12 matthew green <mrg@redhat.com>
1004 * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
1005 * igen.c (main): Change -I to add include paths for :include:
1007 Implement -G as per sim/igen, with just gen-icache=N support.
1008 Call load_insn_table() with the built include path.
1010 * ld-insn.c (parse_include_entry): New. Load an :include: file.
1011 (load_insn_table): New `includes' argument. Look for :include:
1012 entries and call parse_include_entry() for them.
1013 (main): Adjust load_insn_table() call.
1014 * ld-insn.h (model_include_fields): New enum.
1015 (load_insn_table): Update prototype.
1016 * table.c (struct _open_table, struct _table): Rework
1017 structures to handle included files.
1018 (table_push): Move the guts of table_open() here.
1020 * table.c (struct _open table, struct table): Make table object an
1021 indirect ptr to the current table file.
1022 (current_line, new_table_entry, next_line): Make file arg type
1024 (table_open): Use table_push.
1025 (table_entry_read): Point variable file at current table, at eof, pop
1028 * misc.h (NZALLOC): New macro. From sim/igen.
1030 * table.h, table.c (table_push): New function.
1032 2002-01-04 matthew green <mrg@redhat.com>
1034 * bits.c (LSMASKED64): New inline function.
1035 (LSEXTRACTED64): Likewise.
1036 * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
1037 sim/common/sim-bits.h
1038 (LSMASKED64, LSEXTRACTED64): New functions definitions.
1039 * Makefile.in (sim-bits.o): Remove target.
1041 * main.c (zalloc): Fix typo in error message.
1043 2001-12-16 Andrew Cagney <ac131313@redhat.com>
1045 * configure.in (sim_fpu): Don't add sim-bits.o.
1046 * configure: Re-generate.
1048 2001-12-15 matthew green <mrg@redhat.com>
1050 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
1051 (sim_io_error): New function.
1052 * sim_calls.c: (sim_io_error): New function.
1054 2001-12-14 matthew green <mrg@redhat.com>
1056 * Makefile.in (LIB_OBJ): Add @sim_fpu@.
1057 (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
1058 (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
1059 (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
1060 * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a
1061 check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags.
1062 * configure: Regenerate.
1063 * device.h (device_find_integer_array_property): Match function definition.
1064 * gen-icache.c (print_icache_internal_function_declaration): Rename
1065 INLINE_ICACHE to PSIM_INLINE_ICACHE.
1066 * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
1067 to PSIM_INLINE_IDECODE.
1068 * gen-semantics.c (print_semantic_function_header): Rename
1069 EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
1070 * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
1071 PSIM_INLINE_SUPPORT.
1072 * igen.c (print_function_name): Also escape `(' and `)'.
1073 (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
1074 (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h"
1075 * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
1076 (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
1077 (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
1078 (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
1079 (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
1080 (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
1081 (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
1082 (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
1083 (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
1084 (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
1085 (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
1086 (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
1087 * options.c (options_inline): Fix names.
1088 * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
1089 * sim-endian.h: Likewise.
1090 * sim-main.h: New file.
1091 * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
1093 2001-12-01 Andrew Cagney <ac131313@redhat.com>
1096 * ppc-spr-table: Add SDA and PIR.
1098 2001-10-29 Andrew Cagney <ac131313@redhat.com>
1100 * tree.c (parse_size): Assert #size-cells > 0.
1101 (parse_address): Ditto for #address-cells.
1102 (parse_reg_property): Only parse the size when #size-cells is
1105 2001-10-25 Andrew Cagney <ac131313@redhat.com>
1107 * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
1108 * hw_htab.c (htab_map_binary): Don't try to map the text section
1110 * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
1112 (emul_chirp_create): Map in the interrupt table.
1114 2001-07-16 Daniel Jacobowitz <drow@mvista.com>
1116 * Makefile.in: Add dependencies on $(CPU_H).
1118 Wed Mar 7 10:45:12 HST 2001 Glen Nakamura <gen@lava.net>
1120 * hw_init.c (dma_file): Fixed problem with loading last 1KB of
1123 2001-03-04 Andrew Cagney <ac131313@redhat.com>
1125 * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
1127 (do_stat): Only do SYS test when SYS_stat defined.
1128 (do_sigprocmask): Ditto for SYS_sigprocmask.
1129 (do_fstat): Ditto for SYS_fstat.
1130 (do_getdirentries): Ditto for SYS_getdirentries.
1131 (do_lstat): Ditto for SYS_lstat.
1133 2001-01-15 Geoffrey Keating <geoffk@redhat.com>
1135 * emul_netbsd.c (do_open): Translate the flag parameter to the
1136 open syscall to the numbers supported by the host.
1138 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1140 * sim-endian.h: Don't have parameters on macro definitions which
1141 are simply renaming functions, to permit use of XCONCAT2 in both
1142 the macro name and the arguments in a use of such a definition.
1144 2000-11-15 Jim Blandy <jimb@redhat.com>
1146 * sim_calls.c: Doc fix.
1147 (sim_fetch_register, sim_store_register): Call
1148 gdbarch_register_name directly, instead of going through
1149 REGISTER_NAME macro.
1151 2000-10-24 Geoff Keating <geoffk@cygnus.com>
1153 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
1155 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
1157 * configure: Regenerated to track ../common/aclocal.m4 changes.
1159 Fri Apr 28 15:59:27 2000 Andrew Cagney <cagney@b1.cygnus.com>
1161 * events.c (event_queue_process): Call update_time_from_event
1162 every time an event is removed from the queue.
1163 (update_time_from_event): Delete assertion that a negative
1164 time_from_event implies an empty event queue.
1166 Fri Apr 28 15:53:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
1168 * interrupts.c (deliver_hardware_interrupt): Print time trace in
1170 * events.c (event_queue_process): Cleanup trace message.
1171 (update_time_from_event): Trace full event queue.
1173 2000-03-25 Geoff Keating <geoffk@cygnus.com>
1175 * ppc-instructions (Disabled_Exponent_Underflow): Increment
1176 the exponent when denormalizing.
1178 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1180 * configure: Regenerated to track ../common/aclocal.m4 changes.
1182 1999-05-08 Felix Lee <flee@cygnus.com>
1184 * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
1185 * configure: Regenerated to track ../common/aclocal.m4 changes.
1187 1999-04-02 Keith Seitz <keiths@cygnus.com>
1189 * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
1190 the frequency at which the poll_quit callback is called.
1191 (poll_quit_count): New global.
1192 (sim_io_poll_quit): Only call the poll_quit callback
1193 after the specified POLL_QUIT_INTERVAL.
1195 1999-02-22 Jim Lemke <jlemke@cygnus.com>
1197 * dc-complex: Force expansion on all bits of field BO.
1198 Previously, the least-significant (prediction) bit was ignored.
1199 * ppc-instructions (conditional branches): Implement mpc860c0 option.
1200 * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
1201 * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
1202 * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
1203 * interrupts.c (program_interrupt): Added handling for above interrupt.
1205 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
1207 Make the simulator compatible with the MPC750. It would be nicer
1208 to make this a real multi-sim, but that's more work than we have
1210 * emul_generic.c (emul_add_tree_options): Only require strict
1211 alignment if it was explicitly requested at configuration time.
1212 Don't make it the default for little-endian machines.
1213 * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
1214 MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
1215 THRM2, THRM3): Plop in the MPC750 SPR registers.
1216 (DABR): This is weird. This was HID5, but the PPC spec says this
1217 should be DABR; why did some random processor use it for something
1218 else? The HID5 entry dates back to the original checkin of the
1219 simulator code in 1995, so remove it.
1220 * sim_calls.c (register_names): Delete this; since the user can
1221 now change GDB's list of register names dynamically, we can't
1222 pretend there's a static mapping here.
1223 (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
1224 function to get the register name. That ought to be accurate.
1225 However, we're changing a compile-time dependency (using the
1226 REGISTER_NAMES macro) into a link- and run-time dependency
1227 (calling REGISTER_NAME, which happens to be a function call on the
1230 1999-01-22 Jim Lemke <jlemke@cygnus.com>
1232 * igen.c(gen_semantics_[ch]): setup/use of new option
1234 interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
1235 ppc-instructions(the four branch insn groups): detect problematic br's.
1236 psim.c(is_num - added, psim_options): Parse and init new option.
1237 These changes are currently under #ifdef WITH_OPTION_MPC860C0.
1239 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
1241 * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
1243 Fri Nov 20 12:17:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
1245 * main.c (sim_io_poll_quit): Stub function.
1247 * events.c (SIM_EVENTS_POLL_RATE): Define.
1248 (sim_events_poll): Copy function from common/sim-events.c.
1249 (event_queue_init): Copy scheduling of sim_events_poll from same.
1251 * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
1252 poll the external environment.
1254 1998-11-19 Michael Meissner <meissner@cygnus.com>
1256 * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
1257 fractional type, so that quiet NaN's aren't treated like
1260 Mon Sep 28 09:42:45 1998 Drew Moseley <dmoseley@cygnus.com>
1262 * table.c (table_open): For cygwin hosts, we need to use the
1263 return value from the read routine as the number of bytes to
1264 process. This apparently is due to text-mode vs binary-mode. If
1265 the mounts are done text-mode, then the size returnedby fstat()
1266 may be different than the number of bytes "read" in text mode.
1268 Sun Oct 4 00:50:47 1998 Felix Lee <flee@cygnus.com>
1270 * emul_netbsd.c (do_open): fix order-of-evaluation problem.
1275 1998-09-03 Michael Meissner <meissner@cygnus.com>
1277 * emul_{netbsd,unix}.c: Update copyright year.
1279 Mon Jun 29 10:57:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
1281 * sim_calls.c (sim_fetch_register, sim_store_register):
1282 return zero when nothing to do.
1284 1998-06-26 Michael Meissner <meissner@cygnus.com>
1286 * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
1287 * configure: Regenerate.
1288 * emul_{netbsd,unix}.c (toplevel): No longer try to include
1289 sys/mount.h. It conflicts on Linux when gnu libc2 is used.
1291 Tue May 12 12:10:33 PDT 1998 James Ingham <jingham@leda.cygnus.com>
1293 * Makefile.in: The run target depended on a target psim$(EXEEXT),
1294 but there was no such target, only plain psim. So I changed the
1295 run target to depend on psim.
1297 Sat May 2 01:10:12 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
1299 * aclocal.m4: Remove defs of AM_EXEEXT and AM_CYGWIN32. These are
1300 now defined in ../common/aclocal.m4, and the double definition causes
1301 problems with AC_SUBST of EXEEXT.
1302 * configure: Regenerate.
1304 Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
1306 * aclocal.m4: new file for AM_EXEEXT macro
1307 * configure.in: call AM_EXEEXT
1308 * configure: regenerate with autoconf 2.12.1.
1309 * Makefile.in: add EXEEXT support
1311 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1313 * configure: Regenerated to track ../common/aclocal.m4 changes.
1316 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
1318 * acconfig.h: New file.
1319 * configure.in: Reverted change of Apr 24; use sinclude again.
1320 Don't call AC_C_CROSS.
1322 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1324 * configure: Regenerated to track ../common/aclocal.m4 changes.
1327 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
1329 * Makefile.in (top_builddir): New macro.
1330 (INTLLIBS): New macro.
1331 (INTLDEPS): Likewise.
1332 (psim): Depend on INTLDEPS; link against INTLLIBS.
1333 * configure.in: Call CY_GNU_GETTEXT.
1335 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
1337 * configure: Regenerate with autoconf 2.12.1.
1339 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
1341 * psim.c (psim_read_register, psim_write_register): Handle updates
1344 * registers.c (register_description): Reconize "FPSCR".
1346 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
1347 MSR FP exception mode. Do not enable FPSCR bits.
1348 * emul_unix.c (emul_unix_create): Ditto.
1350 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
1352 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
1353 length parameter. Return -1.
1355 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
1357 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
1358 (is_invalid_zero_divide, invalid_zero_divide_operation): New
1361 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1363 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
1366 1997-11-05 Felix Lee <flee@cygnus.com>
1368 * emul_chirp.c: #ifdef HAVE_UNISTD_H
1370 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1372 * corefile.c (core_attach): Pad out allocated memory regions so
1373 that they are always correctly aligned.
1374 (struct _core_mapping, core_map_attach, core_init,
1375 new_core_mapping): Change free_buffer to type void*.
1377 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
1379 * sim_calls.c (zfree): Call free correctly.
1381 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1383 * sim_calls.c (zfree): Use free, not mfree.
1384 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
1387 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1389 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
1390 mask extracting shift amount. Correctly condition for setting XER
1392 (ldhau): From Johannes Reisinger, update rA after load.
1394 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
1396 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
1398 * words.h: __int64 instead of long long for MSVC.
1400 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1402 * sim_calls.c (sim_create_inferior): Check the simulator was
1403 initialized before creating inferior.
1405 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
1406 sign bit using 64 bit and not a 32 bit mask.
1408 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1410 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
1411 it has been used, not before.
1413 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
1415 * sim_calls.c (sim_kill): Delete.
1416 (sim_create_inferior): Add ABFD argument.
1417 (entry_point): Delete variable.
1418 (sim_load): Move setting of PC from here.
1419 (sim_create_inferior): To here.
1421 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1423 * sim_calls.c (sim_open): Add ABFD argument.
1425 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1427 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
1428 CR register updates dependant on RC value had logic backwards.
1430 * ppc-instructions (Load String Word Immediate): From Brad Parker
1431 - sense of wrap test in check for overwriting RA wrong.
1432 (Load String Word Indexed): Ditto.
1434 * configure.in: From Erik Landry - set sim_default_model not
1435 sim_model for sim-default-model option.
1436 * configure: Regenerate.
1438 * interrupts.c (check_masked_interrupts): Schedule a hardware
1439 interrupt delivery when FP interrupts get enabled.
1440 (program_interrupt): Generate FP exceptions instead of aborting.
1441 (deliver_hardware_interrupt): Deliver a FP exception if so
1444 * registers.h: Add definition of fpscr_vx_bits.
1446 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
1448 (FPSCR_END): Explicitly check for possible floating point
1449 exception conditions.
1450 (FPSCR_BEGIN): Simplify.
1452 * ppc-instructions (Move From FPSCR): Enable.
1453 (Move To FPSCR Bit 1): Ditto.
1454 (Move To FPSCR Bit 0): Ditto.
1455 (Move To FPSCR Field Immediate): Ditto.
1456 (Move to Condition Register from FPSCR): Simplify.
1457 (invalid_arithemetic_operation): Generate a QNaN when invalid
1458 operation exception disabled.
1460 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1462 * sim_calls.c (sim_open): Add callback argument.
1463 (sim_set_callbacks): Delete.
1465 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
1467 * sim_callbacks.h (error): Make declaration match gdb's.
1468 * main.c (error): Ditto.
1470 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1472 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
1473 stopped/SIGINT. Exit implies a status code.
1475 * psim.c (cntrl_c_simulation): From main.c. Event function that
1476 halts the simulator.
1477 (psim_stop): New. Asynchronously schedule a stop simulator event.
1478 (psim_run_until_stop): Delete. Made redundant by psim_stop.
1480 * main.c (cntrl_c): Update.
1481 (cntrl_c_simulation): Moved to psim.c.
1483 * sim_calls.c (sim_stop): New function. Use psim_stop which
1484 schedules a stop event.
1485 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
1486 (sim_resume): Use psim_run as stop variable no longer needed.
1488 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1490 * psim.c (psim_options): Handle -E option correctly.
1491 (psim_usage): Document.
1493 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
1495 * psim.c (psim_options): Ignore -E option (sets endianness).
1496 * sim_calls.c: #include bfd.h.
1497 (entry_point): New static local.
1498 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
1499 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1501 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
1503 * Makefile.in (INSTALL): Set to @INSTALL@.
1504 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1505 (install): Depend upon installdirs. Use $(program_transform_name)
1506 directly, rather than using $(INSTALL_XFORM).
1507 (installdirs): New target.
1509 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
1511 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
1512 rather than the non-portable cat -n.
1514 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
1516 * Makefile.in (INSTALL): Change install.sh to install-sh.
1518 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
1520 * ppc-instructions: Change milhwu to mulhwu.
1522 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
1524 * sim_calls.c (sim_open): New arg `kind'.
1526 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
1528 * COPYING: Update FSF address.
1530 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1532 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
1533 all the required features are supported by the host OS.
1535 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1537 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
1539 * configure.in (enable-sim-endain): Correct typo in usage (from
1540 Erik Landry <landry@ENGR.ORST.EDU>).
1541 * configure: Re-generate.
1543 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1545 * Makefile.in (targ-vals.def): Re-do rule so that it works with
1546 FreeBSD's make. Didn't like $<.
1548 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
1550 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
1552 (other sim_*): New SIM_DESC argument.
1554 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
1556 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
1557 ppc-opcode-simple-switch, ppc-opcode-complex-array,
1558 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
1559 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
1560 superseeded by --sim-decode-mechanism option.
1562 * ppc-opcode-simple, dc-simple: Rename to be 8.3
1563 * ppc-opcode-complex, dc-complex: Ditto.
1564 * ppc-opcode-stupid, dc-stupid: Ditto.
1565 * ppc-opcode-test-1, dc-test.01: Ditto.
1566 * ppc-opcode-test-2, dc-test.02: Ditto.
1568 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
1571 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
1573 * Many of the ppc-opcode-* files are identical baring the type of
1574 lookup table. Instead of having multiple tables, igen can do this
1575 via an additional option.
1577 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
1578 allow the type of generated table specified in the decode file to
1581 * ld-decode.c (load_decode_table): Allow the table type to be
1584 * igen.c (main): Add -T <mechanism> option so that an overriding
1585 instruction decode mechanism can be specified.
1587 * configure.in: New option --sim-decode-mechanism to control
1588 igen's new -T <mechanism> flag.
1589 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
1591 * configure: Regenerate.
1593 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1595 * events.c (event_queue_create): Don't use NULL to initialize an
1597 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
1598 of sigprocmask to appropriate autoconf test.
1600 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
1602 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
1604 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
1605 includes our config.h.
1607 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
1609 * configure.in: Fix typo in test for callback.c.
1610 * configure: Regenerated.
1612 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1614 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
1615 found in the device tree.
1617 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1619 * Property create/initialization still wasn't correctly ordered.
1620 Should be delaying everything related to ihandle creation until
1621 after the rest of the tree has been established.
1623 * device.c (device_find_ihandle_runtime_property): Update.
1624 (device_add_ihandle_runtime_property): Update.
1626 * tree.c (parse_ihandle_property): Delay lookup of the device to
1627 be opened until the ihandle initialization phase.
1628 * tree.c (print_properties): Update.
1630 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1632 * gen-icache.c (print_icache_extraction): Add a reason parameter.
1633 Augment each extracted field with a comment citing the codes
1634 origin. Should simplify tracking down incorrect cache
1637 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1639 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
1640 works for normal and boolean table entries.
1642 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
1643 valid. Handle this just like *_{read,write}_register now handles
1646 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1648 * events.c (insert_event_entry): Correct loop termination
1651 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1653 * psim.c (psim_options): Add new option -c for max-iterations or
1655 (psim_usage): Document.
1656 (psim_max_iterations_exceeded): New function, abort simulation if
1657 max iterations exceeded.
1659 * gen-idecode.c: Re-work the table lookup code so that it assumes
1660 that the entry is a leaf by default. Simplify the boolean table
1661 entry code so that it involves a mask + test instead of shift +
1662 shift + mask + test.
1664 * gen-idecode.c: Correct generated igen body so that it no drops
1665 or doubles clock interrupts.
1668 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1670 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
1673 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
1674 if common callback is present.
1676 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1678 * configure.in (sim_callback): If the gdb is post 4.16, configure
1679 callback support from the common directory.
1680 * configure: Regenerate.
1682 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
1684 (GDB_OBJ): Add callback support configured in.
1685 (gentmap,targ-vals.def): Build from common directory.
1686 (targ-vals.h,targ-map.c): Build by running gentmap.
1687 (callback.o): Build from source in common directory.
1688 (targ-map.o): Add dependency.
1689 (clean): Remove gentmap.
1691 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1693 * igen wasn't aborting if the opcode table contained no valid
1696 * misc.c (name2i): Possibly abort if an invalid name is
1698 * ld-decode.c: Abort if the table type isn't found.
1700 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1702 * When performance monitoring is disabled, it is still possible to
1703 determine the simulation speed by looking at the number of elapsed
1704 ticks recorded by the event queue.
1706 * psim.c (psim_write_register, psim_read_register): Force the cpu
1707 to zero when it is either of `-1' or `nr_cpus'. In both cases the
1708 next cpu would be zero any way.
1710 * mon.c (mon_print_info): If possible, print the system cycle
1711 performance. This is an indication of the number of instructions
1714 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1716 * The code to allow an event queue to be updated during a signal
1717 was missing. For main.c, a cntrl-c simulation termination wasn't
1720 * The simulation would not correctly restart if an event requested
1721 that the simulation be halted.
1723 * psim.c (psim_options): Add hack to -i option to optionally
1724 include a level vis -i2.
1725 (psim_usage): Document.
1727 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
1728 cntrl-c occures schedule an event to halt the simulation.
1729 (main): Catch CNTRL-C signals with the function cntrl_c.
1731 * events.c (event_queue_process): Mask interrupts while
1732 manipulating the async event queue.
1733 (event_queue_init): Ditto.
1734 (event_queue_schedule_after_signal): Ditto.
1736 * events.c (event_queue_process): Mark the event queue as being in
1737 the processing state when processing has started. Adjust code
1738 so that it is tolerant of halts.
1739 (event_queue_init): Start the event queue out with processing
1741 (event_queue_tick): Check that processing isn't still being
1744 * gen-idecode.c (print_run_until_stop_body): Call
1745 event_queue_process_events to clear possibly pending events before
1746 starting a simulation run. Re-arange main loop so that simulator
1747 is correctly restarted when an event halts the simulation.
1749 * psim.c (psim_halt): Handle an event halting the simulation.
1750 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
1753 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1755 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
1756 RA. Based on instruction frequency stats, expand additional
1758 * ppc-instructions: Change all `RA == 0' to RA_is_0.
1760 * ppc-opcode-stupid: Move all but the basic table in -complex into
1761 here. Update to new format.
1763 * Makefile.in (tmp-defines): New target. Force defines.h to always
1764 be built. Hence get ppc-opcode-goto to build.
1766 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1768 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
1771 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1773 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
1774 to be initialized independant of the rest of the simulation
1775 initalization. Otherwize a trace option explictly set from gdb
1776 could be overridden by hw_trace.
1778 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
1780 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
1781 debug.c. It could be much simpler.
1783 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1785 * Some devices support removable media. Add hooks to the disk
1786 device so that it supports this.
1788 * device.c (device_add_string_array_property,
1789 device_find_string_array_property): New functions, manipulate
1790 properties containing an array of strings.
1791 (device_find_string_property): Allow a string array.
1792 (device_init_static_properties): Update.
1793 (device_init_runtime_properties): Update.
1795 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
1796 media. If no file image is specified, use the next one in the
1797 image property list.
1798 (hw_disk_init_address): Change the file property so that it is a
1799 string array - use the first entry for the initial file image.
1801 * tree.c (print_string_aray_property): New function - print a
1803 (print_properties): Adjust.
1804 (print_string): Write a string, handling double quotes.
1806 * device.h: Define an ioctl to `change-media' with an optional new
1809 * hw_disk.c: Allow floppy disk devices to be specified.
1811 * psim.c (psim_command): New function, parse more complex psim
1812 commands such as "change-media" and "trace".
1813 * sim_calls.c (sim_do_command): Use.
1815 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1817 * For expressions like (RA == 0) that are entered in to the cache
1818 as RA_is_0. If possible generate the result of the expression so
1819 that the compiler gets a better chance of eliminating dead
1822 * gen-icache.c (print_icache_extraction): For a cache entry of
1823 the form <name>_is_<const> where it is a boolean field, generate
1824 the result of the expression instead of the expression its self.
1825 (print_icache_body): Remove code that was looking for *_is_0 and
1826 then generating corresponding definitions.
1828 * gen-icache.c (print_icache_struct): If there is no cache, do not
1829 output expressions in idecode.h file.
1831 * gen-icache.c (print_icache_body): Output them here.
1833 * ppc-opcode-complex: Clarify constant values for SPR==LR register
1836 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
1838 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1840 * The code that put values in and extracted values from the cache
1841 was too compilicated. The cache table did not allow values to be
1842 computed from cache entries. #defines could only be used when a
1843 cache was present, remove the restriction.
1845 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
1846 scratch variable is defined when a cache entry is beinf
1847 filled. Change the definition of a COMPUTE variable to be defined
1848 when the cache entry is being used.
1849 * gen-icache.c: Update.
1851 * ld-cache.h, ld-cache.c: Change field names so that their meaning
1852 is more obvious. old_name->field_name, new_name->derived_name.
1853 * gen-icache.c: Update
1855 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
1856 different types of cache code - put into cache, extract from
1857 cache, no cache - an explicit argument to print_icache_body.
1858 * gen-icache.c (print_icache_extraction): Ditto.
1860 * gen-semantics.c (print_c_semantic): Update use.
1861 * gen-idecode.c (print_jump_insn): Update use.
1862 * gen-icache.c (print_icache_function): Update use.
1864 * igen.c (main): Change 'R' option so that it does not force the
1867 * configure.in (enable-sim-icache): Clarify description. Make
1868 #define one of the defaults regardless of the cache. Probably
1869 should revamp and add a separate option.
1871 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1873 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1874 partition numbering.
1875 (pk_disklabel_create_instance): Partition 1..4 are valid - not
1877 (is_iso9660): New function, verify a CD9660 File system.
1878 (pk_disklabel_create_instance): Start expanding so that active
1879 partition selection is supported.
1881 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1883 * The cap object was retaining a reference to the instance of a
1884 device after it was deleted. Instead add and remove cap's from the
1885 cap db as they are created and deleted. This ensuring that a
1886 capibility is only used during the lifetime of the corresponding
1889 * cap.h, cap.c: Correct cap type - was signed32 should be
1892 * cap.c (cap_add, cap_remove): New methods for cap object that
1893 allow the explicit addition and removal of internal objects that
1894 the cap knows about.
1896 * cap.c (cap_init): Rewrite. Verify that the only objects
1897 remaining in the cap data base are those that were entered first.
1898 Thse objects will be the permenant ones.
1899 * device.c (device_init_address): Remember to initialize the cap
1902 * device.c (device_create_instance_from): Explicitly add device
1903 instances to the cap database. Simplify create code.
1904 (device_instance_delete): Explicitly remove device instances from
1907 * device.c (device_create_from): Explicitly add a device to the
1910 * device.c (device_create_from): Always set the cap members.
1912 * hw_disk.c: Output the instance when tracing.
1914 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1916 * tree.c (split_device_specifier): Add support for aliases when
1917 looking up a device. Now needs a device as an argument.
1918 (split_property_specifier): Ditto.
1920 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1922 * The memory "claim" and "release" methods take an address and
1923 size as arguments. These may be multi cell values. Initially fix
1924 the memory code so that they check/detect this. Leave the
1925 adjustment of any clients to later.
1927 * hw_memory.c (hw_memory_instance_claim,
1928 hw_memory_instance_release): Handle multi-cell memory devices.
1930 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1931 release of memory regions that were not claimed.
1933 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1935 * device.h, device.c (device_instance_call_method): Correct return
1936 type - can return either 0 or -1, hence should be a signed type.
1937 * device_table.h: Ditto.
1939 * hw_memory.c (hw_memory_instance_claim,
1940 hw_memory_instance_release): Update.
1941 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1942 hw_disk_nr_blocks): Ditto.
1944 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1946 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1947 method belonging to "/chosen/memory".
1948 (chirm_emul_release): Ditto.
1950 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1951 that are inlined. These modules are called via a table and are
1954 * hw_init.c (update_for_binary_section): Fix failure to allocate
1955 memory used by the binary in real-mode executions. If "claim"
1956 property is present, allocate memory from the "/chosen/memory"
1959 * emul_chirp.c (emul_chirp_create): Specify that memory should be
1960 claimed when loading a real image.
1962 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1965 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1966 when merging adjacent memory chunks.
1968 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1970 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1971 optional PROCESSOR & CIA args so that this routine also abort an
1974 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1975 miss-aligned access when a transfer fails abort.
1977 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1978 instead of the vm_read_buffer.
1979 * emul_netbsd.c (do_write): Ditto.
1980 * emul_unix.c (do_unix_write): Ditto.
1982 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1984 * configure.in (--enable-sim-jump): Default is NULL and not -E.
1985 * configure: Regenerate.
1987 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1988 (UNUSED): Only enable UNUSED if GCC >= 2.7.
1990 * gen-icache.c (print_icache_extraction): Print UNUSED macro
1991 instead of explicit __unused__ attribute.
1992 (print_icache_body): Ditto.
1993 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1995 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
1997 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
2000 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
2001 arguments so that there is a reference point for recovery.
2002 (vm_synchronize_context): Pass processor+cia for errors.
2003 (om_unpack_sr): Ditto.
2004 (om_unpack_srs): Ditto.
2005 * vm.c (vm_create): Review error messages.
2007 * vm.c: Include "cpu.h" so that cpu_error is visible.
2009 * ppc-instructions (Return From Interrupt): Pass CIA.
2010 (Instruction Synchronize): Ditto.
2011 * psim.c (psim_init): Ditto.
2013 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2015 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
2016 but also saves current processor state.
2018 * basics.h: Move #include <stdarg.h> to here from device_table.h.
2020 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
2021 when simulation aborted.
2022 (program_interrupt): Ditto.
2023 (floating_point_unavailable_interrupt): Ditto.
2024 (alignment_interrupt): Ditto.
2025 (floating_point_assist_interrupt): Ditto.
2026 (perform_oea_interrupt): Ditto.
2027 (machine_check_interrupt): Ditto.
2029 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2031 * ppc-instructions (Move from Special Purpose Register): Support
2034 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2036 * debug.h, debug.c: Add "interrupts" trace option.
2038 * interrupts.c (data_storage_interrupt): Add tracing.
2039 (machine_check_interrupt): Ditto.
2040 (instruction_storage_interrupt): Ditto.
2041 (alignment_interrupt): Ditto.
2042 (program_interrupt): Ditto.
2043 (floating_point_unavailable_interrupt): Ditto.
2044 (system_call_interrupt): Ditto.
2045 (floating_point_assist_interrupt): Ditto.
2046 (deliver_hardware_interrupt): Ditto.
2048 * interrupts.c (program_interrupt): For UEA mode, halt the
2049 processor - so that the current state is saved - instead of
2051 (floating_point_unavailable_interrupt): Ditto.
2052 (floating_point_assist_interrupt): Ditto.
2054 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2056 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
2059 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2061 * ppc-instructions (Store Multiple Word, Load Multiple Word):
2064 * tree.c (print_properties): For an array consider printing it out
2065 as an integer array.
2067 * hw_memory.c (hw_memory_init_address): If an "available" property
2068 is present, use that to initialize the available memory instead of
2069 using the reg property.
2071 * emul_generic.c (emul_add_tree_hardware): Add "available"
2072 property to memory device.
2074 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2076 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
2078 * device.c (device_instance_call_method): Was only looking at the
2081 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
2082 (hw_disk_block_size): Implement block-size method.
2083 (hw_disk_max_transfer): Implement max-transfer method.
2085 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
2087 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
2089 (chirp_emul_instance_to_package): Ditto.
2090 (chirp_emul_method): Ditto.
2091 (chirp_emul_read): Ditto.
2092 (chirp_emul_write): Ditto.
2093 (chirp_emul_close): Ditto.
2094 (chirp_emul_seek): Ditto.
2095 (chirp_emul_package_to_path): Ditto (for phandle).
2096 (chirp_emul_package_to_path): Return the length.
2098 * psim.c (psim_merge_device_file): Allow continuation lines.
2100 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2102 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
2105 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
2106 members - *_cell not host dependant int.
2108 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2110 * interrupts.c (perform_oea_interrupt): Print additional
2111 information if a double interrupt is encountered.
2113 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2115 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
2116 being specified with the -f option.
2117 (psim_merge_device_file): Correct check for end of string.
2119 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2121 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
2122 list of devices. Return zero to the client instead.
2123 * emul_chirp.c (chirp_emul_child): Ditto
2124 * emul_chirp.c (chirp_emul_parent): Ditto
2126 * device.c (device_root): Assert assumption about the device being
2129 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2131 * emul_chirp.c (emul_chirp_create): Add description property to
2132 each significant node in the device tree.
2133 * emul_bugapi.c (emul_bugapi_create): Ditto.
2135 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2137 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
2138 tempoary two byte buffer. Single byte read with fgets will not
2140 * main.c: Include errno.h.
2141 (sim_io_read_stdin): For non-STDIO, make it work.
2143 * emul_chirp.c (chirp_emul_read): Return the correct error status.
2145 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2147 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
2148 Instead have each emulation default it to DO_USE_STDIO.
2150 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
2151 mechanism as the default if enabled or if nothing selected.
2153 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
2155 (sim_io_write_stdout): Ditto.
2156 (sim_io_write_stderr): Ditto.
2157 * main.c (sim_io_write_stdout): Ditto.
2158 (sim_io_write_stderr): Ditto.
2159 (sim_io_read_stdin): Ditto.
2161 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2163 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
2165 * vm.c (om_effective_to_virtual): Ditto.
2166 * events.c (event_queue_schedule{,_after_signal}): Ditto.
2167 (event_queue_{deschedule,process}): Ditto.
2168 * hw_htab.c (htab_decode_hash_table): Ditto.
2169 (htab_map_{page,binary}): Ditto.
2170 * hw_opic.c (hw_opic_init_data): Ditto.
2171 (handle_interrupt): Ditto.
2172 (do_processor_init_register_{read,write}): Ditto.
2173 (write_vector_priority_register): Ditto.
2174 ({read,write}_destination_register): Ditto.
2175 (do_suprious_vector_register_{read,write}): Ditto.
2176 (do_current_task_priority_register_N_{read,write}): Ditto.
2177 (do_timer_frequency_reporting_register_{read,write}): Ditto.
2178 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
2179 (do_ipi_N_dispatch_register_write): Ditto.
2180 (do_vendor_identification_register_read): Ditto.
2181 (do_feature_reporting_register_N_read): Ditto.
2182 (do_global_configuration_register_N_{read,write}): Ditto.
2183 * hw_phb.c (hw_phb_attach_address): Ditto.
2184 (hw_phb_unit_decode): Ditto.
2185 (hw_phb_address_to_attach_address): Ditto.
2186 (hw_phb_io_{read,write}_buffer): Ditto.
2187 * hw_ide.c (setup_fifo): Ditto.
2189 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
2190 files via -I<dir> instead of using "../../gdb/" prefixes.
2192 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2194 * debug.h: Add tracing for the pal device.
2197 * emul_chirp.c (chirp_emul_getprop): More tracing.
2199 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2201 * device.h, device.c (device_find_ihandle_runtime_property): New
2202 function. Reverse of add_ihandle_runtime property.
2203 (device_init_runtime_properties): Use it.
2205 * device.c (find_property_entry): New function returns the
2206 internal property spec.
2207 (device_set_property): Use.
2208 (device_find_property): Use.
2210 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2212 * psim.c (psim_merge_device_file): Strip newline from device
2215 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2217 * hw_htab.c (htab_map_binary): For overlapping text / data maps
2218 merge the two. Also check that the merge is safe.
2220 * emul_chirp.c (emul_chirp_create): Add a description property to
2221 the pte's so that they are easier to identify.
2223 (emul_chirp_create): Don't specify a load address for the CHRP
2224 image. Always use the values specified by the executable.
2226 * hw_htab.c (htab_map_page): Abort if a duplicate map is
2229 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2231 * hw_htab.c (htab_map_page): Formatting.
2233 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
2234 method name when handling the client call. Also check for other
2237 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
2238 etc to be overriden.
2240 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2242 * os_emul.c (os_emul_create): Use tree find property instead of
2243 device find property - sigh.
2245 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2247 * 961205: Release snapshot 961205.
2249 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2251 * configure.in (hostbitsize, bitsize): Fix typo in error message -
2252 cannot contain a comma.
2253 (sim-warnings): Check for more potential errors.
2255 * psim.c (psim_usage): Add -f <file> option. Specifies a file
2256 containing device tree specifications that should be merged into
2259 * configure.in: Sort options.
2260 * configure: Rebuild
2262 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2264 * psim.c (psim_usage): Add -n option - specify number of
2267 * emul_chirp.c: Add description.
2268 * emul_bugapi.c: Ditto.
2269 * emul_unix.c: Ditto.
2270 * emul_netbsd.c: Ditto.
2272 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2274 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
2275 encountered, assume that it is the single disk.
2276 * hw_pal.c: Add generic device/size decode methods.
2278 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
2279 property entry when determining the nvram size.
2281 * hw_core.c: Add generic address/size decode methods.
2283 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
2284 nonzero status from client functions.
2286 * main.c (error): Always include a cariage return when writing out
2289 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
2291 * sim_calls.c (sim_resume): Reset sim_should_run if single
2294 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
2296 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
2299 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
2300 Attach the pal - for I/O - as a pseudo device haning from the
2303 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
2304 the device tree at the address of the hi-mem interrupt vector
2305 addreses. Used by bugapi to establish its trap instructions.
2307 * debug.h: Add a new macro DITRACE for tracing device instances.
2309 * debug.h: Extend the DTRACE macro so that it can also tests for
2310 device specific tracint.
2312 * device.h, device.c (device_trace): Add method to determine
2313 device specific tracing.
2314 (device_init_address): Set the devices tracing level.
2316 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2318 * tree.h, tree.c (tree_device): New files - separate out the
2319 device parser and other tree operations from the device.
2321 * inline.h, inline.c (INLINE_TREE): Add.
2322 * device.h, device.c (device_tree_add_parsed): Delete.
2323 * Makefile.in (tree.c): Add rules for new file.
2324 * Makefile.in: Better order the emul_* files.
2326 * emul_generic.c (emul_add_tree_hardware): Update.
2327 * emul_netbsd.c (emul_netbsd_create): Update.
2328 * emul_unix.c (emul_unix_create): Ditto.
2329 * emul_chirp.c (emul_chirp_create): Ditto.
2330 * emul_bugapi.c (emul_bugapi_create): Ditto.
2331 * psim.c (psim_tree): Ditto.
2334 * emul_generic.h: Include tree.h
2335 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
2337 * device.h, device.c (device_root): New function - returns the
2341 * device.h, device.c (device_clean): New function, clean up device
2342 ready for next simulation run. This includes things like deleting
2343 interrupt edges and properties created during the simulation and
2344 also scrubbing any pre-defined properties.
2345 * tree.c (tree_init): Use.
2347 * device.h, device.c (device_init_static_properties): New
2348 function. Initialize any static predefined properties. By static
2349 we mean those that have values that can be determined before the
2350 device tree initialization has started.
2351 * tree.c (tree_init): Use.
2353 * device.h, device.c (device_init_address): Add code to
2354 check/verify the devices #address-cells and #size-cells.
2355 (device_add_integer_property): Delete corresponding code.
2356 (device_nr_address_cells, device_nr_data_cells): Check for
2357 property when returning value.
2359 * device.h, device.c (device_init_runtime_properties): New
2360 function. Initialize those properties that are not `static'. At
2361 present the only such property is the ihandle.
2362 * tree.c (tree_init): Use.
2364 * device.h, device.c (reg, ranges): Rework these so that they use
2365 an array of the fundamental type - single reg or single range
2368 * device.h, device.c (device_add_ihandle_runtime_property):
2369 Re-implement the adding of an ihandle during tree construction so
2370 that it better fits in with device initialization.
2372 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2374 * device.h, device.c (device_ioctl): Add additional argument -
2375 request - so that the caller must always specify the type of
2378 * device_table.h: Update.
2379 * hw_trace.c (hw_trace_ioctl): Ditto.
2380 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
2381 * hw_init.c (hw_stack_ioctl_callback): Ditto.
2382 * psim.c (psim_options): Ditto.
2384 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2386 * BUGS: Updated a bit.
2388 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2390 * hw_opic.c: Finish - third round.
2392 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2394 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
2396 (hw_glue_io_write_buffer_callback): Ditto.
2398 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2400 * events.c (event_queue_process): Was incorrectly consuming future
2401 events on the queue when they should be left alone.
2403 * debug.h, debug.c (events): Add support for event queue tracing.
2404 * events.c: Add event tracing.
2406 * debug.h, debug.c: Order device trace options.
2408 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2410 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
2411 warnings generated by GCC.
2413 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2415 * sim-endian.h: Add LE versions of byte swap macros. Needed for
2416 PCI devices which are little-endian.
2418 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
2420 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2422 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
2423 so that it is implementing a 1-1 address map.
2425 * emul_generic.c (emul_add_tree_hardware): Adjust.
2427 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
2430 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2432 * device.c (split_find_device): Be tolerant of missing unit
2435 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2437 * basics.h (port_direction): New type, specify the direction of
2440 * device.h, device.c (device_interrupt_decode): Include
2441 specification of port direction in operations.
2442 (device_interrupt_encode): Ditto.
2444 * device_table.h: Add a direction field to the interrupt port
2447 * device.c (device_tree_add_parsed): Specify port direction.
2449 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2451 * hw_opic.c: Finish - second round.
2453 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2455 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
2456 to be specified as an array which allows 64bit addresses.
2458 * device.c (device_find_integer_array_property): New function.
2459 Simplify the querying of elements of an integer array.
2460 (device_add_integer_property, device_find_integer_property):
2461 Update to correctly use the cell type.
2463 * vm.c (om_unpack_sr): Clarify shifting comment.
2464 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
2466 * emul_chirp.c (emul_chirp_create): Initialize the segment
2469 * vm.c (om_effective_to_virtual): Trace segment register use.
2471 * hw_htab.c (htab_map_page): Print out the pteg base address to
2472 simplify cross checking between vm and the htab.
2473 (htab_decode_hash_table): Use device_error instead of error.
2474 (htab_map_page): Ditto.
2475 (htab_dma_binary): Ditto.
2476 (htab_map_binary): Ditto.
2477 (htab_init_data_callback): Ditto.
2479 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2481 * interrupts.h: Clarify what the optional instruction program
2482 interrupt is - a subset of illegal instruction program interrupt.
2484 * interrupts.c (program_interrupt): For UEA mode, clarify what an
2485 optional instruction program interrupt is.
2486 (program_interrupt): For OEA mode, as per spec, generate an
2487 illegal instruction program interrupt when an optional instruction
2490 * gen-semantics.c (print_semantic_body): Delete code
2491 differentiating between an unimplemented floating point and normal
2492 instruction. Instead, such a case can be handled explicitly.
2494 * ppc-instructions (store floating-point as integer word indexed):
2496 (Floating Convert to Integer Doubleword): Make the floating point
2497 assist interrupt explicit.
2498 (Floating Convert To Integer Doubleword with round towards Zero):
2500 (Floating Convert To Integer Word): Ditto
2501 (Move From FPSCR): Ditto.
2502 (Move to Condition Register from FPSCR): Ditto.
2503 (Move To FPSCR Fields): Ditto.
2504 (Move To FPSCR Field Immediate): Ditto.
2505 (Move To FPSCR Bit 0): Ditto.
2506 (Move To FPSCR Bit 1): Ditto.
2508 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2510 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
2511 breaking up transfers.
2513 * corefile.c: Adjust arguments so that the client server
2514 relationship is clarified.
2516 * hw_glue.c (hw_glue_init_address): Update so it can be attached
2519 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
2520 looking for things like overflow/underflow.
2522 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2524 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
2525 PAL device instead of the IOBUS. The disk must be attached to a
2528 * hw_disk.c (hw_disk_init_address): Just use the unit address
2529 directly in the attach - the rest isn't relevant.
2531 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2533 * configure.in (sim-hardware, sim-packages): Allow additional
2534 hardware and packages to be prefixed as well as appended.
2536 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
2537 packages when building them. Consequently, a user can override a
2538 standard device by prefixing their own version.
2540 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
2542 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2544 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
2546 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
2547 (mon_print_info): Correct typo regarding # of unaligned reads and
2548 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
2551 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2553 * configure.in (AC_CHECK_FUNCS): Add access.
2554 * config{.in,ure}: Regenerate.
2556 * emul_unix.c (do_unix_nop): System call that always succeeds.
2557 (do_unix_access): Support access system call.
2558 (solaris_descriptors): Make sigaltstack and sigaction nops.
2559 ({solaris,linux}_descriptors): Add support for access.
2561 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
2563 * Makefile.in (clean): Move config.log to distclean.
2565 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2567 * corefile-n.h (core_map_write_N): Improve abort messages.
2569 * device.h, device.c (device_attach_address): Remove unused name
2571 (device_detach_address): Ditto.
2572 * device_table.h, device_table.c: Update.
2573 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
2574 * hw_nvram.c (hw_nvram_init_address): Ditto.
2575 * hw_memory.c (hw_memory_init_address): Ditto.
2576 * hw_vm.c (hw_vm_init_address_callback): Ditto.
2577 (hw_vm_attach_address): Ditto.
2578 (hw_vm_add_space): Ditto.
2579 * hw_init.c (update_for_binary_section): Ditto.
2580 * hw_core.c (hw_core_attach_address_callback): Ditto.
2582 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
2583 configurable parent busses.
2585 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2587 * device_table.c (generic_device_size_to_attach_size): Provide
2588 limited support for multi-cell sizes.
2589 (generic_device_address_to_attach_address): Ditto for addresses.
2591 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2593 * device.c (device_add_integer_property): Check for setting of
2594 #address-cells and #size-cells properties. For these, update the
2595 corresponding device values.
2596 (device_nr_address_cells, device_nr_size_cells): Use the value
2597 from the device instead of the property.
2599 * hw_core.c: Use generic address and size conversions for the top
2602 * hw_memory.c (hw_memory_init_address): Tolerate case where
2603 #address and #size cells is greater than 1.
2605 * device.c (device_tree_print_device): Clean out printing of
2608 * device.c (split_device_specifier): Don't detect comments here -
2609 "#" can be a valid prefix - eg #size-cells.
2611 * psim.c (psim_merge_device_file): Suppress comments and blank
2614 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
2615 pal unit address. Add the property /#address-cells to the root of
2618 * device.c (device_template_create_device): Check that the unit
2619 address was successfully parsed.
2621 * device_table.c (generic_device_unit_decode): Rewrite to better
2622 handle multi-cell addresses.
2623 (generic_device_unit_encode): Ditto.
2625 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
2626 longer need the explicit array type - the parser takes care of it.
2628 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
2631 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2633 * hw_ide.c: New file. Model of a basic IDE interface attached to
2636 * configure.in (hardware): Add the ide device to the default
2638 * configure: Regenerate.
2640 * debug.h, debug.c: Add tracing option for the IDE device.
2642 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2644 * hw_phb.c, hw_phb.h: New files - implement a PHB.
2646 * configure.in (hardware): Add the phb to the list of devices to
2649 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2651 * hw_com.c: Review description.
2654 * hw_eeprom.c: Ditto.
2658 * hw_com.c: Update event handling.
2660 * hw_disk.c: Implement tracing.
2662 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2664 * device_table.c (generic_device_init_address): Use
2665 assigned-addresses property in preference to any other reg
2668 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2670 * device.h, device.c (device_find_ranges_property): New function.
2671 Simplify the manipulation of "ranges" properties.
2673 * device.c (device_add_parsed): Extend to include support for the
2676 * device.c (device_add_parsed): Add assigned-addresses to the list
2677 of reg type properties.
2679 * device.c (device_tree_print_device): Add code to format and
2680 print a ranges property.
2682 * device.h, device.c (device_nr_address_cells,
2683 device_nr_size_cells): New functions. Determine the values of the
2684 standard properties #address-cells and #size-cells. Both of which
2685 are optional and have default values of two and one respectfuly.
2686 Previously, code that determined #address-cells was incorrectly
2687 using a value of one.
2689 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2691 * debug.h, debug.c: Sort debug options, Add entries for the
2694 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2696 * ppc-instructions (Floating Select): Add support for fsel unless
2697 model is 601. Allow user to filter out instruction unless -Fs is
2699 (Store Floating-Point as Integer Word Indexed): Raise optional
2700 instruction program abort. Allow user to filter out instruction
2701 unless -Fs is passed to igen.
2702 (Floating Square Root{, Single}): Ditto.
2703 (Floating Reciprocal Estimate Single): Ditto.
2704 (Floating Reciprocal Square Root Estimate): Ditto.
2706 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
2708 * configure: Regenerate.
2710 * interrupts.h (program_interrupt_reasons): Add
2711 optional_instruction_program_interrupt.
2713 * interrupts.c (program_interrupt): Call error with more detailed
2714 information on program interrupts, particularly in user mode. Add
2715 support for optional_instruction_program_interrupt.
2717 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2719 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
2721 * debug.h, debug.c (trace_glue_device): Add tracing support for
2722 the interrupt glue logic device.
2724 * configure.in (hardware): Add glue device.
2725 * configure: Regenerate.
2727 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2729 * device.c (device_tree_parse_integer_property): New function,
2730 parse a list of integers as an array property.
2731 (device_tree_add_parsed): Call it.
2733 * device.c (device_tree_parse_string_property): New function,
2734 parse a list of strings as a string property (with embeded
2735 null's). For moment, don't try to implement a complext string
2737 (device_tree_add_parsed): Call it.
2739 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2741 * hw_opic.c: New file. OpenPIC interrupt controller.
2743 * configure.in (hardware): Add opic device.
2744 * configure: re-generate.
2746 * hw_pic.c: Delete, replaced with hw_opic.c.
2748 * debug.h, debug.c: Add debug option for OpenPIC device. -
2751 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2753 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
2754 now the file that does all the inlining.
2756 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
2757 library source code that could be involved in an inlining. Make
2758 idecode.o only dependant on the inlined library source code.
2760 * Makefile.in (LIB_OBJ): Put options last on the list so that it
2763 * std-config.h (DEVICE_INLINE): Only inline locals when the
2764 default is to inline.
2766 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2768 * hw_htab.c (htab_sum_binary): Determine the real-base for the
2771 * hw_htab.c (htab_map_binary): Depending on the value of the
2772 load-base, either map the program in as a contiguous section or as
2773 separate sections controled by th binaries lma values.
2774 (htab_init_data_callback): Ditto.
2776 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2778 * emul_generic.c (emul_add_tree_options): Remove load-base option.
2780 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
2781 struct. Don't require the load_base field to be present - just
2782 issue warning - it is a recent addition.
2783 (emul_chirp_create): Support both virtual and physical modes.
2785 * emul_chirp.c (emul_chirp_create): Add a stack initialization
2786 property so that any arguments specified on the command line can
2787 be passed on to user programs.
2789 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
2790 argument passing to the pseudo device stack.
2792 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2794 * device.c (device_error): Make it more tolerant to incomplete
2797 * hw_init.c (hw_data_init_data_callback): Extend the data device
2798 so that it can perform initialization operations either dma or a
2799 more complex instance open, seek, write operation.
2800 * hw_init.c: Update the description of the data device to reflect
2803 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2805 * device.c (device_event_queue_schedule,
2806 device_event_queue_deschedule, device_event_queue_time): Have the
2807 device object export the event operations. Making these available
2808 from the device object should hopefully simplify writing device
2811 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2813 * configure.in (sim-hardware): Add eeprom device to default build.
2815 * hw_eeprom.c: Rewrite so it works.
2817 * debug.h, debug.c: Add tracing support for the eeprom and com
2820 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2822 * debug.h: Add disklabel-package and disk-device trace options.
2823 debug.h (PTRACE): Add macro to simplify tracing in packages.
2825 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2827 * device.c (device_create_instance_from): Tighten up loop
2828 searching for device instances.
2829 (device_instance_delete): Ditto.
2830 (device_instance_delete): Only leaf instances need to be removed
2831 from a devices list of active instances.
2833 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2835 * hw_disk.c: Add the cdrom as an alias.
2837 * pk_disklabel.c (disklabel_delete): Implement, remembering to
2838 delete the raw disk instance while we're at it.
2840 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
2841 little bit more - still a long way to go.
2843 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
2844 new head position after a read or write.
2846 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2848 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
2849 the internal buffer.
2851 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2853 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
2854 in the correct order.
2856 * emul_chirp.c (chirp_emul_call_method): Correct computation for
2857 the address of the first stack argument passed in from the client
2860 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2862 * words.h: Add new types signed_cell and unsigned_cell which
2863 correspond to the signed and unsigned IEEE 1275 memory locations.
2864 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
2865 memory cell, replace uses of unsigned32 with unsigned_cell.
2866 * device_table.h: Ditto.
2868 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2869 convert cell sized values to from big endian.
2870 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2871 use these new macros.
2873 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2875 * device.c (device_tree_add_parsed): Detect and report an
2876 interrupt being attached to an invalid device. Was dumping core.
2878 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2880 * device.h, device.c (device_address_to_attach_address,
2881 device_size_to_attach_size): New functions. Convert a devices
2882 unit address or unit size structure into a form suitable for
2883 passing on to the attach and detach functions.
2884 * device_table.h: Add extra methods to device table.
2886 * device.h, device.c (device_find_reg_property): New function.
2887 For a reg type property, return the selected address + size
2888 tupple, along with a positive success status. Add a reg_property
2889 to the list of property types.
2890 * (device_tree_add_parsed): Make array properties with the name
2891 reg or alternate-reg of type reg_property.
2893 * hw_memory.c (hw_memory_init_address): Rewrite to use new
2894 find_reg_property method.
2895 * hw_nvram.c (hw_nvram_init_address): Ditto.
2897 * device.c (device_tree_print_device): Add code to print out a reg
2900 * device_table.c (generic_device_address_to_attach_address,
2901 generic_device_size_to_attach_size ): New functions. Generic
2902 functions for converting between unit and attach address or size.
2904 * device_table.c (generic_device_init_address): Rewrite to use the
2905 new find_reg and address convert functions. Look for both reg and
2906 alternate-reg properties.
2908 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2910 * hw_com.c: New file. A '550 serial device that can quickly be
2911 attached to any bus.
2912 * configure.in (enable-sim-hardware): Add the com device.
2913 * configure: re-generate.
2915 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2917 * device.c (device_tree_verify_reg_unit_address): New
2918 function. Check that the unit address as specified by the reg
2919 property correctly corresponds to any unit address previously
2920 specified by the devices name.
2921 (device_tree_add_parsed): When adding a reg property, verify
2922 that the unit-address - first value of property - correctly
2923 matches any previous value specified when creating the device
2926 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2928 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2930 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2932 * device.c (device_full_name): Cast strdup to char *, since AIX
2933 3.2.5 mistakenly declares the function to be const char *.
2934 (device_create_from): Ditto.
2935 (device_create_instance_from): Ditto.
2936 (device_add_property): Ditto.
2938 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2940 * debug.c (trace_option): For -t all, do not set the
2941 trace_dump_device_tree flag, so that the simulator is run.
2943 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2945 * Makefile.in (options.o): Depend on defines.h.
2946 (defines.h): New rule, go through config.h and make strings of all
2947 of the #define HAVE_xxx macros.
2948 (distclean): Remove defines.h.
2950 * options.c (print_options): Print whether many of the
2951 configuration macros are defined.
2953 * main.c (main): If -t options and no filename, just print the
2954 options, and don't print the usage message.
2956 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2958 * configure.in: Test whether /dev/zero works on the system, and if
2959 it does, define HAVE_DEVZERO.
2960 * configure: Regenerate.
2962 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2963 if we don't have a working /dev/zero on the system.
2965 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2966 defined, don't add disk support.
2967 (emul_bugapi_do_diskio): Ditto.
2968 (emul_bugapi_instruction_call): Ditto.
2970 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2972 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2973 defined, make sure HAVE_TCGETATTR is #undef'ed
2975 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2977 * std-config.h (REGPARM): Only define REGPARM attributes if using
2978 GNU C. Test for __i686__ in case GCC ever defines it. If not on
2979 a x86 platform, define REGPARM as nothing.
2981 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2984 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2986 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2988 * gen-idecode.c: Ditto.
2990 * gen-idecode.c (print_idecode_table): Comment out check for
2991 switch/table combination until a bug with it is fixed.
2993 * ppc-opcode-goto: New file. Like complex and flat but uses
2994 goto-switch instead of padded-switch for the tables.
2996 * gen-idecode.c (print_goto_switch_name): New function.
2997 (print_goto_switch_table_leaf): New function.
2998 (print_goto_switch_break): New function.
2999 (print_goto_switch_table): New function. Prints a jump table
3000 that can be jumped into instead of a switch statement.
3002 * gen-idecode.c (*switch_*): As an option output a switch that is
3003 implemented using a jump table but only if the switch is not
3006 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3008 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
3009 * configure: Regenerate.
3011 * device.c (device_instance_call_method): Fixup format message in
3012 error case. Return 0 in case of error to shut up compiler
3015 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3017 * device_table.c (generic_device_unit_decode): Require a comma
3018 between elements of a unit address.
3020 * device.c (device_tree_print_device): For reg, alternate-reg and
3021 ranges properties use special print functions.
3022 (device_print_ranges_property): Print formatted ranges property.
3023 (device_print_reg_property): Print formatted reg property.
3025 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3027 * device.c (device_tree_add_parsed): For reg, ranges and
3028 alternate-reg properties use a special parser.
3029 (device_tree_parse_reg_property): New function to parse a reg
3031 (device_tree_parse_ranges_property): New function to parse a
3033 (device_encode_unit): Wrapper for encode_unit callback.
3034 (device_decoce_unit): Wrapper for decode_unit callback.
3036 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3038 * device_table.h (device_instance_callbacks): Relace the claim and
3039 release methods with a more general table mapping from method-name
3042 * device.c (device_instance_call_method): New function. Implement
3043 the OpenBoot call-method client interface. Attempts to locate the
3044 instances method in the callback table.
3045 (device_instance_claim, device_instance_release): Delete.
3046 Replaced with call-method and a lookup table.
3048 * emul_chirp.c (chirp_emul_call_method): Use the new device
3049 instance call method and let that handle a client claim call.
3051 * hw_htab.c (claim_memory): Wrapper function to call the memory
3052 devices "claim" method using the new device-instance call-method
3053 interface. Replaces the previous direct calls to claim.
3054 (htab_map_region): Use claim_memory.
3055 (htab_init_data_callback): Ditto.
3057 * hw_memory.c (hw_memory_instance_claim): Update function
3058 interface so that it is compatible with call-method.
3059 (hw_memory_instance_release): Ditto.
3060 (hw_memory_instance_methods): New table of memory specific
3061 methods claim and release. Add to the hw_memory_callback
3064 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3066 * psim.c (psim_init): Back out of change to initial value of
3069 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3071 * sim_callbacks.h (sim_io_printf_filtered): Replace
3072 printf_filtered with a local simulator specific version. Add
3073 #define printf_filtered to simplify updating of existing code.
3075 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
3076 sim_io_write_stderr): New functions. Read / write to the
3077 simulations stdin and stdout and stderr interfaces. Merge in code
3078 from hw_pal that previously handled async I/O.
3079 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
3080 flush_stdoutput to simplify updating of existing code.
3082 * hw_pal.c (scan_hw_pal, write_hw_pal,
3083 hw_pal_instance_write_callback): Use the new sim_io functions.
3085 * main.c: Implement standalone versions of the new sim_io
3086 functions. Include support for async I/O.
3087 * sim_calls.c: Ditto. This time using the gdb callback table.
3089 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
3090 stdio configuration so that it works in the same way as the rest
3092 * psim.c (psim_create): Initialize current_stdio from the device
3094 * emul_generic.c (emul_add_tree_options): Enter a default value
3095 for use-stdio in the device tree.
3097 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3099 * gen-idecode.c (print_jump): Was always generating a jump back to
3100 idecode. Only necessary at tail of semantic code.
3101 (print_jump): Was always setting the processor's cia, even during
3102 startup when the processor was still undefined.
3103 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
3106 * options.c (print_options): Add printing of WITH_REGPARM and
3109 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
3110 (disabled) values if not defined.
3112 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3114 * ppc-cache-rules (cache): Change RS and RB to cache instead of
3115 compute. The block move instructions use them.
3117 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
3119 (CR_FIELD): New macro, extract specific CR register.
3120 (FPSCR_FIELD): New macro, extract specific FPSCR register.
3122 * registers.h (GPR): New macro, simplify accesses to GPR[i].
3124 * bits.c (INSERTED): Covert INSERTED macro into a function.
3125 (EXTRACTED): Conditionally compile on correct bit size macro.
3127 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
3129 * ppc-instructions: With hints from Paul Martin, type in missing
3130 some instruction semantics. Leave disabled for the moment.
3131 (Load Multiple Word): Ditto.
3132 (Store Multiple Word): Ditto.
3133 (Load String Word Immediate): Ditto.
3134 (Load String Word Indexed): Ditto.
3135 (Store String Word Immedate): Ditto.
3136 (Store String Word Indexed): Ditto.
3137 (Move to Condition Register from XER): Ditto.
3138 (Move From Condition Register): Ditto.
3139 (Move From FPSCR): Ditto.
3140 (Move to Condition Register from FPSCR): Ditto.
3141 (Move To FPSCR Field Immediate): Ditto.
3142 (Move To FPSCR Fields): Ditto.
3143 (Move To FPSCR Bit 0): Ditto.
3144 (Move To FPSCR Bit 1): Ditto.
3146 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3148 * std-config.h (SEMANTICS_INLINE): By default, mask out the
3149 inlining of semantic functions from DEFAULT_INLINE. Almost all
3150 configurations call the semantic code via a pointer so there is
3153 * std-config.h (ICACHE_INLINE): Ditto.
3155 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3157 * configure.in (sim_regparm): Add configuration option for
3158 enabling GCC's regparm attribute.
3159 * (sim_stdcall): Add configuration option for enabling GCC's
3162 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
3164 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
3166 * std-config.h (REGPARM): Extend construction of REGPARM macro so
3167 that it can include __stdcall__ function attribute.
3169 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
3171 * options.c (print_options): Include SUPPORT_INLINE in information
3174 * gen-idecode.c (print_run_until_stop_body): Only generate loop
3175 termination test if creating idecode_run_until_stop. Push the
3176 loop termination test back into each alternative branch.
3178 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3180 * gen-icache.c (print_icache_function): Have the cache function
3181 always update the cache_entries semantic and address fields.
3183 * gen-idecode.c (print_idecode_switch_illegal): Include a break
3184 when generating illegal instructions. This was commented out
3185 which is a hangover from looking a at switch statements generated
3186 using indirect jumps.
3188 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3190 * igen.c (print_my_defines): Replaces print_define_my_index.
3191 Print both a definition for MY_INDEX and MY_PREFIX.
3192 * gen-icache.c (print_icache_function): Adjust.
3193 * gen-idecode.c (print_jump_insn): Adjust.
3194 * gen-semantics.c (print_c_semantic): Adjust.
3196 * gen-support.c (gen_support_h): Add optional include to created
3197 support.h so that, like cpu, it is optionally inlined for all
3198 modules that include it.
3199 * inline.h, inline.c: Adjust so that support.[hc] is handled the
3202 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
3203 name for a lable and then branch to it.
3205 * ppc-instructions (convert_to_integer, Floating Round to
3206 Single-Precision, Floating Convert from Integer Doubleword): Use
3207 LABEL and GOTO instead of the recently added switch statements.
3209 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
3211 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
3214 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3216 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
3217 * (--enable-sim-inline): Reorder patern matching of arguments so
3218 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
3220 * configure: rebuild.
3222 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
3224 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
3225 configuration options. Let the user specify the packages or
3226 hardware devices that are to be included in the build. Makes it
3227 possible for user packages to be specified.
3229 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
3230 hardware instead of checking it using ls. configure.in should
3231 have taken care of any problems.
3232 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
3234 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
3236 * psim.c (psim_options): Enter the argument to the memory size
3237 option directly into the device tree. Was using atol() which is
3238 dangerously non portable.
3240 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
3242 * configure.in (icache): Extend icache flag to include an insn
3243 option. If specifyed the insn - aka instruction - is included in
3244 the instruction cache. Make this the default.
3245 * configure: re-generate.
3247 * igen.c (main), igen.h: Add option -S - inSn - for specifying
3248 that the instruction should be included in the icache.
3250 * gen-icache.c (print_icache_body): If enabled, output code to put
3251 the instruction into the icache.
3252 (print_icache_struct): If enabled, add insn to the icache struct.
3254 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
3256 * Makefile.in (BUILD_CFLAGS): Include -g when building the
3259 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
3261 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
3262 the strict-alignment option when hardwired for non-strict
3265 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3267 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
3269 * ppc-instructions: Adjust so that references are to MY_INDEX and
3272 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3274 * gen-idecode.c: Output the complete run_until_stop function
3275 instead of just the code to handle a single instruction issue.
3276 * : Have the generated idecode.c include inline.c (instead of psim.c).
3278 * std-config.h: Change psim.c so that it isn't inlined (as this is
3281 * psim.c (run_until_stop): Delete the old run_until_stop function
3282 instead calling the idecode_run and idecode_run_until_stop
3283 functions that gen-idecode.c is now creating.
3285 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3287 * dgen.c: Maintenance - update to use new features found in lf.c.
3289 * filter_filename.c (filter_filename): Maintenance - make the
3292 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3294 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
3295 eliminate trace statements.
3297 * debug.c: Change trace format so that it is consistent
3298 (file:line-nr) with CC's error output.
3300 * gen-itable.c (itable_c_insn): Add the source file name and
3301 source line number to the instruction's informational entry.
3303 * debug.c (ITRACE): Use the itable (and my_index) to get the
3304 current instructions name and source line number.
3306 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
3307 match new interface.
3309 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
3310 corresponding call to ITRACE so that it still matches.
3312 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
3313 of ITRACE. The CPP line directives would have previously set the
3314 line-nr and file name so ITRACE isn't needed.
3316 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3318 * gen-idecode.c (print_jump_until_stop_body): New function and
3319 idecode generation option. Instead of generating and calling
3320 separate functions containing the semantic and icache code
3321 generate a single monolythic function and use goto's (and GCC's
3322 indirect jump) to move between code blocks.
3324 * Makefile.in: Add sim_jump flag to those passed to igen.
3326 * configure.in: New option --enable-sim-jump (default disabled)
3328 * ppc-instructions: Eliminate any uses of labels and goto's.
3329 These result in duplicate declarations when a single flat function
3332 * ppc-opcode-jump: New file. Set of opcode rules useful when
3333 testing jumping idecodes.
3335 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3337 * gen-idecode.c: Optionally include the semantic code for an
3338 instruction in the function that is doing the decoding.
3340 * igen.c: Add option (-C) to generate semantics in the instruction
3343 * configure.in (--enable-sim-icache): Accept an option list such
3344 as 1024,define. Add a new choice to the list - semantic - which
3345 will cause igen to generate instruction decode functions that
3346 include the corresponding semantic code.
3348 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3350 * configure.in: New option --enable-sim-line-nr (default enabled).
3351 Enable/disable the inclusion of CPP line directives in the
3352 generated files. Such directives refer back to the source files
3353 used when generating the simulator code.
3355 * Makefile.in (sim_line_nr): Pass to igen.
3357 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3359 * igen.c (main): Revamp the options so that more letters are
3362 * configure.in: Adjust to match igen's revamped options
3364 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3366 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
3367 that they use the same technique as igen (ie a dummy targets
3368 tmp-pk and tmp-hw are created).
3370 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3372 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
3374 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3376 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
3377 out the loading of each of the tables from the rest of igen.
3378 * Makefile.in: Adjust.
3381 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
3382 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
3383 code creating each separate set of generated files.
3384 * Makefile.in: Adjust.
3387 * gen-support.[ch]: New files. Output the support functions (found
3388 in the ppc-instructions file) into a separate file.
3390 * inline.h, inline.c: Add.
3391 * std-config.h: Add.
3393 * ld-cache.c: Re-design the cache table format.
3394 * ppc-cache-rules: Update to new format.
3396 * ld-decode.c: Re-design the decode table format.
3397 * ppc-opcode-simple: Update to new format
3398 * ppc-opcode-complex: Ditto
3399 * ppc-opcode-flat: Ditto
3401 * filter.h, filter.c: New files. Separate the opcode filter table
3402 reading code from the rest of igen.c. Re-design the filter so that
3403 it works inclusivly not exclusivly.
3404 * igen.c: Remove the opcode filter table loading code.
3405 * Makefile.in (filter.o): Adjust
3406 * configure.in: Adjust filter flag so that default includes 32bit
3408 * ppc-instructions: Clean up filter fields so that only in use
3409 entries are specified (ie delete `be').
3411 * misc.c (name2i, i2name): New function. Map between a string and
3414 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3416 * sim_calls.c (sim_close): If simulator not created, skip printing
3419 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3421 * registers.c (register_description): Typo, insns not insn.
3423 * ppc-instructions (model_get_number_of_stalls): New model function,
3424 returns number of stalls for the specified processor.
3425 * psim.c (psim_read_register): Add call to new function
3426 model_get_number_of_stalls().
3428 * ppc-instructions (model_get_number_of_cycles): New model function,
3429 returns number of stalls for the specified processor.
3430 * psim.c (psim_read_register): Add call to new function
3431 model_get_number_of_cycles().
3433 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3435 * device_table.h: Don't pass the parent device into a devices
3436 create function. This makes the create function consistent with
3438 * device.c (device_template_create_device): Ditto
3439 * hw_pal.c (hw_pal_create): Ditto
3440 * hw_core.c (hw_core_create): Ditto
3441 * hw_vm.c (hw_vm_create): Ditto
3442 * hw_disk.c (hw_disk_create): Ditto
3443 * hw_nvram.c (hw_nvram_create): Ditto
3444 * hw_memory.c (hw_memory_create): Ditto
3445 * hw_cpu.c (hw_cpu_create): Ditto.
3447 * device.c (split_find_device): Allow a null initial parent device.
3448 (device_template_create_device): Ditto.
3450 * device.c (device_create_from): Make local (static) only used
3452 * device_table.h: typedef device_callbacks moved here (from
3453 device.h) where it belongs.
3455 * hw_core.c: New file. Implements just the core device using the
3458 * corefile.c: Moved all core device functions into the new
3459 hw_core.c file. core_device_create() disapears.
3461 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
3464 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3466 * hw_init.c: Correct typo in comment.
3468 * corefile.c (core_init): Remove any remaining references to a
3470 (core_map_find_mapping): Ditto.
3472 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3474 * corefile.c (core_init): Make function global so that other
3475 devices are able to use the full core object.
3477 * corefile.c (core_create, core_from_device): Break core_create
3478 into two functions. The first creates a core object, the second
3479 returns the core object associated with a core device.
3481 * corefile.c (core_device_create): Use core_create to make the
3484 * psim.c (psim_create): Use core_from_device() instead of
3487 * device.c (device_template_create_device): Make static as only
3488 needed by functions internal to device.c.
3490 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3492 * ppc-opcode-test-2: Remove description of fields.
3493 * ppc-opcode-complex: Ditto
3494 * ppc-opcode-flat: Ditto
3495 * ppc-opcode-simple: Ditto
3496 * ppc-opcode-stupid: Ditto
3497 * ppc-opcode-test-1: Ditto
3498 * ppc-cache-rules: Ditto
3500 * igen.c: Add description of files as a comment at the front.
3502 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3504 * configure.in: Check for whether the termios and termio
3505 structures are really defined, and whether or not, they define the
3507 * configure: Regenerate.
3509 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
3512 * emul_unix.c: Various changes to allow for building on systems
3513 with different termio and termios structures. If host has both
3514 termio and termios, just use termios. No longer include
3517 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3519 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3520 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3522 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3523 (AC_PROG_INSTALL): Added.
3524 * configure: Rebuilt.
3526 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3528 * corefile.h: Rewrite documentation so that it can be extracted and
3529 converted into texinfo (and hence ready for translation into html,
3533 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3535 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
3537 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
3539 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
3540 is the source of SEEK_SET.
3542 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3544 * psim.c (psim_options): Correct type of dummy arguments being
3545 passed to a device_ioctl call.
3547 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
3548 (write_stack_arguments): Ditto.
3549 * hw_trace.c: Instance callback entry no longer a table.
3551 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3553 * emul_unix.c (do_unix_umask): Cast printf argument.
3554 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
3556 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3558 * hw_init.c (update_for_binary_section): Abort if we find an
3559 .interp section, which indicates the need for shared libraries to
3562 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3564 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
3565 for time, gettimeofday, and getrusage system calls.
3566 ({solaris,linux}_descriptors): Add new system calls.
3567 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
3568 (do_get{,p}pid): Use pic_t types.
3570 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
3571 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
3572 * config{.in,ure}: Regenerate.
3574 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3576 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
3577 `ppc-elf' and `ppc-xcoff' for the stack-type.
3578 * emul_unix.c (emul_unix_create): Ditto.
3579 * emul_bugapi.c (emul_bugapi_create): Ditto.
3580 * hw_init.c: Reconize the new names.
3582 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
3583 call is used (no system parameter).
3585 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3587 * emul_unix.{h,c}: New files to provide Solaris and Linux system
3590 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
3591 (os_emul.o): Depend on emul_unix.h.
3592 (emul_unix.o): New dependency.
3594 * configure.in (--enable-sim-alignment): Add 0|default to mean set
3595 alignment to 0, which means use appropriate alignment for mode.
3596 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
3597 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
3598 * config.in: Regenerate.
3599 * configure: Regenerate.
3601 * emul_generic.c (emul_write2_status): New function to return
3602 results in r3 and r4 for Solaris system calls.
3603 (emul_do_system_call): If the system call is not support, but
3604 there is a string for the system call name, print out the string
3605 instead of the system call number.
3607 * emul_generic.h (emul_write2_status): Declare it.
3609 * emul_netbsd.c: Use /* */ around comment on #endif.
3611 * os_emul.c: Include emul_unix.h.
3612 (os_emulations): Add emulations for Solaris, and Linux.
3614 * psim.c (psim_usage): Add message about solaris, linux
3617 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3619 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
3621 * README: Correct PSIM's title
3623 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3625 * basics.h: New global type object_disposition, used to indicate
3626 the status of objects when things are restarted.
3628 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
3630 * device_table.h: Change the interrupt descriptor structure so
3631 that it includes an additional member - an upper bound on the
3632 interrupts by that name.
3634 * device.c (device_interrupt_decode): Allow a range of interrupt
3635 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
3637 * device.c (device_tree_print_device): Include a list of valid
3638 interrupt ports when listing supported devices.
3640 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
3642 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
3643 the interrupt net so that it uses int0 .. intN.
3645 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3647 * device.h, device.c (device_ioctl): Drop the system argument.
3648 Devices can not obtain this using the device_system() call.
3649 * device_table.h: Adjust accordingly.
3650 * hw_*.c: Adjust accordingly.
3651 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
3652 * psim.c (psim_options): Use a device_ioctl call to force the
3653 hw_trace device to update the trace options.
3654 * hw_trace.c: Replace the init function with an ioctl call. Adjust
3657 * psim.c (psim_init): Re-order initialization so that the
3658 os-emulation is initialized after the device tree. Without this,
3659 os-emul's are not able to create instances or access properties
3660 that contain an instance handle.
3662 * device.h, device.c (device_add_*_property): Make these functions
3663 internal to device.c. The user has access to the more generic
3664 device_tree_add_parsed function. Differentiate between the initial
3665 and current value for each property.
3666 * (clean_device_properties): New function that deletes any
3667 properties created after the start of a simulation and restores
3668 the initial value of any others (ignoring ihandles).
3669 * (init_device_properties): (Re)Initialize any properties that
3670 contain ihandles. create
3672 * (device_tree_init): Include calls to clean the device tree's
3673 properties and then initialize them. Document this in the device.h
3676 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3678 * interrupts.c (decrementer_interrupt): Always pend a decrementer
3679 interrupt even if it is not yet possible to deliver it.
3681 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
3683 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
3684 visable adjusting the arguments so that the interface is correct.
3685 (mon_print_info): Adjust calls.
3687 * registers.h, registers.c (register_description): Add phony
3688 cycle, insn and stall registers.
3690 * psim.c (psim_read_register): Return nr of instructions for given
3693 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3695 * hw_htab.c: New file. Extract contents from disk_table.c.
3696 Contains a device that, during initialization will create a
3697 PowerPC htab in memory.
3698 * hw_register.c: New file. Extract contents from disk_table.c.
3699 Contains a device that, during initialization, will parse its
3700 property list and use that to initialize various processor
3701 registers (not target specific).
3702 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
3703 a device that handles accesses to invalid virtual memory addresses
3705 * hw_init.c: New file. Extract contents from disk_table.c. Misc
3706 devices that can initialize memory from a file.
3707 * hw_trace.c: New file. Extract contents from disk_table.c.
3708 Configure trace options from property values.
3710 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
3711 hw_trace.c): Add new device files.
3713 * device_table.c: Remove above code, now in separate independant
3716 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3718 * hw_disk.c: New file. Disk and CDROM device.
3720 * Makefile.in (hw_disk.o): Add device hw_disk.c.
3722 * pk_disklabel.c: New file. Implement the miss-named disk-label
3725 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
3728 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
3729 they are re-created when the makefile is updated.
3731 * emul_generic.c (emul_add_tree_hardware): Add a disk device
3732 (below the iobus) to the device tree. Include an ihandle of
3733 the disk as /chosen/disk.
3735 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
3736 output and (new) disk handles yet.
3737 * (emul_bugapi_init): Initialize the input, output (and just added)
3739 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
3740 what I think the behavour is).
3741 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
3742 i/o bug call. For RETURN call, exit using gpr[3]'s status even
3743 though this isn't part of the spec - makes it possible for machine
3744 code to signal the aporting of a simulation run.
3746 * emul_chirp.c (chirp_emul_call_method): Add support for the
3747 claim/release methods.
3748 * (chirp_emul_exit): Add an optional exit status argument to
3749 the exit method. Makes it possible for chirp emul simulations
3750 to abort upon an error.
3751 * device.h, device.c (device_instance_claim,
3752 device_instance_release): New methods for claiming and releasing
3754 * hw_memory.c: add claim and release memory methods.
3755 * hw_*: Use the claim memory method when allocating physical
3758 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3760 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
3761 time when updating the clock.
3763 * hw_nvram.c: Tidy up documentation
3765 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3767 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
3768 macros to determine whether or not the appropriate st_<xxx> fields
3769 exist in the stat structure.
3770 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
3771 the real basic ones like open, read, write, etc.
3772 * config{.in,ure}: Regenerate.
3774 * emul_netbsd.c: Add support for missing system calls, and/or
3775 missing stat fields.
3776 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
3779 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
3781 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
3782 F_SETFL not defined.
3784 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3786 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
3789 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3791 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
3792 * config{.in,ure}: Regenerate.
3793 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
3796 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3798 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
3801 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
3803 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
3804 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
3807 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3809 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
3810 fgets to read line. If not using stdio, do a simple blocking read
3813 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3815 * Makefile.in: Correctly build simulator for build machine != host
3818 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3820 * configure.in (--enable-hostendian): Rework so the default uses
3821 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
3823 * configure: Regenerate.
3825 * sim-endian.h: Add more tests for host endian to support more
3826 platforms in a cross compilation environment.
3828 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3830 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
3831 use stdio, instead of unpended read/printf_filtered.
3832 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
3833 flush stdout after writing the characters.
3835 * options.c (print_options): Print out WITH_STDIO.
3837 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
3838 configuration variable.
3839 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
3840 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
3841 files to contain directory pieces.
3843 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
3844 should use stdio for console input.
3845 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
3847 * configure.in (--enable-sim-stdio): Add new switch to control
3848 whether stdio is used for console I/O.
3849 * configure: Regenerate.
3851 * interrupts.c (external_interrupt): Declare it to be
3852 INLINE_INTERRUPTS, not INLINE_CPU.
3854 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3856 * events.c (insert_event_entry): Allow events to be scheduled
3857 *NOW* (at delta time 0). Add assertions to clarify behavour of
3860 * events.c (update_time_from_event): New function. Calculates the
3861 number of ticks from the next event. Use this.
3863 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
3865 * emul_netbsd.c (do_break): Return 0 if success (instead of
3868 * device_table.c (vm_ioctl_callback): Don't return adjusted break
3871 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
3873 * device_table.h: Change type of the device ioctl so that it
3874 returns an int (status).
3875 * device.h (device_ioctl): Ditto.
3876 * device.c (device_ioctl): Ditto.
3878 * device_table.c (stack_ioctl_callback): Return 0 status.
3879 (vm_ioctl_callback): Ditto
3881 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3883 * emul_netbsd.c (do_read): Correctly set the return value.
3886 (do_geteuid): Ditto.
3888 (do_getegid): Ditto.
3890 (do_sigprocmask): Ditto.
3893 (do_gettimeofday): Ditto.
3894 (do_getrusage): Ditto.
3898 (do___sysctl): Ditto.
3900 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3902 * device_table.c (vm_ioctl_callback): Don't access the processor
3903 registers directly, instead leave it to the caller to handle this.
3905 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3906 perform a break. Pass in the new break value and set the
3907 registers according to the result.
3909 * emul_generic.c (emul_write_status): Change so that r3 contains
3910 either status or errno and failure is indicated by SO.
3912 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3914 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3917 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
3919 * interrupts.h (interrupts): New structure contains state of
3922 * cpu.c (cpu_interrupts): New function. Pending interrupt status
3923 in the cpu and grant access to it. Add interrupts to cpu
3926 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
3928 * device.c (device_tree_add_parsed): Check that the creation of a
3929 device instance worked before using it.
3931 * psim.c (psim_halt): Remove cia argument from psim_halt. This
3932 function does not save the CIA so do not pass it in.
3934 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
3936 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3937 found in device_table.c into a single hack pal.
3939 * device_table.c (halt, icu, console): Delete.
3941 * Makefile.in (hw_pal.o): New dependency.
3943 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3944 so that it uses the pal instead of the icu/halt/console devices.
3945 Wire the pal's interrupt ports up to the cpu nodes.
3947 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
3949 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3950 device_table.c to here.
3952 * Makefile.in (hw_iobus.o): New dependency.
3954 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3956 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3957 (emul_bugapi_create): Create input, output from /chosen/stdin and
3959 (emul_bugapi_do_{read,write}): Switch to use device_instance
3961 (emul_bugapi_instruction_call): Change calls to
3962 emul_bugapi_do_{read,write} to pass device instance argument.
3964 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3966 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3967 default is not written out if a default was already written.
3969 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3970 size cooked_buf, not sizeof natural_word, since floating point
3971 registers are 8 bytes.
3973 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3975 * configure: Regenerate with autoconf 2.9.
3977 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
3979 * device_table.h: Always include string headers.
3981 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3983 * main.c (error): Be careful to not try to print out statistics
3984 when the simulation was never created.
3986 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
3988 * basics.h: Move the event queue's definition to here so that it
3989 can be refered to globally with out importing all of events.h.
3991 * psim.h, psim.c (psim_event_queue): New function. Grant access
3992 to the simulation event queue. Will make this the single point of
3993 access (there is after all only one event queue in the
3996 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3997 queue instead of it being passed in. No longer allow access to
3998 the cpu's copy of the event queue.
4000 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
4002 * events.h, events.c (event_handler): Remove event_queue from
4003 arguments passed to an event handler. That argument is redundant
4004 - the `data' should refer to a data structure that contains the
4005 event queue if queing is needed.
4007 * cpu.c (cpu_decrement_event): adjust
4009 * events.c (event_queue_process): adjust
4011 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
4013 * device.h, device.c (device_system): New, returns a handle for
4014 the system given the device.
4016 * device.c (device_address_init): Store a pointer back to the
4017 system in each devices node.
4019 * device_table.h: Don't pass `system' into each device when it is
4020 being initialized, this is now available using device_system(me).
4022 * device.c (device_address_init, device_data_init): Adjust.
4024 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
4027 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
4029 * interrupts.c (decrementer_interrupt, external_interrupt):
4030 Remember that an interrupt wasn't delivered so that it can be
4033 * interrupts.c (check_masked_interrupt): New function. (re)
4034 checks for the posibility that a recent change to the MSR may have
4035 made it possible to deliver an interrupt that was previously
4036 masked be the EE bit.
4038 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
4039 a pending interrupt being delivered using check_masked_interrupt().
4041 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
4042 leaving it to that module to handle both interrupt synchronization
4045 * cpu.c (struct _cpu): remove variables that were going to record
4046 pending decrementer and external interrupts.
4048 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
4050 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
4051 between the interrupt controller and the simulators internal
4052 processor model. Maps device interrupts onto the processor
4053 interrupt function calls.
4055 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4057 * hw_nvram.c: NVRAM device that includes a real-time clock that is
4058 updated each second.
4060 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4062 * device.h (attach_type): Remove attach_default type address
4063 spaces. Will replace with levels of callback memory.
4065 * corefile.h, corefile.c (new_core_mapping), corefile.c
4066 (core_map_attach): Replace default attach with a layerd callback
4069 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4071 * device.c (split_property_specifier): ensure that only a single
4073 (split_value): New function, parses the value part of a device
4076 * device.c (device_tree_add_parsed): Use the interrupt conversion
4077 functions to determine the interrupt port numbers.
4079 * device_table.h: Add table that maps between an interrupts
4080 symbolic name and its port number.
4082 * device.h, device.c (device_interrupt_decode,
4083 device_interrupt_encode): new functions use the recently added
4084 interrupt port name/number tables to perform conversion.
4086 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4088 * device.h, device.c (device_set_array_property,
4089 device_set_boolean_property, device_set_ihandle_property,
4090 device_set_integer_property, device_set_string_property): New
4091 functions - allow the value of a given property to be changed.
4093 * device.h, device.c: Re-order declaration and definition of
4096 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4098 * device.c (device_tree_print_device, device_tree_add_parsed):
4099 Remove references to phandle properties.
4101 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4103 * Makefile.in (corefile.o): missing dependency on device_table.h
4106 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4108 * device_table.h: Revamp device init callbacks so that they are a
4110 * device.c (device_init_data, device_init_address): If an init
4111 callback is NULL assume it should do nothing.
4112 * device_table.c (ignore_device_init, unimp_device_init): delete
4114 * device_table.c, hw_memory.c: adjust.
4118 * (device_instance): ditto.
4120 * (address nee config_address): ditto.
4121 * (interrupt): ditto.
4123 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4125 * igen.c (idecode_switch_end): Output a default entry when the
4126 switch statement is perfect. Firstly stops GCC complaining about
4127 an incomplete switch and secondly it will be eliminated by a good
4130 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4132 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
4133 hw_*.c files. hw.h declares a device descriptor table for each hw
4134 device while hw.c lists those tables in a form suitable for the
4135 construction of a top leveltable in device_table.c.
4137 * Makefile.in (device_table.o): now depends on hw.c a generated
4140 * device_table.c (device_table): Re-arange the table of devices so
4141 that two levels are possible. Make use of hw.c.
4142 * device_table.h: ditto.
4144 * device.c (device_template_create_device): Handle new two level
4145 device lookup table.
4146 * device.c (device_usage): ditto.
4148 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4150 * device_table.c: Delete the memory device (moved to hw_memory.c).
4152 * hw_memory.c: New file. Just an OpenBoot memory device.
4154 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
4156 * device.c (device_init_address): New. Split initialization into
4157 two stages, address and address spaces
4158 * device.c (device_init_data): New. ... and data or other work.
4159 With out this, devices try to modify memory before it as been
4162 * device.c (device_tree_init): Update to perform staged
4165 * device.c (device_init): Delete.
4167 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
4169 * device_table.c (data_*): Rewrite to make heaver use of property
4170 nodes. Allow initialization by different data types.
4171 * device_table.c (htab_* pte_*): Rewrite to use properties.
4173 * emul_chirp.c (emul_chirp_create): Use
4174 * emul_bugapi.c (emul_bugapi_create): Ditto
4175 * emul_netbsd.c (emul_netbsd_create): Ditto
4177 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
4179 * emul_generic.c (emul_add_tree_options): Annotate existing tree
4180 with options that haven't yet been specified.
4181 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
4182 with demo devices and properties.
4184 * emul_chirp.c (emul_chirp_create): Update to use new
4185 device_tree_add_parsed call and additional information now
4186 included in the device tree. Use emul_add_tree* functions to add
4187 any missing details.
4188 * emul_bugapi.c (emul_bugapi_create): Ditto
4189 * emul_netbsd.c (emul_netbsd_create): Ditto
4191 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
4193 * device.c (device_instance_create): New. Create/delete and
4194 operate on instances of a device.
4195 * device.c (device_instance_delete): Ditto
4196 * device.c (device_instance_read): Ditto
4197 * device.c (device_instance_write): Ditto
4198 * device.c (device_instance_seek): Ditto
4199 * device.c (device_instance_data): Ditto
4200 * device.c (device_instance_name): Ditto
4201 * device.c (device_instance_path): Ditto
4203 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
4204 * emul_chirp.c (chirp_emul_close): Ditto
4205 * emul_chirp.c (chirp_emul_read): Ditto
4206 * emul_chirp.c (chirp_emul_write): Ditto
4207 * emul_chirp.c (chirp_emul_seek): Ditto
4209 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
4210 Being careful to convert all from target to host byte order.
4211 * emul_chirp.c (chirp_write_h2t_args): Converse.
4213 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
4215 * device.c (device_tree_add_parsed): New. Rewrite code to add
4216 devices to the device tree so that a single printf style function
4219 * device.c (device_tree_add_*): Delete. Replaced by above.
4221 * device.c (split_device_specifier): Functions to manipulate a
4222 device specifier (path) breaking it into its components
4223 * device.c (split_property_specifier): Ditto
4224 * device.c (split_device_name): Ditto
4225 * device.c (split_find_device): Ditto
4227 * device.c (scan_*): Delete
4229 * device.c (device_tree_find_device): Rewrite to use above.
4230 * device.c (device_add_property): Ditto
4232 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
4234 * psim.c(psim_options): Parse the psim options, installing their
4235 value in the device tree. Options are now first entered into a
4236 device tree and then extracted out again when needed. This allows
4237 greater flexability in configuration.
4239 * psim.c (psim_tree): Returns a basic device tree ready for
4240 parsing by psim_options.
4241 * psim.c (psim_usage): New. Give usage to varing levels of detail
4242 according to the verbosity. In turn output device and trace
4245 * main.c (main): Update to use new system
4246 * sim_calls.c (sim_open, sim_do_command): Ditto
4248 * psim.c (psim_options): Add `r' option - ram size.
4249 * psim.c (psim_options): Add `o' option - openboot tree entry.
4250 * psim.c (psim_options): Add `h'/`H' options - more help.
4252 * debug.c (trace_usage): Add more detailed help.
4253 * device.c (device_usage): New. Output help including a list of
4254 the devices currently available in the device table.
4255 * device_table.c: Add usage operator to each device.
4257 * corefile.c (core_create, core_device_create): Adjust so that the
4258 core device is created earlier for psim_tree(). Core can later be
4261 * psim.c (psim_create): Update to handle above way of creating
4262 things. Extract all information from the device tree.
4264 * device_tree.c (trace_*): New device node, its properties are
4265 used to set the value of the trace options. Init this device (in
4266 psim_options) when ever the options are updated.
4268 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
4270 * debug.h: Add trace_print_info, trace_print_device_tree and
4271 trace_dump_device_tree. The first is a replacement for the
4272 variable `print_info' found in main.c and sim_calls.c. The latter
4273 two enable the dumping of the entire device tree.
4275 * debug.c: Add to trace_description table.
4277 * main.c (main): Use above trace instead of local variable
4278 * sim_calls.c (sim_close): Ditto
4280 * device.c (device_tree_print_device): New. Prints the device
4281 tree in a format that is consistent with what can be parsed by the
4282 device tree load from file code.
4284 * psim.c (psim_create): Dump device tree if enabled. If nump
4285 selected, exit psim immediately.
4287 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
4289 * corefile-n.h (core_map_read_N): When mapping from an address to
4290 a device, do not subtract the devices base. The device its self
4291 can do this. Brings the behavour into line with OpenBoot.
4292 * corefile-n.h (core_map_write_N): Ditto
4293 * corefile.c (core_map_read_buffer): Ditto
4294 * corefile.c (core_map_write_buffer): Ditto
4296 * device_table.c (console_io_read_buffer_callback): Adjust to
4297 handle biased address.
4298 * device_table.c (console_io_write_buffer_callback): Ditto
4300 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
4302 * device.c (attach_device_interrupt_edge): New. Interrupt model
4303 did not allow interrupts to be wired up as a general net (edges).
4304 Re-implement so that interrupt events can be passed to multiple
4305 controllers and interrupt controllers can further propogate
4308 * device.c (attach_device_interrupt_edge) : New, Ditto
4309 * device.c (detach_device_interrupt_edge) : New, Ditto
4310 * device.c (clean_device_interrupt_edges) : New, Ditto
4311 * device.c (device_interrupt_event) : New, Ditto
4312 * device.c (device_interrupt_attach) : New, Ditto
4313 * device.c (device_interrupt_detach) : New, Ditto
4314 * device.c (device_child_interrupt_attach) : New, Ditto
4315 * device.c (device_child_interrupt_detach) : New, Ditto
4317 * device.c (device_attach_interrupt) : Delete old
4318 * device.c (device_detach_interrupt) : Delete old
4319 * device.c (device_interrupt) : Delete old
4320 * device.c (device_interrupt_ack) : Delete old
4322 * device_table.c (unimp_*) : Update to match
4324 * device_table.c (icu_io_write_buffer_callback) : Update to use
4326 * device_table.c (icu_interrupt_event_callback) : Ditto
4328 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
4330 * device.c (external_to_device) : New function that provides a
4331 standard mapping between a devices internal representation (a
4332 pointer) and its external (or what is passed to a client)
4333 representation (a phandle). Implement using the cap object
4334 attached to the root node.
4336 * device.c (device_to_external) : Ditto
4337 * device.c (external_to_device_instance) : Ditto but for ihandle
4338 and device instance.
4339 * device.c (device_instance_to_external) : Ditto
4341 * Makefile (device.o): Add dependency on cap.
4343 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
4344 needing to translate between internal and external representations
4345 changed to use the external_to_device et.al. device operations.
4346 * emul_chirp.c (chirp_emul_*) : Ditto
4348 * Makefile (emul_chirp.o): Remove dependency on cap
4350 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
4352 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
4353 on OpenBoot note section.
4355 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
4357 * emul_generic.c (emul_write_buffer): Use vm faulting byte
4358 read/write calls for buffer transfers. This will cause a fault to
4359 occure if the transfer fails. CHRP catches the fault while the
4360 others suffer the consequences.
4361 (emul_read_buffer): Ditto.
4362 (emul_write_word): Ditto.
4363 (emul_read_word): Ditto.
4364 (emul_read_string): Ditto.
4366 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
4368 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
4369 emul_generic (emul_blr_instruction): Use a real blr instruction to
4370 return from a client service call.
4372 * emul_chirp.c (services): Add all OpenBoot services to table.
4374 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
4375 (emul_chirp_create) : Use names instead of numbers for
4376 instructions being stored in memory.
4378 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
4380 * Makefile.in (maintainer-clean): Remove .log, core and *.core
4381 (From NetBSD) files.
4383 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
4385 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes