[ARM] "svc" insn check at irrelevant address in ARM unwind info sniffer
[binutils-gdb.git] / sim / ppc / ChangeLog
blob9d85c4c61099bdeae08f68b457cc01c3737bbe8a
1 2015-11-21  Mike Frysinger  <vapier@gentoo.org>
3         PR sim/13834
4         * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c.
5         (callback.o): Change $< to $(srcdir)/../common/callback.c.
6         (options.o): Change $< to $(srcdir)/options.c.
8 2015-11-17  Pedro Alves  <palves@redhat.com>
10         * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call
11         sim_io_printf_filtered instead of printf_filtered.
13 2015-06-12  Mike Frysinger  <vapier@gentoo.org>
15         * configure: Regenerate.
17 2015-04-29  Nick Clifton  <nickc@redhat.com>
19         PR 18273
20         * hw_htab.c (htab_map_binary): Fix overlap check.
22 2015-04-13  Mike Frysinger  <vapier@gentoo.org>
24         * Makefile.in (version.o): Change to using create-version.sh from gdb.
25         (create-version.sh): Delete.
27 2015-03-31  Mike Frysinger  <vapier@gentoo.org>
29         * config.in, configure: Regenerate.
30         * Makefile.in (INCLUDES): Add $(ZLIBINC).
31         (ZLIB, ZLIBINC): Define.
32         (BFD_LIB): Add $(ZLIB).
34 2014-11-23  Joel Sherrill <joel.sherrill@oarcorp.com>
36         * ChangeLog, ChangeLog.00, hw_com.c, ld-cache.h, ppc-instructions:
37         Change immediatly to immediately.
39 2014-08-27  Joel Sherrill <joel.sherrill@oarcorp.com>
41         * basics.h, device.c, device.h, hw_htab.c, hw_memory.c:
42         Correct spelling in comments.
44 2014-08-19  Alan Modra  <amodra@gmail.com>
46         * configure.ac: Invoke AC_PLUGINS.
47         * configure: Regenerate.
48         * config.in: Regenerate.
50 2014-03-10  Mike Frysinger  <vapier@gentoo.org>
52         * sim_calls.c (sim_do_command): Add const to cmd.
54 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
56         * sim_calls.c (sim_load): Add const to prog.
58 2014-02-17  Aaro Koskinen  <aaro.koskinen@iki.fi>
60         PR gdb/12202
61         * Makefile.in (psim): Delete $(LIBS) from dependency.
63 2013-10-15  Hans-Peter Nilsson  <hp@axis.com>
65         * Makefile.in (srcsim): New variable.
66         (version.c): Adjust call to $(srccom)/create-version.sh as per change.
68 2013-06-28  Tom Tromey  <tromey@redhat.com>
70         * Make-common.in (version.c): Use version.in, not
71         common/version.in.
73 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
75         * Makefile.in (srccom): New variable.
76         (version.c): Update rule dependencies, and re-implement using
77         sim/common/create-version.sh.
79 2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>
81         revert:
82         2013-04-19  Nathan Froyd  <froydnj@codesourcery.com>
83         * ppc-instructions (isel): New instruction.
85 2013-04-19  Nathan Froyd  <froydnj@codesourcery.com>
87         * ppc-instructions (isel): New instruction.
89 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
91         * COPYING: Update to GPL version 3.
93 2012-06-15  Joel Brobecker  <brobecker@adacore.com>
95         * configure: Regenerate.
97 2012-05-24  Pedro Alves  <palves@redhat.com>
99         PR gdb/7205
100         * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
102 2012-03-14  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
104         * emul_unix.c (st_pad1, st_pad2, st_pad3): Undefine.
106 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
108         * dp-bit.c: Reformat copyright header.
110 2011-02-11  Ben Golding  <ben_golding@yahoo.co.uk>
112         * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
114 2011-10-17  Mike Frysinger  <vapier@gentoo.org>
116         * configure.ac: Change include to common/acinclude.m4.
118 2011-10-17  Mike Frysinger  <vapier@gentoo.org>
120         * configure.ac: Change AC_PREREQ to 2.64.  Delete AC_CONFIG_HEADER
121         call.  Replace common.m4 include with SIM_AC_COMMON.
122         * configure: Regenerate.
124 2011-06-09  Joel Brobecker  <brobecker@adacore.com>
126         * psim.c (psim_options): Fix length of comparison when checking
127         for --sysroot= option.
129 2011-06-08  Joel Brobecker  <brobecker@adacore.com>
131         * psim.c (psim_options): Add option that cause the error
132         in invalid-option error messages. Print the usage when
133         detecting an invalid long-name option.
135 2011-06-08  Joel Brobecker  <brobecker@adacore.com>
137         * psim.c (psim_options): Accept and ignore `--sysroot=...'.
139 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
141         From Stephen Kitt  <steve@sk2.org>
142         * vm.c (vm_synchronize_context): Spelling fix in function
143         documentation.
145 2011-04-16  Mike Frysinger  <vapier@gentoo.org>
147         * sim_calls.c (sim_complete_command): New stub function.
149 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
151         * cap.c (cap_remove): Change zfree to free.
152         * corefile.c (core_init): Likewise.
153         * device.c (detach_device_interrupt_edge): Likewise.
154         (clean_device_interrupt_edges): Likewise.
155         (device_instance_delete): Likewise.
156         (device_set_property): Likewise.
157         (clean_device_properties): Likewise.
158         (device_add_range_array_property): Likewise.
159         (device_add_reg_array_property): Likewise.
160         * emul_bugapi.c (emul_bugapi_do_read): Likewise.
161         (emul_bugapi_do_write)
162         * emul_netbsd.c (write_direntries): Likewise.
163         (do_read): Likewise.
164         (do_write): Likewise.
165         (do_getdirentries): Likewise.
166         * emul_unix.c (do_unix_read): Likewise.
167         (do_unix_write): Likewise.
168         * events.c (event_queue_init): Likewise.
169         (event_queue_deschedule): Likewise.
170         (event_queue_process): Likewise.
171         * hw_disk.c (open_disk_image): Likewise.
172         (hw_disk_instance_delete): Likewise.
173         * hw_eeprom.c (hw_eeprom_instance_delete): Likewise.
174         * hw_htab.c (htab_dma_binary): Likewise.
175         * hw_init.c (update_for_binary_section): Likewise.
176         * hw_memory.c (hw_memory_set_available): Likewise.
177         (hw_memory_init_address): Likewise.
178         (hw_memory_instance_release): Likewise.
179         * pk_disklabel.c (disklabel_delete): Likewise.
180         * table.c (table_push): Likewise.
181         * tree.c (parse_reg_property): Likewise.
182         (parse_ranges_property): Likewise.
183         (parse_string_property): Likewise.
184         * main.c (zfree): Delete.
185         * sim_calls.c (zfree): Likewise.
186         * sim_callbacks.h (zfree): Likewise.
188 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
190         * gdb-sim.c (sim_store_register): Update return value to
191         match new API.
193 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
195         * psim.texinfo: Copyright year update.
197 2010-04-14  Mike Frysinger  <vapier@gentoo.org>
199         * sim_calls.c (sim_write): Add const to buf arg.
201 2010-02-14  Andreas Schwab  <schwab@linux-m68k.org>
203         * ppc-instructions: Fix missing assignment in last change.
205 2010-02-05  Andreas Schwab  <schwab@linux-m68k.org>
207         * ppc-instructions: Fix aliasing bugs when calling
208         invalid_arithemetic_operation.
210 2009-11-13  Nathan Froyd  <froydnj@codesourcery.com>
212         * configure.ac: If build != host, create a separate build-config.h
213         file desecribing the build machine.
214         * configure: Regenerate.
215         * lf.c: Include build-config.h instead of config.h.
216         * dgen.c: Likewise.
217         * igen.c: Likewise.
218         * misc.c: Likewise.
219         * misc.h: Likewise.
220         * filter.c: Likewise.
221         * table.c: Likewise.
223 2009-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
225         * std-config.h: Fix spelling error.
227 2009-09-22  Joel Sherrill  <joel.sherrill@oarcorp.com>
229         * main.c: Fix spelling error.
231 2009-09-15  Andreas Tobler <andreast-list@fgznet.ch>
232             Doug Evans  <dje@google.com>
234         * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN.
235         * configure: Regenerate.
236         * config.in: Regenerate.
237         * hw_sem.c: (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN.
239 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
241         * config.in: Regenerate.
242         * configure: Likewise.
244         * configure: Regenerate.
246 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
248         * Makefile.in (datarootdir): New variable.
250 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
252         * ppc-instructions (sync): Add L field.
254 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
256         * ppc-instructions, ppc-spr-table: Add ability
257         to read tbrl and tbru special registers.
259 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
261         * configure: Regenerated.
262         * configure.ac: Add test for System V shared memory and semaphore.
263         * debug.c, debug.h: Add trace support for new devices.
264         * hw_sem.c, hw_shm.c: New files.
265         * Makefile.in: Add hw_sem.c and hw_shm.c.
267 2008-07-11  Hans-Peter Nilsson  <hp@axis.com>
269         * configure.ac: Add test for libz and zlib.h.
270         * Makefile.in (LIBS): Set from @LIBS@.
271         * configure: Regenerate.
272         * config.in: Ditto.
274 2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
275             Daniel Jacobowitz  <dan@codesourcery.com>
276             Joseph Myers  <joseph@codesourcery.com>
278         * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
279         * configure, config.in: Regenerated.
280         * Makefile.in (LIB_OBJ): Add version.o.
281         (version.c, version.o): New rules.
282         * psim.c (psim_usage): Add help parameter.  Print the bug URL.
283         Exit with code 0 for help.
284         (psim_options): Update calls to psim_usage.  Handle --help and
285         --version.
286         * psim.h (psim_usage): Update prototype.
287         * main.c (main): Update psim_usage call.
289 2008-03-14  Nick Hudson  <nick.hudson@dsl.pipex.com
291         * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
292         * configure: Regenerate.
294 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
296         * gdb-sim.c (regnum2spr): Rename to...
297         (sim_spr_register_name): ... this.  Make global.
299 2007-09-04  Jerome Guitton  <guitton@adacore.com>
301         * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
302         name property before parsing it.
304 2006-12-21  Hans-Peter Nilsson  <hp@axis.com>
306         * acconfig.h: Remove.
307         * config.in: Regenerate.
309 2006-11-22  Tom Marn <tom.marn@telargo.com>
311         Committed by Andrew Cagney.
312         * ppc-instructions: Implement optional PowerPC stfiwx instruction.
314 2006-07-12  Fred Fish  <fnf@specifix.com>
316         * sim-endian.h (asm/byteorder.h): Don't include private kernel
317         header.
319 2006-06-13  Richard Earnshaw  <rearnsha@arm.com>
321         * configure: Regenerated.
323 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
325         * Makefile.in: Replace INTLLIBS and INTLDEPS with LIBINTL
326         and LIBINTL_DEP everywhere.
327         (INTL_DIR, INTL_SRC): Remove.
328         (INTL_CFLAGS): Use INCINTL.
329         * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR.
330         * configure: Regenerated.
332 2006-05-05  Andreas Schwab  <schwab@suse.de>
334         * configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
335         * configure: Regenerate.
337         * Makefile.in (CFLAGS_FOR_BUILD): Define.
338         (BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
339         (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
341 2006-04-23  Andreas Schwab  <schwab@suse.de>
343         * Makefile.in (tmp-ld-decode): Fix dependencies.
344         (tmp-ld-cache): Likewise.
345         (tmp-ld-insn): Likewise.
347 2006-02-01  Mark Mitchell  <mark@codesourcery.com>
349         * emul_netbsd.c (emul_netbsd_create): Quote file-name property.
350         * emul_unix.c (emul_unix_create): Likewise.
351         * tree.c (libiberty.h): Include it.
352         (tree_quote_property): New function.
353         * tree.h (tree_quote_property): Declare.
355 2006-01-25  Mark Mitchell  <mark@codesourcery.com>
357         * words.h (natural32): Define as "int".
359 2006-01-23  Mark Mitchell  <mark@codesourcery.com>
361         * words.h (signed32): Define as "int".
362         (unsigned32): Define as "unsigned int".
364 2005-11-28 Mark Mitchell  <mark@codesourcery.com>
366         * configure.ac (USE_WIN32API): Define it.
367         * configure.in: Regenerate.
368         * config.in: Likewise.
369         * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
370         * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
372 2005-11-28  Mark Mitchell  <mark@codesourcery.com>
374         * psim.c: Include gdb/signals.h.
376         * sim_calls.c (gdb/signals.h): Include it.
377         (sim_stop_reason): Use TARGET_SIGNAL_*.
378         * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
380 2005-07-15  Ben Elliston  <bje@au.ibm.com>
382         * hw_htab.c (bfd_get_section_lma): Remove macro; use BFD's.
384 2005-07-15  Ben Elliston  <bje@au.ibm.com>
386         * hw_init.c: Comment out tokens after #endif directive.
387         * hw_register.c: Likewise.
388         * hw_trace.c: Likewise.
389         * hw_vm.c: Likewise.
391 2005-04-20  Manoj Iyer  <manjo@austin.ibm.com>
393         * psim.c: Added libiberty.h header file.
395 2005-04-18  Manoj Iyer  <manjo@austin.ibm.com>
397         * configure.ac: Added check for long long.
398         * config.in: Regenerated.
399         * configure: Regenerated.
400         * words.h: Modified logic to check for HAVE_LONG_LONG instead of
401         __GNUC__, added config.h header file.
403 2005-03-25  Anthony Green  <green@redhat.com>
405         * tree.c (parse_reg_property): Fix memset usage.
407 2005-03-23  Mark Kettenis  <kettenis@gnu.org>
409         * configure: Regenerate.
411 2005-01-11  Andrew Cagney  <cagney@localhost.localdomain>
413         * configure.ac: Delete AC_CONFIG_AUX_DIR.
414         * configure: Re-generate.
416 2005-01-07  Andrew Cagney  <cagney@gnu.org>
418         * configure.ac: Rename configure.in, require autoconf 2.59.
419         * configure: Re-generate.
421 2005-01-03  Andreas Schwab  <schwab@suse.de>
423         * Makefile.in (hw_com.o, hw_eeprom.o): Depend on
424         $(DEVICE_TABLE_H).
426 2004-11-16  Andreas Schwab  <schwab@suse.de>
428         * Makefile.in (defines.h): Depend on tmp-defines.
429         (hw.c hw.h): Depend on tmp-hw.
430         (pk.h): Depend on tmp-pk.
432 2004-11-11  Andreas Schwab  <schwab@suse.de>
434         * sim_calls.c: Include "libiberty.h".
436 2004-09-24  Ian Lance Taylor <ian@wasabisystems.com>
438         Committed by Andrew Cagney.
439         * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
440         Check for struct statfs.
441         * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
442         * configure, config.in: Regenerate.
444 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
446         * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.
448 2004-08-04  Andrew Cagney  <cagney@gnu.org>
449             Jim Blandy <jimb@redhat.com>
451         * sim_callbacks.h (simulator): Declare.
452         * Makefile.in (gdb-sim.o): New rule.
453         (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c.
454         (DEFS_H): Delete.
455         (GDB_SIM_PPC_H): Define.
456         * gdb-sim.c: New file.
457         * sim_calls.c: Do not include "defs.h".
458         (simulator): Drop static.
459         (sim_store_register, sim_fetch_register): Delete.
461 2004-08-04  Andrew Cagney  <cagney@gnu.org>
463         * Back out accidently committed change.
465 2004-08-04  Jim Blandy  <jimb@redhat.com>
467         Use a fixed register numbering when communicating with the PowerPC
468         simulator.
469         * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not
470         include GDB's "defs.h".
471         (gdb_register_name_table): New variable.
472         (gdb_register_name_table_size): New enum constant.
473         (gdb_register_name): New function.
474         (sim_fetch_register, sim_store_register): Use gdb_register_name,
475         instead of calling gdbarch_register_name.
476         * Makefile.in (GDB_SIM_PPC_H): New variable.
477         (DEFS_H): Delete variable.
478         (sim_calls.o): Update dependencies.
480 2004-07-26  Andrew Cagney  <cagney@gnu.org>
482         Problem from Olaf Hering <olh@suse.de>.
483         * Makefile.in (install, installdirs): Add DESTDIR.
485 2004-07-10  Ben Elliston  <bje@au.ibm.com>
487         * tree.c (parse_integer_property): Comment typo fix.
489 2004-07-06  Jim Blandy  <jimb@redhat.com>
491         * Makefile.in: Update all dependency information.
492         (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H)
493         (EMUL_GENERIC_H): Values updated.
494         (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H)
495         (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H)
496         (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H)
497         (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H)
498         (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H)
499         (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H)
500         (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H)
501         (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H)
502         (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H)
503         (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H)
504         (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H)
505         (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H)
506         (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H)
507         (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H)
508         (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H)
509         (TREE_H, VM_H, VM_N_H, WORDS_H): New variables.
510         (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o)
511         (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o)
512         (events.o, filter.o, filter_filename.o, filter_host.o)
513         (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o)
514         (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o)
515         (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o)
516         (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o)
517         (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o)
518         (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o)
519         (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o)
520         (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
522 2004-06-28  Jim Blandy  <jimb@redhat.com>
524         * e500_registers.h (EVR): Cast the 32-bit value of the GPR to an
525         unsigned type before or-ing it with a 64-bit value.
527 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
529         * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
530         instead of bfd_get_section_size_before_reloc.
531         (htab_dma_binary(bfd): Likewise.
532         * hw_init.c (update_for_binary_section(bfd): Likewise.
534 2004-05-10  Daniel Jacobowitz  <dan@debian.org>
536         * configure.in (sim_fpu_cflags): Add -I../common.
537         * configure: Regenerated.
539 2004-01-27  Andrew Cagney  <cagney@redhat.com>
541         * ppc-instructions: Update copyright.
542         (convert_to_integer): Add trailing ";" to label.
544 2003-10-16  Michael Snyder  <msnyder@redhat.com>
546         * emul_netbsd.c: Only a comment may follow an #endif.
548 2003-10-15  Michael Snyder  <msnyder@redhat.com>
550         * Makefile.in (sim_calls.o): No longer depends on gdb/tm.h.
552 2003-06-22  Andrew Cagney  <cagney@redhat.com>
554         Written by matthew green <mrg@redhat.com>, with fixes from Aldy
555         Hernandez <aldyh@redhat.com>, Jim Wilson <wilson@redhat.com>, and
556         Nick Clifton <nickc@redhat.com>.
558         * ppc-instructions: Include altivec.igen and e500.igen.
559         (model_busy, model_data): Add vr_busy and vscr_busy.
560         (model_trace_release): Trace vr_busy and vscr_busy.
561         (model_new_cycle): Update vr_busy and vscr_busy.
562         (model_make_busy): Update vr_busy and vscr_busy.
563         * registers.c (register_description): Add Altivec and e500
564         registers.
565         * psim.c (psim_read_register, psim_read_register): Handle Altivec
566         and e500 registers.
567         * ppc-spr-table (SPEFSCR): Add VRSAVE and SPEFSCR registers.
568         * configure.in (sim_filter): When *altivec* add "av".  When *spe*
569         or *simd* add e500.
570         (sim_float): When *altivec* define WITH_ALTIVEC.  When *spe* add
571         WITH_E500.
572         * configure: Re-generate.
573         * e500.igen, altivec.igen: New files.
574         * e500_expression.h, altivec_expression.h: New files.
575         * idecode_expression.h: Update copyright.  Include
576         "e500_expression.h" and "altivec_expression.h".
577         * e500_registers.h, altivec_registers.h: New files.
578         * registers.h: Update copyright.  Include "e500_registers.h" and
579         "altivec_registers.h".
580         (registers): Add Altivec and e500 specific registers.
581         * Makefile.in (IDECODE_H): Add "idecode_e500.h" and
582         "idecode_altivec.h".
583         (REGISTERS_H): Add "e500_registers.h" and "altivec_registers.h".
584         (tmp-igen): Add dependencies on altivec.igen and e500.igen .
586 2003-06-22  Andrew Cagney  <cagney@redhat.com>
588         Problems reported by Joshua LeVasseur.
589         * emul_chirp.c: Update copyright.
590         (chirp_emul_nextprop): Return the first property.
591         * hw_htab.c: Update copyright.
592         (htab_decode_hash_table): Fix check for htab size.
594 2003-06-21  Andrew Cagney  <cagney@redhat.com>
596         * interrupts.c: Update copyright.
597         (external_interrupt): Fix test for already pending interrupt.
598         Problem found by Joshua LeVasseur.
600         * ppc-instructions: Add missing +8 line.  Found by blofeldus at
601         yahoo.com.
603 2003-06-21  Andrew Cagney  <cagney@redhat.com>
605         From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c
606         (hw_nvram_init_address): Correct call to memset--swap second and
607         third arguments.
609 2003-06-21  Andrew Cagney  <cagney@redhat.com>
611         * hw_com.c (hw_com_device_init_data): Check that the output, and
612         not input file opened.  Pointed out by masahino tky3.3web.ne.jp.
614 2003-06-20  Andrew Cagney  <cagney@redhat.com>
616         * sim_calls.c (sim_create_inferior): Assert that
617         psim_write_register succeeded.
618         (sim_fetch_register, sim_store_register): Make "regname" constant.
619         Delete Altivec hack.  Return result from psim_read_register /
620         psim_write_register.
621         * psim.h (psim_read_register, psim_write_register): Change return
622         type to int.  Update comments.
623         * psim.c: Update copyright.
624         (psim_stack): Assert that the psim_read_register worked.
625         (psim_read_register, psim_read_register): Return the register's
626         size.  Allocate the cooked buffer dynamically.
627         * hw_register.c: Update copyright.
628         (do_register_init): Check that psim_write_register succeeded.
629         * hw_init.c: Update copyright.
630         (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert
631         that the register transfer worked.
633 2003-06-19  Andrew Cagney  <cagney@redhat.com>
635         * ld-insn.h: Update copyright.
636         (cache_fields): Define.
637         (insn_table_fields): Add insn_field_6 and insn_field_7.
638         (load_insn_table): Pass in the "cache_rules".
639         * ld-insn.c: Update copyright.
640         (load_insn_table): Add parameter "cache_rules".  Handle "cache",
641         "computed" and "scratch" fields.
642         (main): Pass "cache_rules" to load_insn_table.
643         * ld-cache.h: Update copyright.
644         (append_cache_table): Declare.
645         * ld-cache.c: Update copyright.
646         (append_cache_table): New function.
647         (load_cache_table): Call.
648         * gen-model.c: Include "ld-cache.h".
649         * gen-itable.c: Include "ld-cache.h".
650         * igen.c: Move #include "ld-cache.h" to earlier.  Update
651         copyright.
652         (main): Permit a NULL "cache_rules".  Pass address of
653         "cache_rules" to load_insn_table.
654         * Makefile.in (tmp-ld-insn): Add "ld-cache.o".
655         (tmp-igen): Do not include ppc-cache-rules.
656         (gen-itable.o, gen-model.o): Add "ld-cache.h".
657         * ppc-cache-rules: Delete file.
658         * ppc-instructions: Add cache rules.
660 2003-06-19  Andrew Cagney  <cagney@redhat.com>
662         * Makefile.in (ICACHE_CFLAGS, SEMANTICS_CFLAGS): Delete.
663         (SIM_FPU_FLAGS): Define.
664         (icache.o): Delete explicit compile command.
665         (semantics.o, idecode.o): Delete explicit compile command.
666         (NOWARN_CFLAGS, STD_CFLAGS): Append SIM_FPU_CFLAGS.
667         * gen-support.c (gen_support_c): Generate #include of
668         "sim-inline.h" and "sim-fpu.h", but conditional on
669         HAVE_COMMON_FPU.
670         * gen-idecode.c (gen_idecode_c): Ditto.
671         * igen.c (gen_icache_c, gen_semantics_c): Wrap #include of
672         "sim-inline.h" and "sim-fpu.h" in HAVE_COMMON_FPU conditional.
673         Move to before "support.h".
674         * Makefile.in, gen-support.c, gen-idecode.c, igen.c: Update
675         copyright.
677 2003-05-16  Ian Lance Taylor  <ian@airs.com>
679         * Makefile.in (various): Use $(SHELL) whenever we invoke
680         move-if-change.
682 2003-02-27  Andrew Cagney  <cagney@redhat.com>
684         * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
686 2002-09-27  Andrew Cagney  <ac131313@redhat.com>
688         * hw_disk.c (hw_disk_init_address): Set device type to "block",
689         not "disk".
691 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
693         * Makefile.in (INTL_SRC): Define.
694         (INTL_CFLAGS): Define.
695         (INTL_DIR): Define.
696         (STD_CFLAGS): Add INTL_CFLAGS.
698 2002-06-17  Elena Zannoni  <ezannoni@redhat.com>
700         * psim.c (psim_options): Don't choke when gdb invokes us with
701         the --architecture option, just ignore it.
703 2002-06-16  Andrew Cagney  <ac131313@redhat.com>
705         * configure: Regenerated to track ../common/aclocal.m4 changes.
707 2002-06-08  Andrew Cagney  <cagney@redhat.com>
709         * main.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
710         * sim_calls.c: Ditto.
712 2002-05-30  DJ Delorie  <dj@redhat.com>
714         * lf.c (lf_print__gnu_copyleft): Convert multiline strings to
715         compatible format.
716         * gen-idecode.c (print_run_until_stop_body): Likewise.
717         * gen-model.c (gen_model_c): Likewise.
719 2002-04-15  Elena Zannoni  <ezannoni@redhat.com>
721         * sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for
722         AltiVec registers as a temporary stopgap.
724 2002-03-24  David O'Brien  <obrien@FreeBSD.org>
726         * ppc/hw_disk.c: Export a disk device property.
728 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
730         From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:
731         * ppc-instructions (lswx): Do the register control with the
732         register count.  Initialize the right register in the loop.
733         (mtfsfi) : Correct prefix for the instruction.
735 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
737         From wiz at danbala:
738         * std-config.h: Fix grammar and typos.  Update copyright.
739         Fix PR gdb/287.
741 2002-01-12  matthew green  <mrg@redhat.com>
743         * Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.
744         * igen.c (main): Change -I to add include paths for :include:
745         files.
746         Implement -G as per sim/igen, with just gen-icache=N support.
747         Call load_insn_table() with the built include path.
749         * ld-insn.c (parse_include_entry): New. Load an :include: file.
750         (load_insn_table): New `includes' argument.  Look for :include:
751         entries and call parse_include_entry() for them.
752         (main): Adjust load_insn_table() call.
753         * ld-insn.h (model_include_fields): New enum.
754         (load_insn_table): Update prototype.
755         * table.c (struct _open_table, struct _table): Rework
756         structures to handle included files.
757         (table_push): Move the guts of table_open() here.
759         * table.c (struct _open table, struct table): Make table object an
760         indirect ptr to the current table file.
761         (current_line, new_table_entry, next_line): Make file arg type
762         open_table.
763         (table_open): Use table_push.
764         (table_entry_read): Point variable file at current table, at eof, pop
765         last open table.
767         * misc.h (NZALLOC): New macro. From sim/igen.
769         * table.h, table.c (table_push): New function.
771 2002-01-04  matthew green  <mrg@redhat.com>
773         * bits.c (LSMASKED64): New inline function.
774         (LSEXTRACTED64): Likewise.
775         * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
776         sim/common/sim-bits.h
777         (LSMASKED64, LSEXTRACTED64): New functions definitions.
778         * Makefile.in (sim-bits.o): Remove target.
780         * main.c (zalloc): Fix typo in error message.
782 2001-12-16  Andrew Cagney  <ac131313@redhat.com>
784         * configure.in (sim_fpu): Don't add sim-bits.o.
785         * configure: Re-generate.
787 2001-12-15  matthew green  <mrg@redhat.com>
789         * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
790         (sim_io_error): New function.
791         * sim_calls.c: (sim_io_error): New function.
793 2001-12-14  matthew green  <mrg@redhat.com>
795         * Makefile.in (LIB_OBJ): Add @sim_fpu@.
796         (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables.
797         (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS.
798         (sim-fpu.o, sim-bits.o, tconfig.h): New targets.
799         * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.  Add a
800         check for sim/common/sim-fpu.c.  Output sim_fpu and sim_fpu_cflags.
801         * configure: Regenerate.
802         * device.h (device_find_integer_array_property): Match function definition.
803         * gen-icache.c (print_icache_internal_function_declaration): Rename
804         INLINE_ICACHE to PSIM_INLINE_ICACHE.
805         * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE
806         to PSIM_INLINE_IDECODE.
807         * gen-semantics.c (print_semantic_function_header): Rename
808         EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
809         * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to
810         PSIM_INLINE_SUPPORT.
811         * igen.c (print_function_name): Also escape `(' and `)'.
812         (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS.
813         (gen_semantics_c): Likewise.  Also output includes for "sim-fpu.h"
814         * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN.
815         (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN.
816         (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN.
817         (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS.
818         (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT.
819         (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT.
820         (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS.
821         (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS.
822         (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE.
823         (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE.
824         (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE.
825         (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE.
826         * options.c (options_inline): Fix names.
827         * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN.
828         * sim-endian.h: Likewise.
829         * sim-main.h: New file.
830         * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
832 2001-12-01  Andrew Cagney  <ac131313@redhat.com>
834         From Mark Peek.
835         * ppc-spr-table: Add SDA and PIR.
837 2001-10-29  Andrew Cagney  <ac131313@redhat.com>
839         * tree.c (parse_size): Assert #size-cells > 0.
840         (parse_address): Ditto for #address-cells.
841         (parse_reg_property): Only parse the size when #size-cells is
842         non-zero.
844 2001-10-25  Andrew Cagney  <ac131313@redhat.com>
846         * emul_generic.c (OEA_MEMORY_SIZE): Increase to 4mb.
847         * hw_htab.c (htab_map_binary): Don't try to map the text section
848         when it is empty.
849         * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not
850         CHIRP_LOAD_BASE.
851         (emul_chirp_create): Map in the interrupt table.
853 2001-07-16  Daniel Jacobowitz  <drow@mvista.com>
855         * Makefile.in: Add dependencies on $(CPU_H).
857 Wed Mar  7 10:45:12 HST 2001  Glen Nakamura  <gen@lava.net>
859         * hw_init.c (dma_file): Fixed problem with loading last 1KB of
860         file.
862 2001-03-04  Andrew Cagney  <ac131313@redhat.com>
864         * emul_netbsd.c [WITH_NetBSD_HOST]: Include <sys/mount.h> and
865         <errno.h>.
866         (do_stat): Only do SYS test when SYS_stat defined.
867         (do_sigprocmask): Ditto for SYS_sigprocmask.
868         (do_fstat): Ditto for SYS_fstat.
869         (do_getdirentries): Ditto for SYS_getdirentries.
870         (do_lstat): Ditto for SYS_lstat.
872 2001-01-15  Geoffrey Keating  <geoffk@redhat.com>
874         * emul_netbsd.c (do_open): Translate the flag parameter to the
875         open syscall to the numbers supported by the host.
877 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
879         * sim-endian.h: Don't have parameters on macro definitions which
880         are simply renaming functions, to permit use of XCONCAT2 in both
881         the macro name and the arguments in a use of such a definition.
883 2000-11-15  Jim Blandy  <jimb@redhat.com>
885         * sim_calls.c: Doc fix.
886         (sim_fetch_register, sim_store_register): Call
887         gdbarch_register_name directly, instead of going through
888         REGISTER_NAME macro.
890 2000-10-24  Geoff Keating  <geoffk@cygnus.com>
892         * ppc-instructions (lfsux): Correct XO field of lfsux instruction.
894 Tue May 23 21:39:23 2000  Andrew Cagney  <cagney@b1.cygnus.com>
896         * configure: Regenerated to track ../common/aclocal.m4 changes.
898 Fri Apr 28 15:59:27 2000  Andrew Cagney  <cagney@b1.cygnus.com>
900         * events.c (event_queue_process): Call update_time_from_event
901         every time an event is removed from the queue.
902         (update_time_from_event): Delete assertion that a negative
903         time_from_event implies an empty event queue.
905 Fri Apr 28 15:53:54 2000  Andrew Cagney  <cagney@b1.cygnus.com>
907         * interrupts.c (deliver_hardware_interrupt): Print time trace in
908         decimal.
909         * events.c (event_queue_process): Cleanup trace message.
910         (update_time_from_event): Trace full event queue.
912 2000-03-25  Geoff Keating  <geoffk@cygnus.com>
914         * ppc-instructions (Disabled_Exponent_Underflow): Increment
915         the exponent when denormalizing.
917 Thu Sep  2 18:15:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
919         * configure: Regenerated to track ../common/aclocal.m4 changes.
921 1999-05-08  Felix Lee  <flee@cygnus.com>
923         * configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
924         * configure: Regenerated to track ../common/aclocal.m4 changes.
926 1999-04-02  Keith Seitz  <keiths@cygnus.com>
928         * sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak
929         the frequency at which the poll_quit callback is called.
930         (poll_quit_count): New global.
931         (sim_io_poll_quit): Only call the poll_quit callback
932         after the specified POLL_QUIT_INTERVAL.
934 1999-02-22  Jim Lemke  <jlemke@cygnus.com>
936         * dc-complex: Force expansion on all bits of field BO.
937         Previously, the least-significant (prediction) bit was ignored.
938         * ppc-instructions (conditional branches): Implement mpc860c0 option.
939         * igen.c (gen_semantics_[ch]): Setup for mpc860c0 option.
940         * psim.c (is_num, psim_options): Added parsing for mpc860c0 option.
941         * interrupts.h: Added "mpc860c0_instruction_program_interrupt".
942         * interrupts.c (program_interrupt): Added handling for above interrupt.
944 1999-02-01  Jim Blandy  <jimb@zwingli.cygnus.com>
946         Make the simulator compatible with the MPC750.  It would be nicer
947         to make this a real multi-sim, but that's more work than we have
948         time for.
949         * emul_generic.c (emul_add_tree_options): Only require strict
950         alignment if it was explicitly requested at configuration time.
951         Don't make it the default for little-endian machines.
952         * ppc-spr-table (UMMCR0, UMMCR1, UPMC1, UPMC2, USIA, UPMC3, UPMC4,
953         MMCR0, PMC1, PMC2, SIA, MMCR1, PMC3, PMC4, L2CR, ICTC, THRM1,
954         THRM2, THRM3): Plop in the MPC750 SPR registers.
955         (DABR): This is weird.  This was HID5, but the PPC spec says this
956         should be DABR; why did some random processor use it for something
957         else?  The HID5 entry dates back to the original checkin of the
958         simulator code in 1995, so remove it.
959         * sim_calls.c (register_names): Delete this; since the user can
960         now change GDB's list of register names dynamically, we can't
961         pretend there's a static mapping here.
962         (sim_fetch_register, sim_store_register): Call GDB's REGISTER_NAME
963         function to get the register name.  That ought to be accurate.
964         However, we're changing a compile-time dependency (using the
965         REGISTER_NAMES macro) into a link- and run-time dependency
966         (calling REGISTER_NAME, which happens to be a function call on the
967         PPC).
969 1999-01-22  Jim Lemke <jlemke@cygnus.com>
971         * igen.c(gen_semantics_[ch]): setup/use of new option
972         (-o mpc860c0[=n]).
973         interrupts.[ch](mpc860c0_instruction_program_interrupt): added.
974         ppc-instructions(the four branch insn groups): detect problematic br's.
975         psim.c(is_num - added, psim_options): Parse and init new option.
976         These changes are currently under #ifdef WITH_OPTION_MPC860C0.
978 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
980         * hw_nvram.c (hw_nvram_bcd): Force value to fit in 0..99.
982 Fri Nov 20 12:17:28 1998  Andrew Cagney  <cagney@b1.cygnus.com>
984         * main.c (sim_io_poll_quit): Stub function.
986         * events.c (SIM_EVENTS_POLL_RATE): Define.
987         (sim_events_poll): Copy function from common/sim-events.c.
988         (event_queue_init): Copy scheduling of sim_events_poll from same.
990         * sim_callbacks.h, sim_calls.c (sim_io_poll_quit): New function,
991         poll the external environment.
993 1998-11-19  Michael Meissner  <meissner@cygnus.com>
995         * ppc-instructions (is_{NaN,inf}): Use unsigned64 to get the
996         fractional type, so that quiet NaN's aren't treated like
997         Infinities.
999 Mon Sep 28 09:42:45 1998  Drew Moseley  <dmoseley@cygnus.com>
1001         * table.c (table_open): For cygwin hosts, we need to use the
1002         return value from the read routine as the number of bytes to
1003         process.  This apparently is due to text-mode vs binary-mode.  If
1004         the mounts are done text-mode, then the size returnedby fstat()
1005         may be different than the number of bytes "read" in text mode.
1007 Sun Oct  4 00:50:47 1998  Felix Lee  <flee@cygnus.com>
1009         * emul_netbsd.c (do_open): fix order-of-evaluation problem.
1010         (do_close): ditto.
1011         (do_fstat): ditto.
1012         (do_lstat): ditto.
1014 1998-09-03  Michael Meissner  <meissner@cygnus.com>
1016         * emul_{netbsd,unix}.c: Update copyright year.
1018 Mon Jun 29 10:57:36 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
1020         * sim_calls.c (sim_fetch_register, sim_store_register):
1021         return zero when nothing to do.
1023 1998-06-26  Michael Meissner  <meissner@cygnus.com>
1025         * configure.in (AC_CHECK_HEADERS): Don't check for sys/mount.h.
1026         * configure: Regenerate.
1027         * emul_{netbsd,unix}.c (toplevel): No longer try to include
1028         sys/mount.h. It conflicts on Linux when gnu libc2 is used.
1030 Tue May 12 12:10:33 PDT 1998  James Ingham  <jingham@leda.cygnus.com>
1032         * Makefile.in: The run target depended on a target psim$(EXEEXT),
1033         but there was no such target, only plain psim.  So I changed the
1034         run target to depend on psim.
1036 Sat May  2 01:10:12 1998  Stu Grossman  <grossman@babylon-5.cygnus.com>
1038         * aclocal.m4:  Remove defs of AM_EXEEXT and AM_CYGWIN32.  These are
1039         now defined in ../common/aclocal.m4, and the double definition causes
1040         problems with AC_SUBST of EXEEXT.
1041         * configure:  Regenerate.
1043 Wed Apr 29 15:44:52 1998  Geoffrey Noer  <noer@cygnus.com>
1045         * aclocal.m4: new file for AM_EXEEXT macro
1046         * configure.in: call AM_EXEEXT
1047         * configure: regenerate with autoconf 2.12.1.
1048         * Makefile.in: add EXEEXT support
1050 Sun Apr 26 15:31:55 1998  Tom Tromey  <tromey@creche>
1052         * configure: Regenerated to track ../common/aclocal.m4 changes.
1053         * config.in: Ditto.
1055 Sun Apr 26 15:19:51 1998  Tom Tromey  <tromey@cygnus.com>
1057         * acconfig.h: New file.
1058         * configure.in: Reverted change of Apr 24; use sinclude again.
1059         Don't call AC_C_CROSS.
1061 Fri Apr 24 14:16:40 1998  Tom Tromey  <tromey@creche>
1063         * configure: Regenerated to track ../common/aclocal.m4 changes.
1064         * config.in: Ditto.
1066 Fri Apr 24 11:18:46 1998  Tom Tromey  <tromey@cygnus.com>
1068         * Makefile.in (top_builddir): New macro.
1069         (INTLLIBS): New macro.
1070         (INTLDEPS): Likewise.
1071         (psim): Depend on INTLDEPS; link against INTLLIBS.
1072         * configure.in: Call CY_GNU_GETTEXT.
1074 Wed Apr 22 14:28:48 1998  Michael Meissner  <meissner@cygnus.com>
1076         * configure: Regenerate with autoconf 2.12.1.
1078 Fri Mar 13 09:25:58 1998  Andrew Cagney  <cagney@b1.cygnus.com>
1080         * psim.c (psim_read_register, psim_write_register): Handle updates
1081         for FPSCR.
1083         * registers.c (register_description): Reconize "FPSCR".
1085         * emul_netbsd.c (emul_netbsd_create): When FP available, enable
1086         MSR FP exception mode. Do not enable FPSCR bits.
1087         * emul_unix.c (emul_unix_create): Ditto.
1089 Tue Feb 17 12:48:58 1998  Andrew Cagney  <cagney@b1.cygnus.com>
1091         * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
1092         length parameter.  Return -1.
1094 Mon Feb  9 14:13:14 1998  Andrew Cagney  <cagney@b1.cygnus.com>
1096         * ppc-instructions (fdiv, fdivs): Check for divide by zero.
1097         (is_invalid_zero_divide, invalid_zero_divide_operation): New
1098         functions.
1100 Wed Dec 10 17:38:28 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1102         * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
1103         raw value instead.
1105 1997-11-05  Felix Lee  <flee@cygnus.com>
1107         * emul_chirp.c: #ifdef HAVE_UNISTD_H
1109 Wed Oct 15 08:50:54 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1111         * corefile.c (core_attach): Pad out allocated memory regions so
1112         that they are always correctly aligned.
1113         (struct _core_mapping, core_map_attach, core_init,
1114         new_core_mapping): Change free_buffer to type void*.
1116 Mon Oct  6 18:09:26 1997  Michael Meissner  <meissner@cygnus.com>
1118         * sim_calls.c (zfree): Call free correctly.
1120 Mon Sep 29 10:05:01 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1122         * sim_calls.c (zfree): Use free, not mfree.
1123         (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
1124         flush_stdout.
1126 Fri Sep 26 09:50:29 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1128         * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
1129         mask extracting shift amount. Correctly condition for setting XER
1130         in sraw.
1131         (ldhau): From Johannes Reisinger, update rA after load.
1133 Tue Sep  9 22:13:23 1997  Felix Lee  <flee@cygnus.com>
1135         * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
1136         for MSVC.
1137         * words.h: __int64 instead of long long for MSVC.
1139 Wed Aug 27 10:24:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1141         * sim_calls.c (sim_create_inferior): Check the simulator was
1142         initialized before creating inferior.
1144         * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
1145         sign bit using 64 bit and not a 32 bit mask.
1147 Wed Aug 27 10:15:48 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1149         * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
1150         it has been used, not before.
1152 Tue Aug 26 10:41:35 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1154         * sim_calls.c (sim_kill): Delete.
1155         (sim_create_inferior): Add ABFD argument.
1156         (entry_point): Delete variable.
1157         (sim_load): Move setting of PC from here.
1158         (sim_create_inferior): To here.
1160 Mon Aug 25 16:17:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1162         * sim_calls.c (sim_open): Add ABFD argument.
1164 Thu Jul  3 10:18:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1166         * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
1167         CR register updates dependant on RC value had logic backwards.
1169         * ppc-instructions (Load String Word Immediate): From Brad Parker
1170         - sense of wrap test in check for overwriting RA wrong.
1171         (Load String Word Indexed): Ditto.
1173         * configure.in: From Erik Landry - set sim_default_model not
1174         sim_model for sim-default-model option.
1175         * configure: Regenerate.
1177         * interrupts.c (check_masked_interrupts): Schedule a hardware
1178         interrupt delivery when FP interrupts get enabled.
1179         (program_interrupt): Generate FP exceptions instead of aborting.
1180         (deliver_hardware_interrupt): Deliver a FP exception if so
1181         enabled.
1183         * registers.h: Add definition of fpscr_vx_bits.
1185         * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
1186         in FPSCR.
1187         (FPSCR_END): Explicitly check for possible floating point
1188         exception conditions.
1189         (FPSCR_BEGIN): Simplify.
1191         * ppc-instructions (Move From FPSCR): Enable.
1192         (Move To FPSCR Bit 1): Ditto.
1193         (Move To FPSCR Bit 0): Ditto.
1194         (Move To FPSCR Field Immediate): Ditto.
1195         (Move to Condition Register from FPSCR): Simplify.
1196         (invalid_arithemetic_operation): Generate a QNaN when invalid
1197         operation exception disabled.
1199 Tue May 20 10:22:50 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1201         * sim_calls.c (sim_open): Add callback argument.
1202         (sim_set_callbacks): Delete.
1204 Tue Apr 22 22:36:57 1997  Mike Meissner  <meissner@cygnus.com>
1206         * sim_callbacks.h (error): Make declaration match gdb's.
1207         * main.c (error): Ditto.
1209 Fri Apr 18 17:03:09 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1211         * sim_calls.c (sim_stop_reason): Simplify.  Was running implies
1212         stopped/SIGINT. Exit implies a status code.
1214         * psim.c (cntrl_c_simulation): From main.c.  Event function that
1215         halts the simulator.
1216         (psim_stop): New. Asynchronously schedule a stop simulator event.
1217         (psim_run_until_stop): Delete. Made redundant by psim_stop.
1219         * main.c (cntrl_c): Update.
1220         (cntrl_c_simulation): Moved to psim.c.
1222         * sim_calls.c (sim_stop): New function. Use psim_stop which
1223         schedules a stop event.
1224         (sim_resume): Drop SIGINT handler, now in gdb/main.c.
1225         (sim_resume): Use psim_run as stop variable no longer needed.
1227 Fri Apr 18 17:03:08 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1229         * psim.c (psim_options): Handle -E option correctly.
1230         (psim_usage): Document.
1232 Thu Apr 17 03:28:03 1997  Doug Evans  <dje@canuck.cygnus.com>
1234         * psim.c (psim_options): Ignore -E option (sets endianness).
1235         * sim_calls.c: #include bfd.h.
1236         (entry_point): New static local.
1237         (sim_load): Return SIM_RC.  New arg abfd.  Set start address from bfd.
1238         (sim_create_inferior): Return SIM_RC.  Delete arg start_address.
1240 Tue Apr 15 14:57:18 1997  Ian Lance Taylor  <ian@cygnus.com>
1242         * Makefile.in (INSTALL): Set to @INSTALL@.
1243         (INSTALL_XFORM, INSTALL_XFORM1): Remove.
1244         (install): Depend upon installdirs.  Use $(program_transform_name)
1245         directly, rather than using $(INSTALL_XFORM).
1246         (installdirs): New target.
1248 Fri Apr  4 17:54:36 1997  Jim Wilson  <wilson@cygnus.com>
1250         * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
1251         rather than the non-portable cat -n.
1253 Mon Apr 14 16:29:51 1997  Ian Lance Taylor  <ian@cygnus.com>
1255         * Makefile.in (INSTALL): Change install.sh to install-sh.
1257 Tue Apr  1 18:15:14 1997  Jim Wilson  <wilson@cygnus.com>
1259         * ppc-instructions: Change milhwu to mulhwu.
1261 Wed Apr  2 15:38:08 1997  Doug Evans  <dje@canuck.cygnus.com>
1263         * sim_calls.c (sim_open): New arg `kind'.
1265 Wed Apr  2 14:51:17 1997  Ian Lance Taylor  <ian@cygnus.com>
1267         * COPYING: Update FSF address.
1269 Tue Mar 25 16:17:59 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
1271         * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
1272         all the required features are supported by the host OS.
1274 Tue Mar 25 12:13:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
1276         * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
1278         * configure.in (enable-sim-endain): Correct typo in usage (from
1279         Erik Landry <landry@ENGR.ORST.EDU>).
1280         * configure: Re-generate.
1282 Fri Mar 14 18:23:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
1284         * Makefile.in (targ-vals.def): Re-do rule so that it works with
1285         FreeBSD's make.  Didn't like $<.
1287 Thu Mar 13 12:55:48 1997  Doug Evans  <dje@canuck.cygnus.com>
1289         * sim_calls.c (sim_open): New SIM_DESC result.  Argument is now
1290         in argv form.
1291         (other sim_*): New SIM_DESC argument.
1293 Thu Feb 13 10:35:14 1997  Andrew Cagney  <cagney@phydeaux.cygnus.com>
1295         * ppc-opcode-simple-array, ppc-opcode-simple-goto,
1296         ppc-opcode-simple-switch, ppc-opcode-complex-array,
1297         ppc-opcode-complex-goto, ppc-opcode-complex-switch,
1298         ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
1299         superseeded by --sim-decode-mechanism option.
1301         * ppc-opcode-simple, dc-simple: Rename to be 8.3
1302         * ppc-opcode-complex, dc-complex: Ditto.
1303         * ppc-opcode-stupid, dc-stupid: Ditto.
1304         * ppc-opcode-test-1, dc-test.01: Ditto.
1305         * ppc-opcode-test-2, dc-test.02: Ditto.
1307         * configure.in (--enable-sim-opcode): Change prefix to dc- instead
1308         of ppc-opcode-.
1310 Wed Feb 12 19:33:45 1997  Andrew Cagney  <cagney@phydeaux.cygnus.com>
1312         * Many of the ppc-opcode-* files are identical baring the type of
1313         lookup table.  Instead of having multiple tables, igen can do this
1314         via an additional option.
1316         * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
1317         allow the type of generated table specified in the decode file to
1318         be overridden.
1320         * ld-decode.c (load_decode_table): Allow the table type to be
1321         overridden.
1323         * igen.c (main): Add -T <mechanism> option so that an overriding
1324         instruction decode mechanism can be specified.
1326         * configure.in: New option --sim-decode-mechanism to control
1327         igen's new -T <mechanism> flag.
1328         * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
1329         configure script.
1330         * configure: Regenerate.
1332 Tue Feb 11 13:49:10 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
1334         * events.c (event_queue_create): Don't use NULL to initialize an
1335         integer field.
1336         (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
1337         of sigprocmask to appropriate autoconf test.
1339         * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
1340         don't assume void.
1341         * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
1343         * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
1344         includes our config.h.
1346 Tue Feb  4 13:42:59 1997  Doug Evans  <dje@canuck.cygnus.com>
1348         * configure.in: Fix typo in test for callback.c.
1349         * configure: Regenerated.
1351 Fri Feb  7 10:04:25 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1353         * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
1354         found in the device tree.
1356 Wed Feb  5 10:56:27 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1358         * Property create/initialization still wasn't correctly ordered.
1359         Should be delaying everything related to ihandle creation until
1360         after the rest of the tree has been established.
1362         * device.c (device_find_ihandle_runtime_property): Update.
1363         (device_add_ihandle_runtime_property): Update.
1365         * tree.c (parse_ihandle_property): Delay lookup of the device to
1366         be opened until the ihandle initialization phase.
1367         * tree.c (print_properties): Update.
1369 Wed Feb  5 10:56:27 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1371         * gen-icache.c (print_icache_extraction): Add a reason parameter.
1372         Augment each extracted field with a comment citing the codes
1373         origin.  Should simplify tracking down incorrect cache
1374         extractions.
1376 Tue Feb  4 17:44:51 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1378         * gen-icache.c: Generalize code handling XXX_is_NNN so that it
1379         works for normal and boolean table entries.
1381         * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
1382         valid.  Handle this just like *_{read,write}_register now handles
1383         it.
1385 Mon Feb  3 17:18:16 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1387         * events.c (insert_event_entry): Correct loop termination
1388         assertions.
1390 Fri Jan 31 16:20:26 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1392         * psim.c (psim_options): Add new option -c for max-iterations or
1393         count.
1394         (psim_usage): Document.
1395         (psim_max_iterations_exceeded): New function, abort simulation if
1396         max iterations exceeded.
1398         * gen-idecode.c: Re-work the table lookup code so that it assumes
1399         that the entry is a leaf by default.  Simplify the boolean table
1400         entry code so that it involves a mask + test instead of shift +
1401         shift + mask + test.
1403         * gen-idecode.c: Correct generated igen body so that it no drops
1404         or doubles clock interrupts.
1407 Thu Jan 30 11:23:20 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1409         * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
1410         @sim_targ_vals@
1412         * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
1413         if common callback is present.
1415 Wed Jan 29 12:32:41 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
1417         * configure.in (sim_callback): If the gdb is post 4.16, configure
1418         callback support from the common directory.
1419         * configure: Regenerate.
1421         * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
1422         targ-map.c.
1423         (GDB_OBJ): Add callback support configured in.
1424         (gentmap,targ-vals.def): Build from common directory.
1425         (targ-vals.h,targ-map.c): Build by running gentmap.
1426         (callback.o): Build from source in common directory.
1427         (targ-map.o): Add dependency.
1428         (clean): Remove gentmap.
1430 Wed Jan 29 12:14:19 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1432         * igen wasn't aborting if the opcode table contained no valid
1433         fields.
1435         * misc.c (name2i): Possibly abort if an invalid name is
1436         encountered.
1437         * ld-decode.c: Abort if the table type isn't found.
1439 Wed Jan 29 12:14:19 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1441         * When performance monitoring is disabled, it is still possible to
1442         determine the simulation speed by looking at the number of elapsed
1443         ticks recorded by the event queue.
1445         * psim.c (psim_write_register, psim_read_register): Force the cpu
1446         to zero when it is either of `-1' or `nr_cpus'.  In both cases the
1447         next cpu would be zero any way.
1449         * mon.c (mon_print_info): If possible, print the system cycle
1450         performance.  This is an indication of the number of instructions
1451         per second.
1453 Wed Jan 29 12:14:19 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1455         * The code to allow an event queue to be updated during a signal
1456         was missing.  For main.c, a cntrl-c simulation termination wasn't
1457         handled cleanly.
1459         * The simulation would not correctly restart if an event requested
1460         that the simulation be halted.
1462         * psim.c (psim_options): Add hack to -i option to optionally
1463         include a level vis -i2.
1464         (psim_usage): Document.
1466         * main.c (cntrl_c, cntrl_c_simulation): New functions.  When a
1467         cntrl-c occures schedule an event to halt the simulation.
1468         (main): Catch CNTRL-C signals with the function cntrl_c.
1470         * events.c (event_queue_process): Mask interrupts while
1471         manipulating the async event queue.
1472         (event_queue_init): Ditto.
1473         (event_queue_schedule_after_signal): Ditto.
1475         * events.c (event_queue_process): Mark the event queue as being in
1476         the processing state when processing has started.  Adjust code
1477         so that it is tolerant of halts.
1478         (event_queue_init): Start the event queue out with processing
1479         false.
1480         (event_queue_tick): Check that processing isn't still being
1481         performed.
1483         * gen-idecode.c (print_run_until_stop_body): Call
1484         event_queue_process_events to clear possibly pending events before
1485         starting a simulation run.  Re-arange main loop so that simulator
1486         is correctly restarted when an event halts the simulation.
1488         * psim.c (psim_halt): Handle an event halting the simulation.
1489         * psim.c (psim_init): Adjust initial cpu - == -1 - to match
1490         reworked idecode.
1492 Wed Jan 29 12:14:19 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1494         * ppc-opcode-complex: Correct typo - was expanding ORA instead of
1495         RA.  Based on instruction frequency stats, expand additional
1496         instructions.
1497         * ppc-instructions: Change all `RA == 0' to RA_is_0.
1499         * ppc-opcode-stupid: Move all but the basic table in -complex into
1500         here.  Update to new format.
1502         * Makefile.in (tmp-defines): New target. Force defines.h to always
1503         be built.  Hence get ppc-opcode-goto to build.
1505 Tue Jan 28 13:00:19 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1507         * hw_com.c (hw_com_instance_read, hw_com_instance_write):
1508         Implement.
1510 Thu Jan 23 09:07:26 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1512         * hw_trace.c (hw_trace_init_data): Delete.  The trace options need
1513         to be initialized independant of the rest of the simulation
1514         initalization.  Otherwize a trace option explictly set from gdb
1515         could be overridden by hw_trace.
1517         * psim.c (psim_options): Clarify reason why the trace ioctl occures.
1519         * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
1520         debug.c.  It could be much simpler.
1522 Thu Jan 23 09:07:26 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1524         * Some devices support removable media.  Add hooks to the disk
1525         device so that it supports this.
1527         * device.c (device_add_string_array_property,
1528         device_find_string_array_property): New functions, manipulate
1529         properties containing an array of strings.
1530         (device_find_string_property): Allow a string array.
1531         (device_init_static_properties): Update.
1532         (device_init_runtime_properties): Update.
1534         * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
1535         media.  If no file image is specified, use the next one in the
1536         image property list.
1537         (hw_disk_init_address): Change the file property so that it is a
1538         string array - use the first entry for the initial file image.
1540         * tree.c (print_string_aray_property): New function - print a
1541         string array.
1542         (print_properties): Adjust.
1543         (print_string): Write a string, handling double quotes.
1545         * device.h: Define an ioctl to `change-media' with an optional new
1546         media image.
1548         * hw_disk.c: Allow floppy disk devices to be specified.
1550         * psim.c (psim_command): New function, parse more complex psim
1551         commands such as "change-media" and "trace".
1552         * sim_calls.c (sim_do_command): Use.
1554 Wed Jan 22 09:38:33 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1556         * For expressions like (RA == 0) that are entered in to the cache
1557         as RA_is_0. If possible generate the result of the expression so
1558         that the compiler gets a better chance of eliminating dead
1559         branches.
1561         * gen-icache.c (print_icache_extraction): For a cache entry of
1562         the form <name>_is_<const> where it is a boolean field, generate
1563         the result of the expression instead of the expression its self.
1564         (print_icache_body): Remove code that was looking for *_is_0 and
1565         then generating corresponding definitions.
1567         * gen-icache.c (print_icache_struct): If there is no cache, do not
1568         output expressions in idecode.h file.
1570         * gen-icache.c (print_icache_body): Output them here.
1572         * ppc-opcode-complex: Clarify constant values for SPR==LR register
1573         expansion.
1575         * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
1577 Wed Jan 22 12:24:52 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1579         * The code that put values in and extracted values from the cache
1580         was too compilicated.  The cache table did not allow values to be
1581         computed from cache entries.  #defines could only be used when a
1582         cache was present, remove the restriction.
1584         * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH.  A
1585         scratch variable is defined when a cache entry is beinf
1586         filled. Change the definition of a COMPUTE variable to be defined
1587         when the cache entry is being used.
1588         * gen-icache.c: Update.
1590         * ld-cache.h, ld-cache.c: Change field names so that their meaning
1591         is more obvious.  old_name->field_name, new_name->derived_name.
1592         * gen-icache.c: Update
1594         * gen-icache.h, gen-icache.c (print_icache_body): Make the three
1595         different types of cache code - put into cache, extract from
1596         cache, no cache - an explicit argument to print_icache_body.
1597         * gen-icache.c (print_icache_extraction): Ditto.
1599         * gen-semantics.c (print_c_semantic): Update use.
1600         * gen-idecode.c (print_jump_insn): Update use.
1601         * gen-icache.c (print_icache_function): Update use.
1603         * igen.c (main): Change 'R' option so that it does not force the
1604         cache.
1606         * configure.in (enable-sim-icache): Clarify description.  Make
1607         #define one of the defaults regardless of the cache.  Probably
1608         should revamp and add a separate option.
1610 Tue Jan 21 13:26:10 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1612         * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
1613         partition numbering.
1614         (pk_disklabel_create_instance): Partition 1..4 are valid - not
1615         1..3.
1616         (is_iso9660): New function, verify a CD9660 File system.
1617         (pk_disklabel_create_instance): Start expanding so that active
1618         partition selection is supported.
1620 Mon Jan 20 11:20:15 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1622         * The cap object was retaining a reference to the instance of a
1623         device after it was deleted. Instead add and remove cap's from the
1624         cap db as they are created and deleted.  This ensuring that a
1625         capibility is only used during the lifetime of the corresponding
1626         object.
1628         * cap.h, cap.c: Correct cap type - was signed32 should be
1629         signed_cell.
1631         * cap.c (cap_add, cap_remove): New methods for cap object that
1632         allow the explicit addition and removal of internal objects that
1633         the cap knows about.
1635         * cap.c (cap_init): Rewrite.  Verify that the only objects
1636         remaining in the cap data base are those that were entered first.
1637         Thse objects will be the permenant ones.
1638         * device.c (device_init_address): Remember to initialize the cap
1639         database.
1641         * device.c (device_create_instance_from): Explicitly add device
1642         instances to the cap database.  Simplify create code.
1643         (device_instance_delete): Explicitly remove device instances from
1644         the cap database.
1646         * device.c (device_create_from): Explicitly add a device to the
1647         cap data base.
1649         * device.c (device_create_from): Always set the cap members.
1651         * hw_disk.c: Output the instance when tracing.
1653 Sun Jan 19 16:44:29 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1655         * tree.c (split_device_specifier): Add support for aliases when
1656         looking up a device. Now needs a device as an argument.
1657         (split_property_specifier): Ditto.
1659 Sun Jan 19 15:28:23 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1661         * The memory "claim" and "release" methods take an address and
1662         size as arguments.  These may be multi cell values. Initially fix
1663         the memory code so that they check/detect this.  Leave the
1664         adjustment of any clients to later.
1666         * hw_memory.c (hw_memory_instance_claim,
1667         hw_memory_instance_release): Handle multi-cell memory devices.
1669         * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
1670         release of memory regions that were not claimed.
1672 Fri Jan 17 12:01:07 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1674         * device.h, device.c (device_instance_call_method): Correct return
1675         type - can return either 0 or -1, hence should be a signed type.
1676         * device_table.h: Ditto.
1678         * hw_memory.c (hw_memory_instance_claim,
1679         hw_memory_instance_release): Update.
1680         * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
1681         hw_disk_nr_blocks): Ditto.
1683 Fri Jan 17 11:50:13 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1685         * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
1686         method belonging to "/chosen/memory".
1687         (chirm_emul_release): Ditto.
1689         * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
1690         that are inlined.  These modules are called via a table and are
1691         not made inline.
1693         * hw_init.c (update_for_binary_section): Fix failure to allocate
1694         memory used by the binary in real-mode executions. If "claim"
1695         property is present, allocate memory from the "/chosen/memory"
1696         device.
1698         * emul_chirp.c (emul_chirp_create): Specify that memory should be
1699         claimed when loading a real image.
1701         * hw_memory.c (hw_memory_instance_claim): Don't page align memory
1702         allocations.
1704         * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
1705         when merging adjacent memory chunks.
1707 Thu Jan 16 08:51:25 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1709         * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
1710         optional PROCESSOR & CIA args so that this routine also abort an
1711         access.
1713         * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
1714         miss-aligned access when a transfer fails abort.
1716         * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
1717         instead of the vm_read_buffer.
1718         * emul_netbsd.c (do_write): Ditto.
1719         * emul_unix.c (do_unix_write): Ditto.
1721 Wed Jan 15 14:38:25 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1723         * configure.in (--enable-sim-jump): Default is NULL and not -E.
1724         * configure: Regenerate.
1726         * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
1727         (UNUSED): Only enable UNUSED if GCC >= 2.7.
1729         * gen-icache.c (print_icache_extraction): Print UNUSED macro
1730         instead of explicit __unused__ attribute.
1731         (print_icache_body): Ditto.
1732         * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
1734 Wed Jan 15 13:54:50 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1736         * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
1737         reference point.
1739         * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
1740         arguments so that there is a reference point for recovery.
1741         (vm_synchronize_context): Pass processor+cia for errors.
1742         (om_unpack_sr): Ditto.
1743         (om_unpack_srs): Ditto.
1744         * vm.c (vm_create): Review error messages.
1746         * vm.c: Include "cpu.h" so that cpu_error is visible.
1748         * ppc-instructions (Return From Interrupt): Pass CIA.
1749         (Instruction Synchronize): Ditto.
1750         * psim.c (psim_init): Ditto.
1752 Wed Jan 15 12:25:11 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1754         * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
1755         but also saves current processor state.
1757         * basics.h: Move #include <stdarg.h> to here from device_table.h.
1759         * interrupts.c (perform_oea_interrupt): Use.  No longer loose CIA
1760         when simulation aborted.
1761         (program_interrupt): Ditto.
1762         (floating_point_unavailable_interrupt): Ditto.
1763         (alignment_interrupt): Ditto.
1764         (floating_point_assist_interrupt): Ditto.
1765         (perform_oea_interrupt): Ditto.
1766         (machine_check_interrupt): Ditto.
1768 Tue Jan 14 12:19:10 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1770         * ppc-instructions (Move from Special Purpose Register): Support
1771         move from DEC.
1773 Mon Jan 13 16:58:12 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1775         * debug.h, debug.c: Add "interrupts" trace option.
1777         * interrupts.c (data_storage_interrupt): Add tracing.
1778         (machine_check_interrupt): Ditto.
1779         (instruction_storage_interrupt): Ditto.
1780         (alignment_interrupt): Ditto.
1781         (program_interrupt): Ditto.
1782         (floating_point_unavailable_interrupt): Ditto.
1783         (system_call_interrupt): Ditto.
1784         (floating_point_assist_interrupt): Ditto.
1785         (deliver_hardware_interrupt): Ditto.
1787         * interrupts.c (program_interrupt): For UEA mode, halt the
1788         processor - so that the current state is saved - instead of
1789         aborting.
1790         (floating_point_unavailable_interrupt): Ditto.
1791         (floating_point_assist_interrupt): Ditto.
1793 Thu Jan  2 09:10:41 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1795         * interrupts.c (perform_oea_interrupt): Halt rather than abort on
1796         a double interrupt.
1798 Wed Jan  1 22:54:52 1997  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1800         * ppc-instructions (Store Multiple Word, Load Multiple Word):
1801         Enable.
1803         * tree.c (print_properties): For an array consider printing it out
1804         as an integer array.
1806         * hw_memory.c (hw_memory_init_address): If an "available" property
1807         is present, use that to initialize the available memory instead of
1808         using the reg property.
1810         * emul_generic.c (emul_add_tree_hardware): Add "available"
1811         property to memory device.
1813 Fri Dec 20 13:19:07 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1815         * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
1817         * device.c (device_instance_call_method): Was only looking at the
1818         first method.
1820         * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
1821         (hw_disk_block_size): Implement block-size method.
1822         (hw_disk_max_transfer): Implement max-transfer method.
1824         * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
1826         * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
1827         invalid ihandle.
1828         (chirp_emul_instance_to_package): Ditto.
1829         (chirp_emul_method): Ditto.
1830         (chirp_emul_read): Ditto.
1831         (chirp_emul_write): Ditto.
1832         (chirp_emul_close): Ditto.
1833         (chirp_emul_seek): Ditto.
1834         (chirp_emul_package_to_path): Ditto (for phandle).
1835         (chirp_emul_package_to_path): Return the length.
1837         * psim.c (psim_merge_device_file): Allow continuation lines.
1839 Thu Dec 19 11:09:43 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1841         * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
1842         string and exit.
1844         * emul_chirp.c (chirp_emul_exit): Correct type of args struct
1845         members - *_cell not host dependant int.
1847 Wed Dec 18 17:49:59 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1849         * interrupts.c (perform_oea_interrupt): Print additional
1850         information if a double interrupt is encountered.
1852 Wed Dec 18 17:49:59 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1854         * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
1855         being specified with the -f option.
1856         (psim_merge_device_file): Correct check for end of string.
1858 Wed Dec 18 17:49:59 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1860         * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
1861         list of devices. Return zero to the client instead.
1862         * emul_chirp.c (chirp_emul_child): Ditto
1863         * emul_chirp.c (chirp_emul_parent): Ditto
1865         * device.c (device_root): Assert assumption about the device being
1866         valid.
1868 Tue Dec 17 15:12:38 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1870         * emul_chirp.c (emul_chirp_create): Add description property to
1871         each significant node in the device tree.
1872         * emul_bugapi.c (emul_bugapi_create): Ditto.
1874 Fri Dec 13 14:30:31 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1876         * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
1877         tempoary two byte buffer.  Single byte read with fgets will not
1878         work.
1879         * main.c: Include errno.h.
1880         (sim_io_read_stdin): For non-STDIO, make it work.
1882         * emul_chirp.c (chirp_emul_read): Return the correct error status.
1884 Fri Dec 13 14:30:31 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1886         * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
1887         Instead have each emulation default it to DO_USE_STDIO.
1889         * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
1890         mechanism as the default if enabled or if nothing selected.
1892         * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
1893         return value.
1894         (sim_io_write_stdout): Ditto.
1895         (sim_io_write_stderr): Ditto.
1896         * main.c (sim_io_write_stdout): Ditto.
1897         (sim_io_write_stderr): Ditto.
1898         (sim_io_read_stdin): Ditto.
1900 Tue Dec 10 10:31:48 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1902         * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
1903         type correct.
1904         * vm.c (om_effective_to_virtual): Ditto.
1905         * events.c (event_queue_schedule{,_after_signal}): Ditto.
1906         (event_queue_{deschedule,process}): Ditto.
1907         * hw_htab.c (htab_decode_hash_table): Ditto.
1908         (htab_map_{page,binary}): Ditto.
1909         * hw_opic.c (hw_opic_init_data): Ditto.
1910         (handle_interrupt): Ditto.
1911         (do_processor_init_register_{read,write}): Ditto.
1912         (write_vector_priority_register): Ditto.
1913         ({read,write}_destination_register): Ditto.
1914         (do_suprious_vector_register_{read,write}): Ditto.
1915         (do_current_task_priority_register_N_{read,write}): Ditto.
1916         (do_timer_frequency_reporting_register_{read,write}): Ditto.
1917         (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
1918         (do_ipi_N_dispatch_register_write): Ditto.
1919         (do_vendor_identification_register_read): Ditto.
1920         (do_feature_reporting_register_N_read): Ditto.
1921         (do_global_configuration_register_N_{read,write}): Ditto.
1922         * hw_phb.c (hw_phb_attach_address): Ditto.
1923         (hw_phb_unit_decode): Ditto.
1924         (hw_phb_address_to_attach_address): Ditto.
1925         (hw_phb_io_{read,write}_buffer): Ditto.
1926         * hw_ide.c (setup_fifo): Ditto.
1928         * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
1929         files via -I<dir> instead of using "../../gdb/" prefixes.
1931 Tue Dec 10 10:12:44 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1933         * debug.h: Add tracing for the pal device.
1934         * hw_pal.c: Update.
1936         * emul_chirp.c (chirp_emul_getprop): More tracing.
1938 Tue Dec 10 10:12:44 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1940         * device.h, device.c (device_find_ihandle_runtime_property): New
1941         function. Reverse of add_ihandle_runtime property.
1942         (device_init_runtime_properties): Use it.
1944         * device.c (find_property_entry): New function returns the
1945         internal property spec.
1946         (device_set_property): Use.
1947         (device_find_property): Use.
1949 Tue Dec 10 10:12:44 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1951         * psim.c (psim_merge_device_file): Strip newline from device
1952         specs.
1954 Tue Dec 10 10:12:44 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1956         * hw_htab.c (htab_map_binary): For overlapping text / data maps
1957         merge the two.  Also check that the merge is safe.
1959         * emul_chirp.c (emul_chirp_create): Add a description property to
1960         the pte's so that they are easier to identify.
1962         (emul_chirp_create): Don't specify a load address for the CHRP
1963         image.  Always use the values specified by the executable.
1965         * hw_htab.c (htab_map_page): Abort if a duplicate map is
1966         encountered.
1968 Mon Dec  9 12:08:46 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1970         * hw_htab.c (htab_map_page): Formatting.
1972         * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
1973         method name when handling the client call. Also check for other
1974         bad call arguments.
1976         * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
1977         etc to be overriden.
1979 Mon Dec  9 12:08:46 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1981         * os_emul.c (os_emul_create): Use tree find property instead of
1982         device find property - sigh.
1984 Thu Dec  5 10:46:42 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1986         * 961205: Release snapshot 961205.
1988 Thu Dec  5 10:46:42 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
1990         * configure.in (hostbitsize, bitsize): Fix typo in error message -
1991         cannot contain a comma.
1992         (sim-warnings): Check for more potential errors.
1994         * psim.c (psim_usage): Add -f <file> option.  Specifies a file
1995         containing device tree specifications that should be merged into
1996         the device tree.
1998         * configure.in: Sort options.
1999         * configure: Rebuild
2001 Wed Dec  4 13:57:31 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
2003         * psim.c (psim_usage): Add -n option - specify number of
2004         processors.
2006         * emul_chirp.c: Add description.
2007         * emul_bugapi.c: Ditto.
2008         * emul_unix.c: Ditto.
2009         * emul_netbsd.c: Ditto.
2011 Fri Nov 29 11:12:22 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
2013         * hw_pal.c (hw_pal_attach_address): New function, if an attach is
2014         encountered, assume that it is the single disk.
2015         * hw_pal.c: Add generic device/size decode methods.
2017         * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
2018         property entry when determining the nvram size.
2020         * hw_core.c: Add generic address/size decode methods.
2022         * emul_chirp.c (emul_chirp_instruction_call): Return and trace
2023         nonzero status from client functions.
2025         * main.c (error): Always include a cariage return when writing out
2026         errors.
2028 Wed Nov 20 00:36:55 1996  Doug Evans  <dje@canuck.cygnus.com>
2030         * sim_calls.c (sim_resume): Reset sim_should_run if single
2031         stepping.
2033 Thu Nov 28 13:19:46 1996  Andrew Cagney  <cagney@kremvax.tpgi.com.au>
2035         * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
2036         optional disks.
2038         * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
2039         Attach the pal - for I/O - as a pseudo device haning from the
2040         firmware sub tree.
2042         * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
2043         the device tree at the address of the hi-mem interrupt vector
2044         addreses.  Used by bugapi to establish its trap instructions.
2046         * debug.h: Add a new macro DITRACE for tracing device instances.
2048         * debug.h: Extend the DTRACE macro so that it can also tests for
2049         device specific tracint.
2051         * device.h, device.c (device_trace): Add method to determine
2052         device specific tracing.
2053         (device_init_address): Set the devices tracing level.
2055 Thu Nov 21 12:05:32 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2057         * tree.h, tree.c (tree_device): New files - separate out the
2058         device parser and other tree operations from the device.
2060         * inline.h, inline.c (INLINE_TREE): Add.
2061         * device.h, device.c (device_tree_add_parsed): Delete.
2062         * Makefile.in (tree.c): Add rules for new file.
2063         * Makefile.in: Better order the emul_* files.
2065         * emul_generic.c (emul_add_tree_hardware): Update.
2066         * emul_netbsd.c (emul_netbsd_create): Update.
2067         * emul_unix.c (emul_unix_create): Ditto.
2068         * emul_chirp.c (emul_chirp_create): Ditto.
2069         * emul_bugapi.c (emul_bugapi_create): Ditto.
2070         * psim.c (psim_tree): Ditto.
2071         * hw_init.c: Ditto.
2073         * emul_generic.h: Include tree.h
2074         * Makefile.in: Add to EMUL_GENERIC_H dependencies.
2076         * device.h, device.c (device_root): New function - returns the
2077         root of the tree.
2078         * corefile.c: Use.
2080         * device.h, device.c (device_clean): New function, clean up device
2081         ready for next simulation run. This includes things like deleting
2082         interrupt edges and properties created during the simulation and
2083         also scrubbing any pre-defined properties.
2084         * tree.c (tree_init): Use.
2086         * device.h, device.c (device_init_static_properties): New
2087         function.  Initialize any static predefined properties.  By static
2088         we mean those that have values that can be determined before the
2089         device tree initialization has started.
2090         * tree.c (tree_init): Use.
2092         * device.h, device.c (device_init_address): Add code to
2093         check/verify the devices #address-cells and #size-cells.
2094         (device_add_integer_property): Delete corresponding code.
2095         (device_nr_address_cells, device_nr_data_cells): Check for
2096         property when returning value.
2098         * device.h, device.c (device_init_runtime_properties): New
2099         function.  Initialize those properties that are not `static'.  At
2100         present the only such property is the ihandle.
2101         * tree.c (tree_init): Use.
2103         * device.h, device.c (reg, ranges): Rework these so that they use
2104         an array of the fundamental type - single reg or single range
2105         entry.
2107         * device.h, device.c (device_add_ihandle_runtime_property):
2108         Re-implement the adding of an ihandle during tree construction so
2109         that it better fits in with device initialization.
2111 Thu Nov 21 12:05:32 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2113         * device.h, device.c (device_ioctl): Add additional argument -
2114         request - so that the caller must always specify the type of
2115         the ioctl request.
2117         * device_table.h: Update.
2118         * hw_trace.c (hw_trace_ioctl): Ditto.
2119         * hw_vm.c (hw_vm_ioctl_callback): Ditto.
2120         * hw_init.c (hw_stack_ioctl_callback): Ditto.
2121         * psim.c (psim_options): Ditto.
2123 Thu Nov 21 12:05:32 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2125         * BUGS: Updated a bit.
2127 Wed Nov 20 14:06:37 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2129         * hw_opic.c: Finish - third round.
2131 Wed Nov 20 12:02:08 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2133         * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
2134         reg index.
2135         (hw_glue_io_write_buffer_callback): Ditto.
2137 Tue Nov 19 21:17:08 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2139         * events.c (event_queue_process): Was incorrectly consuming future
2140         events on the queue when they should be left alone.
2142         * debug.h, debug.c (events): Add support for event queue tracing.
2143         * events.c: Add event tracing.
2145         * debug.h, debug.c: Order device trace options.
2147 Fri Nov 15 15:23:39 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2149         * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
2150         warnings generated by GCC.
2152 Sun Nov 17 17:59:14 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2154         * sim-endian.h: Add LE versions of byte swap macros.  Needed for
2155         PCI devices which are little-endian.
2157         * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
2159 Sun Nov 17 17:59:14 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2161         * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
2162         so that it is implementing a 1-1 address map.
2164         * emul_generic.c (emul_add_tree_hardware): Adjust.
2166         * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
2167         a default.
2169 Sun Nov 17 17:59:14 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2171         * device.c (split_find_device): Be tolerant of missing unit
2172         addresses.
2174 Fri Nov 15 16:49:49 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2176         * basics.h (port_direction): New type, specify the direction of
2177         any `port'.
2179         * device.h, device.c (device_interrupt_decode): Include
2180         specification of port direction in operations.
2181         (device_interrupt_encode): Ditto.
2183         * device_table.h: Add a direction field to the interrupt port
2184         table.
2186         * device.c (device_tree_add_parsed): Specify port direction.
2188 Thu Nov 14 21:38:13 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2190         * hw_opic.c: Finish - second round.
2192 Thu Nov  7 00:18:59 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2194         * hw_htab.c (htab_init_data_callback): Allow the virtual-address
2195         to be specified as an array which allows 64bit addresses.
2197         * device.c (device_find_integer_array_property): New function.
2198         Simplify the querying of elements of an integer array.
2199         (device_add_integer_property, device_find_integer_property):
2200         Update to correctly use the cell type.
2202         * vm.c (om_unpack_sr): Clarify shifting comment.
2203         (om_pte_0_masked_vsid): Ditto. Add 64bit version.
2205         * emul_chirp.c (emul_chirp_create): Initialize the segment
2206         registers.
2208         * vm.c (om_effective_to_virtual): Trace segment register use.
2210         * hw_htab.c (htab_map_page): Print out the pteg base address to
2211         simplify cross checking between vm and the htab.
2212         (htab_decode_hash_table): Use device_error instead of error.
2213         (htab_map_page): Ditto.
2214         (htab_dma_binary): Ditto.
2215         (htab_map_binary): Ditto.
2216         (htab_init_data_callback): Ditto.
2218 Wed Nov  6 20:20:58 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2220         * interrupts.h: Clarify what the optional instruction program
2221         interrupt is - a subset of illegal instruction program interrupt.
2223         * interrupts.c (program_interrupt): For UEA mode, clarify what an
2224         optional instruction program interrupt is.
2225         (program_interrupt): For OEA mode, as per spec, generate an
2226         illegal instruction program interrupt when an optional instruction
2227         is encountered.
2229         * gen-semantics.c (print_semantic_body): Delete code
2230         differentiating between an unimplemented floating point and normal
2231         instruction.  Instead, such a case can be handled explicitly.
2233         * ppc-instructions (store floating-point as integer word indexed):
2234         Mark as optional.
2235         (Floating Convert to Integer Doubleword): Make the floating point
2236         assist interrupt explicit.
2237         (Floating Convert To Integer Doubleword with round towards Zero):
2238         Ditto.
2239         (Floating Convert To Integer Word): Ditto
2240         (Move From FPSCR): Ditto.
2241         (Move to Condition Register from FPSCR): Ditto.
2242         (Move To FPSCR Fields): Ditto.
2243         (Move To FPSCR Field Immediate): Ditto.
2244         (Move To FPSCR Bit 0): Ditto.
2245         (Move To FPSCR Bit 1): Ditto.
2247 Mon Nov  4 12:49:13 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2249         * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
2250         breaking up transfers.
2252         * corefile.c: Adjust arguments so that the client server
2253         relationship is clarified.
2255         * hw_glue.c (hw_glue_init_address): Update so it can be attached
2256         to a PCI bus.
2258         * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
2259         looking for things like overflow/underflow.
2261 Sun Nov  3 18:45:20 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2263         * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
2264         PAL device instead of the IOBUS.  The disk must be attached to a
2265         logical bus.
2267         * hw_disk.c (hw_disk_init_address): Just use the unit address
2268         directly in the attach - the rest isn't relevant.
2270 Sat Nov  2 21:48:57 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2272         * configure.in (sim-hardware, sim-packages): Allow additional
2273         hardware and packages to be prefixed as well as appended.
2275         * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
2276         packages when building them.  Consequently, a user can override a
2277         standard device by prefixing their own version.
2279         * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
2281 Fri Nov  1 14:42:57 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2283         * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
2284         reads and writes.
2285         (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
2286         (mon_print_info): Correct typo regarding # of unaligned reads and
2287         writes.  Print out how many 1, 2, 4, and 8 byte reads/writes there
2288         are.
2290 Tue Oct 29 17:55:43 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2292         * configure.in (AC_CHECK_FUNCS): Add access.
2293         * config{.in,ure}: Regenerate.
2295         * emul_unix.c (do_unix_nop): System call that always succeeds.
2296         (do_unix_access): Support access system call.
2297         (solaris_descriptors): Make sigaltstack and sigaction nops.
2298         ({solaris,linux}_descriptors): Add support for access.
2300 Tue, 8 Oct 18:42:26 1996  Jason Molenda <crash@cygnus.co.jp>
2302         * Makefile.in (clean): Move config.log to distclean.
2304 Fri Nov  1 16:44:28 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2306         * corefile-n.h (core_map_write_N): Improve abort messages.
2308         * device.h, device.c (device_attach_address): Remove unused name
2309         parameter.
2310         (device_detach_address): Ditto.
2311         * device_table.h, device_table.c: Update.
2312         * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
2313         * hw_nvram.c (hw_nvram_init_address): Ditto.
2314         * hw_memory.c (hw_memory_init_address): Ditto.
2315         * hw_vm.c (hw_vm_init_address_callback): Ditto.
2316         (hw_vm_attach_address): Ditto.
2317         (hw_vm_add_space): Ditto.
2318         * hw_init.c (update_for_binary_section): Ditto.
2319         * hw_core.c (hw_core_attach_address_callback): Ditto.
2321         * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
2322         configurable parent busses.
2324 Wed Oct 30 18:46:32 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2326         * device_table.c (generic_device_size_to_attach_size): Provide
2327         limited support for multi-cell sizes.
2328         (generic_device_address_to_attach_address): Ditto for addresses.
2330 Tue Oct 29 02:01:29 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2332         * device.c (device_add_integer_property): Check for setting of
2333         #address-cells and #size-cells properties.  For these, update the
2334         corresponding device values.
2335         (device_nr_address_cells, device_nr_size_cells): Use the value
2336         from the device instead of the property.
2338         * hw_core.c: Use generic address and size conversions for the top
2339         bus.
2341         * hw_memory.c (hw_memory_init_address): Tolerate case where
2342         #address and #size cells is greater than 1.
2344         * device.c (device_tree_print_device): Clean out printing of
2345         properties.
2347         * device.c (split_device_specifier): Don't detect comments here -
2348         "#" can be a valid prefix - eg #size-cells.
2350         * psim.c (psim_merge_device_file): Suppress comments and blank
2351         lines here.
2353         * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
2354         pal unit address.  Add the property /#address-cells to the root of
2355         the tree.
2357         * device.c (device_template_create_device): Check that the unit
2358         address was successfully parsed.
2360         * device_table.c (generic_device_unit_decode): Rewrite to better
2361         handle multi-cell addresses.
2362         (generic_device_unit_encode): Ditto.
2364         * emul_generic.c (emul_add_tree_hardware): "reg" properties no
2365         longer need the explicit array type - the parser takes care of it.
2367         * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
2368         to keep GCC happy.
2370 Mon Oct 28 22:55:48 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2372         * hw_ide.c: New file.  Model of a basic IDE interface attached to
2373         a PCI bus.
2375         * configure.in (hardware): Add the ide device to the default
2376         configuration.
2377         * configure: Regenerate.
2379         * debug.h, debug.c: Add tracing option for the IDE device.
2381 Fri Oct 25 21:28:25 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2383         * hw_phb.c, hw_phb.h: New files - implement a PHB.
2385         * configure.in (hardware): Add the phb to the list of devices to
2386         build by default.
2388 Fri Oct 25 21:28:25 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2390         * hw_com.c: Review description.
2391         * hw_disk.c: Ditto.
2392         * hw_htab.c: Ditto.
2393         * hw_eeprom.c: Ditto.
2394         * hw_init.c: Ditto.
2395         * hw_cpu.c: Ditto.
2397         * hw_com.c: Update event handling.
2399         * hw_disk.c: Implement tracing.
2401 Fri Oct 25 21:28:25 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2403         * device_table.c (generic_device_init_address): Use
2404         assigned-addresses property in preference to any other reg
2405         property.
2407 Fri Oct 25 21:28:25 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2409         * device.h, device.c (device_find_ranges_property): New function.
2410         Simplify the manipulation of "ranges" properties.
2412         * device.c (device_add_parsed): Extend to include support for the
2413         ranges property.
2415         * device.c (device_add_parsed): Add assigned-addresses to the list
2416         of reg type properties.
2418         * device.c (device_tree_print_device): Add code to format and
2419         print a ranges property.
2421         * device.h, device.c (device_nr_address_cells,
2422         device_nr_size_cells): New functions. Determine the values of the
2423         standard properties #address-cells and #size-cells.  Both of which
2424         are optional and have default values of two and one respectfuly.
2425         Previously, code that determined #address-cells was incorrectly
2426         using a value of one.
2428 Fri Oct 25 21:28:25 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2430         * debug.h, debug.c: Sort debug options, Add entries for the
2431         comming PHB device.
2433 Fri Oct 18 12:12:21 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2435         * ppc-instructions (Floating Select): Add support for fsel unless
2436         model is 601.  Allow user to filter out instruction unless -Fs is
2437         passed to igen.
2438         (Store Floating-Point as Integer Word Indexed): Raise optional
2439         instruction program abort.  Allow user to filter out instruction
2440         unless -Fs is passed to igen.
2441         (Floating Square Root{, Single}): Ditto.
2442         (Floating Reciprocal Estimate Single): Ditto.
2443         (Floating Reciprocal Square Root Estimate): Ditto.
2445         * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
2446         to igen.
2447         * configure: Regenerate.
2449         * interrupts.h (program_interrupt_reasons): Add
2450         optional_instruction_program_interrupt.
2452         * interrupts.c (program_interrupt): Call error with more detailed
2453         information on program interrupts, particularly in user mode.  Add
2454         support for optional_instruction_program_interrupt.
2456 Wed Sep 25 10:20:29 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2458         * hw_glue.c: New device.  Hooks for manipulating interrupt ports.
2460         * debug.h, debug.c (trace_glue_device): Add tracing support for
2461         the interrupt glue logic device.
2463         * configure.in (hardware): Add glue device.
2464         * configure: Regenerate.
2466 Tue Sep 24 20:55:38 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2468         * device.c (device_tree_parse_integer_property): New function,
2469         parse a list of integers as an array property.
2470         (device_tree_add_parsed): Call it.
2472         * device.c (device_tree_parse_string_property): New function,
2473         parse a list of strings as a string property (with embeded
2474         null's).  For moment, don't try to implement a complext string
2475         parser.
2476         (device_tree_add_parsed): Call it.
2478 Tue Sep 24 16:30:48 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2480         * hw_opic.c: New file.  OpenPIC interrupt controller.
2482         * configure.in (hardware): Add opic device.
2483         * configure: re-generate.
2485         * hw_pic.c: Delete, replaced with hw_opic.c.
2487         * debug.h, debug.c: Add debug option for OpenPIC device. -
2488         opic-device.
2490 Tue Sep 24 16:30:48 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2492         * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
2493         now the file that does all the inlining.
2495         * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
2496         library source code that could be involved in an inlining.  Make
2497         idecode.o only dependant on the inlined library source code.
2499         * Makefile.in (LIB_OBJ): Put options last on the list so that it
2500         is compiled last.
2502         * std-config.h (DEVICE_INLINE): Only inline locals when the
2503         default is to inline.
2505 Mon Sep 23 00:37:49 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2507         * hw_htab.c (htab_sum_binary): Determine the real-base for the
2508         binary.
2510         * hw_htab.c (htab_map_binary): Depending on the value of the
2511         load-base, either map the program in as a contiguous section or as
2512         separate sections controled by th binaries lma values.
2513         (htab_init_data_callback): Ditto.
2515 Sun Sep 22 15:56:22 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2517         * emul_generic.c (emul_add_tree_options): Remove load-base option.
2519         * emul_chirp.c (map_over_chirp_note): Add load_base field to note
2520         struct.  Don't require the load_base field to be present - just
2521         issue warning - it is a recent addition.
2522         (emul_chirp_create): Support both virtual and physical modes.
2524         * emul_chirp.c (emul_chirp_create): Add a stack initialization
2525         property so that any arguments specified on the command line can
2526         be passed on to user programs.
2528         * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
2529         argument passing to the pseudo device stack.
2531 Sat Sep 21 19:39:56 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2533         * device.c (device_error): Make it more tolerant to incomplete
2534         devices.
2536         * hw_init.c (hw_data_init_data_callback): Extend the data device
2537         so that it can perform initialization operations either dma or a
2538         more complex instance open, seek, write operation.
2539         * hw_init.c: Update the description of the data device to reflect
2540         this.
2542 Sat Sep 21 00:13:02 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2544         * device.c (device_event_queue_schedule,
2545         device_event_queue_deschedule, device_event_queue_time): Have the
2546         device object export the event operations.  Making these available
2547         from the device object should hopefully simplify writing device
2548         models.
2550 Fri Sep 20 14:04:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2552         * configure.in (sim-hardware): Add eeprom device to default build.
2554         * hw_eeprom.c: Rewrite so it works.
2556         * debug.h, debug.c: Add tracing support for the eeprom and com
2557         devices.
2559 Thu Sep 19 14:40:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2561         * debug.h: Add disklabel-package and disk-device trace options.
2562         debug.h (PTRACE): Add macro to simplify tracing in packages.
2564 Thu Sep 19 14:40:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2566         * device.c (device_create_instance_from): Tighten up loop
2567         searching for device instances.
2568         (device_instance_delete): Ditto.
2569         (device_instance_delete): Only leaf instances need to be removed
2570         from a devices list of active instances.
2572 Thu Sep 19 14:40:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2574         * hw_disk.c: Add the cdrom as an alias.
2576         * pk_disklabel.c (disklabel_delete): Implement, remembering to
2577         delete the raw disk instance while we're at it.
2579         * pk_disklabel.c (pk_disklabel_create_instance): Implement a
2580         little bit more - still a long way to go.
2582         * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
2583         new head position after a read or write.
2585 Thu Sep 19 13:05:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2587         * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
2588         the internal buffer.
2590 Thu Sep 19 13:05:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2592         * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
2593         in the correct order.
2595         * emul_chirp.c (chirp_emul_call_method): Correct computation for
2596         the address of the first stack argument passed in from the client
2597         program.
2599 Wed Sep 18 19:33:54 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2601         * words.h: Add new types signed_cell and unsigned_cell which
2602         correspond to the signed and unsigned IEEE 1275 memory locations.
2603         * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
2604         memory cell, replace uses of unsigned32 with unsigned_cell.
2605         * device_table.h: Ditto.
2607         * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
2608         convert cell sized values to from big endian.
2609         * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
2610         use these new macros.
2612 Tue Sep 17 15:57:44 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2614         * device.c (device_tree_add_parsed): Detect and report an
2615         interrupt being attached to an invalid device. Was dumping core.
2617 Mon Sep 16 23:09:12 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2619         * device.h, device.c (device_address_to_attach_address,
2620         device_size_to_attach_size): New functions.  Convert a devices
2621         unit address or unit size structure into a form suitable for
2622         passing on to the attach and detach functions.
2623         * device_table.h: Add extra methods to device table.
2625         * device.h, device.c (device_find_reg_property): New function.
2626         For a reg type property, return the selected address + size
2627         tupple, along with a positive success status.  Add a reg_property
2628         to the list of property types.
2629         * (device_tree_add_parsed): Make array properties with the name
2630         reg or alternate-reg of type reg_property.
2632         * hw_memory.c (hw_memory_init_address): Rewrite to use new
2633         find_reg_property method.
2634         * hw_nvram.c (hw_nvram_init_address): Ditto.
2636         * device.c (device_tree_print_device): Add code to print out a reg
2637         property.
2639         * device_table.c (generic_device_address_to_attach_address,
2640         generic_device_size_to_attach_size ): New functions.  Generic
2641         functions for converting between unit and attach address or size.
2643         * device_table.c (generic_device_init_address): Rewrite to use the
2644         new find_reg and address convert functions.  Look for both reg and
2645         alternate-reg properties.
2647 Mon Sep 16 23:09:12 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2649         * hw_com.c: New file.  A '550 serial device that can quickly be
2650         attached to any bus.
2651         * configure.in (enable-sim-hardware): Add the com device.
2652         * configure: re-generate.
2654 Thu Sep 12 17:30:56 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2656         * device.c (device_tree_verify_reg_unit_address): New
2657         function. Check that the unit address as specified by the reg
2658         property correctly corresponds to any unit address previously
2659         specified by the devices name.
2660         (device_tree_add_parsed): When adding a reg property, verify
2661         that the unit-address - first value of property - correctly
2662         matches any previous value specified when creating the device
2663         node.
2665 Thu Sep 12 17:30:56 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2667         * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
2669 Fri Aug 16 12:05:24 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2671         * device.c (device_full_name): Cast strdup to char *, since AIX
2672         3.2.5 mistakenly declares the function to be const char *.
2673         (device_create_from): Ditto.
2674         (device_create_instance_from): Ditto.
2675         (device_add_property): Ditto.
2677 Tue Aug 13 11:40:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2679         * debug.c (trace_option): For -t all, do not set the
2680         trace_dump_device_tree flag, so that the simulator is run.
2682 Tue Aug 13 11:40:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2684         * Makefile.in (options.o): Depend on defines.h.
2685         (defines.h): New rule, go through config.h and make strings of all
2686         of the #define HAVE_xxx macros.
2687         (distclean): Remove defines.h.
2689         * options.c (print_options): Print whether many of the
2690         configuration macros are defined.
2692         * main.c (main): If -t options and no filename, just print the
2693         options, and don't print the usage message.
2695 Mon Aug 12 18:42:37 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2697         * configure.in: Test whether /dev/zero works on the system, and if
2698         it does, define HAVE_DEVZERO.
2699         * configure: Regenerate.
2701         * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
2702         if we don't have a working /dev/zero on the system.
2704         * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
2705         defined, don't add disk support.
2706         (emul_bugapi_do_diskio): Ditto.
2707         (emul_bugapi_instruction_call): Ditto.
2709 Wed Aug  7 14:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2711         * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
2712         defined, make sure HAVE_TCGETATTR is #undef'ed
2714 Wed Aug  7 14:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2716         * std-config.h (REGPARM): Only define REGPARM attributes if using
2717         GNU C.  Test for __i686__ in case GCC ever defines it.  If not on
2718         a x86 platform, define REGPARM as nothing.
2720         * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
2721         also.
2723 Wed Aug  7 20:19:55 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2725         * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
2726         goto_switch_gen.
2727         * gen-idecode.c: Ditto.
2729         * gen-idecode.c (print_idecode_table): Comment out check for
2730         switch/table combination until a bug with it is fixed.
2732         * ppc-opcode-goto: New file.  Like complex and flat but uses
2733         goto-switch instead of padded-switch for the tables.
2735         * gen-idecode.c (print_goto_switch_name): New function.
2736         (print_goto_switch_table_leaf): New function.
2737         (print_goto_switch_break): New function.
2738         (print_goto_switch_table): New function. Prints a jump table
2739         that can be jumped into instead of a switch statement.
2741         * gen-idecode.c (*switch_*): As an option output a switch that is
2742         implemented using a jump table but only if the switch is not
2743         boolean.
2745 Tue Aug  6 09:28:22 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2747         * configure.in (--enable-sim-{hardware,packages}): Fix typos.
2748         * configure: Regenerate.
2750         * device.c (device_instance_call_method): Fixup format message in
2751         error case.  Return 0 in case of error to shut up compiler
2752         warnings.
2754 Wed Aug  7 00:17:37 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2756         * device_table.c (generic_device_unit_decode): Require a comma
2757         between elements of a unit address.
2759         * device.c (device_tree_print_device): For reg, alternate-reg and
2760         ranges properties use special print functions.
2761         (device_print_ranges_property): Print formatted ranges property.
2762         (device_print_reg_property): Print formatted reg property.
2764 Tue Aug  6 21:35:18 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2766         * device.c (device_tree_add_parsed): For reg, ranges and
2767         alternate-reg properties use a special parser.
2768         (device_tree_parse_reg_property): New function to parse a reg
2769         property.
2770         (device_tree_parse_ranges_property): New function to parse a
2771         ranges property.
2772         (device_encode_unit): Wrapper for encode_unit callback.
2773         (device_decoce_unit): Wrapper for decode_unit callback.
2775 Wed Jul 31 00:02:30 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2777         * device_table.h (device_instance_callbacks): Relace the claim and
2778         release methods with a more general table mapping from method-name
2779         to method-function.
2781         * device.c (device_instance_call_method): New function.  Implement
2782         the OpenBoot call-method client interface.  Attempts to locate the
2783         instances method in the callback table.
2784         (device_instance_claim, device_instance_release): Delete.
2785         Replaced with call-method and a lookup table.
2787         * emul_chirp.c (chirp_emul_call_method): Use the new device
2788         instance call method and let that handle a client claim call.
2790         * hw_htab.c (claim_memory): Wrapper function to call the memory
2791         devices "claim" method using the new device-instance call-method
2792         interface.  Replaces the previous direct calls to claim.
2793         (htab_map_region): Use claim_memory.
2794         (htab_init_data_callback): Ditto.
2796         * hw_memory.c (hw_memory_instance_claim): Update function
2797         interface so that it is compatible with call-method.
2798         (hw_memory_instance_release): Ditto.
2799         (hw_memory_instance_methods): New table of memory specific
2800         methods claim and release.  Add to the hw_memory_callback
2801         table.
2803 Tue Jul 30 21:26:14 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2805         * psim.c (psim_init): Back out of change to initial value of
2806         system->last_cpu.
2808 Tue Jul 30 21:12:24 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2810         * sim_callbacks.h (sim_io_printf_filtered): Replace
2811         printf_filtered with a local simulator specific version.  Add
2812         #define printf_filtered to simplify updating of existing code.
2814         * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
2815         sim_io_write_stderr): New functions.  Read / write to the
2816         simulations stdin and stdout and stderr interfaces.  Merge in code
2817         from hw_pal that previously handled async I/O.
2818         (sim_io_flush_stdoutput): Rename flush_stdoutput.  Add #define
2819         flush_stdoutput to simplify updating of existing code.
2821         * hw_pal.c (scan_hw_pal, write_hw_pal,
2822         hw_pal_instance_write_callback): Use the new sim_io functions.
2824         * main.c: Implement standalone versions of the new sim_io
2825         functions.  Include support for async I/O.
2826         * sim_calls.c: Ditto.  This time using the gdb callback table.
2828         * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
2829         stdio configuration so that it works in the same way as the rest
2830         of the simulation.
2831         * psim.c (psim_create): Initialize current_stdio from the device
2832         tree.
2833         * emul_generic.c (emul_add_tree_options): Enter a default value
2834         for use-stdio in the device tree.
2836 Fri Jul 26 19:43:03 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2838         * gen-idecode.c (print_jump): Was always generating a jump back to
2839         idecode.  Only necessary at tail of semantic code.
2840         (print_jump): Was always setting the processor's cia, even during
2841         startup when the processor was still undefined.
2842         (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
2843         not just equal.
2845         * options.c (print_options): Add printing of WITH_REGPARM and
2846         WITH_STDCALL.
2848         * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
2849         (disabled) values if not defined.
2851 Fri Jul 26 00:36:35 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2853         * ppc-cache-rules (cache): Change RS and RB to cache instead of
2854         compute.  The block move instructions use them.
2856         * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
2857         register.
2858         (CR_FIELD): New macro, extract specific CR register.
2859         (FPSCR_FIELD): New macro, extract specific FPSCR register.
2861         * registers.h (GPR): New macro, simplify accesses to GPR[i].
2863         * bits.c (INSERTED): Covert INSERTED macro into a function.
2864         (EXTRACTED): Conditionally compile on correct bit size macro.
2866         * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
2868         * ppc-instructions: With hints from Paul Martin, type in missing
2869         some instruction semantics.  Leave disabled for the moment.
2870         (Load Multiple Word): Ditto.
2871         (Store Multiple Word): Ditto.
2872         (Load String Word Immediate): Ditto.
2873         (Load String Word Indexed): Ditto.
2874         (Store String Word Immedate): Ditto.
2875         (Store String Word Indexed): Ditto.
2876         (Move to Condition Register from XER): Ditto.
2877         (Move From Condition Register): Ditto.
2878         (Move From FPSCR): Ditto.
2879         (Move to Condition Register from FPSCR): Ditto.
2880         (Move To FPSCR Field Immediate): Ditto.
2881         (Move To FPSCR Fields): Ditto.
2882         (Move To FPSCR Bit 0): Ditto.
2883         (Move To FPSCR Bit 1): Ditto.
2885 Thu Jul 25 22:10:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2887         * std-config.h (SEMANTICS_INLINE): By default, mask out the
2888         inlining of semantic functions from DEFAULT_INLINE.  Almost all
2889         configurations call the semantic code via a pointer so there is
2890         little benefit.
2892         * std-config.h (ICACHE_INLINE): Ditto.
2894 Thu Jul 25 20:07:30 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2896         * configure.in (sim_regparm): Add configuration option for
2897         enabling GCC's regparm attribute.
2898         * (sim_stdcall): Add configuration option for enabling GCC's
2899         stdcall attribute.
2901         * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
2902         compilations.
2903         * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
2905         * std-config.h (REGPARM): Extend construction of REGPARM macro so
2906         that it can include __stdcall__ function attribute.
2908 Wed Jul 24 19:04:20 1996  Andrew Cagney  <cagney@sawnoff>
2910         * options.c (print_options): Include SUPPORT_INLINE in information
2911         dump.
2913         * gen-idecode.c (print_run_until_stop_body): Only generate loop
2914         termination test if creating idecode_run_until_stop.  Push the
2915         loop termination test back into each alternative branch.
2917 Wed Jul 24 15:47:09 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2919         * gen-icache.c (print_icache_function): Have the cache function
2920         always update the cache_entries semantic and address fields.
2922         * gen-idecode.c (print_idecode_switch_illegal): Include a break
2923         when generating illegal instructions.  This was commented out
2924         which is a hangover from looking a at switch statements generated
2925         using indirect jumps.
2927 Tue Jul 23 20:57:01 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2929         * igen.c (print_my_defines): Replaces print_define_my_index.
2930         Print both a definition for MY_INDEX and MY_PREFIX.
2931         * gen-icache.c (print_icache_function): Adjust.
2932         * gen-idecode.c (print_jump_insn): Adjust.
2933         * gen-semantics.c (print_c_semantic): Adjust.
2935         * gen-support.c (gen_support_h): Add optional include to created
2936         support.h so that, like cpu, it is optionally inlined for all
2937         modules that include it.
2938         * inline.h, inline.c: Adjust so that support.[hc] is handled the
2939         same as cpu.[hc].
2941         * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
2942         name for a lable and then branch to it.
2944         * ppc-instructions (convert_to_integer, Floating Round to
2945         Single-Precision, Floating Convert from Integer Doubleword): Use
2946         LABEL and GOTO instead of the recently added switch statements.
2948 Wed Jul 24 14:02:42 1996  Andrew Cagney  <cagney@sawnoff.highland.com.au>
2950         * gen-idecode.c (print_run_until_stop_body): Too many rparen in
2951         generated code.
2953 Tue Jul 23 20:57:01 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
2955         * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
2956         * (--enable-sim-inline): Reorder patern matching of arguments so
2957         that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
2959         * configure: rebuild.
2961 Mon Jul 22 23:25:08 1996  Andrew Cagney  <cagney@highland.com.au>
2963         * configure.in (--enable-sim-hardware, --enable-sim-packages): New
2964         configuration options.  Let the user specify the packages or
2965         hardware devices that are to be included in the build.  Makes it
2966         possible for user packages to be specified.
2968         * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
2969         hardware instead of checking it using ls.  configure.in should
2970         have taken care of any problems.
2971         (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
2973 Mon Jul 22 22:38:59 1996  Andrew Cagney  <cagney@highland.com.au>
2975         * psim.c (psim_options): Enter the argument to the memory size
2976         option directly into the device tree.  Was using atol() which is
2977         dangerously non portable.
2979 Mon Jul 22 22:17:08 1996  Andrew Cagney  <cagney@highland.com.au>
2981         * configure.in (icache): Extend icache flag to include an insn
2982         option.  If specifyed the insn - aka instruction - is included in
2983         the instruction cache.  Make this the default.
2984         * configure: re-generate.
2986         * igen.c (main), igen.h: Add option -S - inSn - for specifying
2987         that the instruction should be included in the icache.
2989         * gen-icache.c (print_icache_body): If enabled, output code to put
2990         the instruction into the icache.
2991         (print_icache_struct): If enabled, add insn to the icache struct.
2993 Mon Jul 22 20:46:12 1996  Andrew Cagney  <cagney@highland.com.au>
2995         * Makefile.in (BUILD_CFLAGS): Include -g when building the
2996         generators.
2998 Mon Jul 22 20:00:25 1996  Andrew Cagney  <cagney@highland.com.au>
3000         * emul_generic.c (emul_add_tree_options): Was incorrectly setting
3001         the strict-alignment option when hardwired for non-strict
3002         alignment.
3004 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3006         * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
3008         * ppc-instructions: Adjust so that references are to MY_INDEX and
3009         not my_index.
3011 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3013         * gen-idecode.c: Output the complete run_until_stop function
3014         instead of just the code to handle a single instruction issue.
3015         * : Have the generated idecode.c include inline.c (instead of psim.c).
3017         * std-config.h: Change psim.c so that it isn't inlined (as this is
3018         no longer needed).
3020         * psim.c (run_until_stop): Delete the old run_until_stop function
3021         instead calling the idecode_run and idecode_run_until_stop
3022         functions that gen-idecode.c is now creating.
3024 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3026         * dgen.c: Maintenance - update to use new features found in lf.c.
3028         * filter_filename.c (filter_filename): Maintenance - make the
3029         string constant.
3031 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3033         * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
3034         eliminate trace statements.
3036         * debug.c: Change trace format so that it is consistent
3037         (file:line-nr) with CC's error output.
3039         * gen-itable.c (itable_c_insn): Add the source file name and
3040         source line number to the instruction's informational entry.
3042         * debug.c (ITRACE): Use the itable (and my_index) to get the
3043         current instructions name and source line number.
3045         * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
3046         match new interface.
3048         * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
3049         corresponding call to ITRACE so that it still matches.
3051         * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
3052         of ITRACE.  The CPP line directives would have previously set the
3053         line-nr and file name so ITRACE isn't needed.
3055 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3057         * gen-idecode.c (print_jump_until_stop_body): New function and
3058         idecode generation option.  Instead of generating and calling
3059         separate functions containing the semantic and icache code
3060         generate a single monolythic function and use goto's (and GCC's
3061         indirect jump) to move between code blocks.
3063         * Makefile.in: Add sim_jump flag to those passed to igen.
3065         * configure.in: New option --enable-sim-jump (default disabled)
3067         * ppc-instructions: Eliminate any uses of labels and goto's.
3068         These result in duplicate declarations when a single flat function
3069         is being create.
3071         * ppc-opcode-jump: New file.  Set of opcode rules useful when
3072         testing jumping idecodes.
3074 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3076         * gen-idecode.c: Optionally include the semantic code for an
3077         instruction in the function that is doing the decoding.
3079         * igen.c: Add option (-C) to generate semantics in the instruction
3080         decode functions.
3082         * configure.in (--enable-sim-icache): Accept an option list such
3083         as 1024,define.  Add a new choice to the list - semantic - which
3084         will cause igen to generate instruction decode functions that
3085         include the corresponding semantic code.
3087 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3089         * configure.in: New option --enable-sim-line-nr (default enabled).
3090         Enable/disable the inclusion of CPP line directives in the
3091         generated files.  Such directives refer back to the source files
3092         used when generating the simulator code.
3094         * Makefile.in (sim_line_nr): Pass to igen.
3096 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3098         * igen.c (main): Revamp the options so that more letters are
3099         available.
3101         * configure.in: Adjust to match igen's revamped options
3103 Sun Jul 21 21:18:05 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3105         * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
3106         that they use the same technique as igen (ie a dummy targets
3107         tmp-pk and tmp-hw are created).
3109 Mon Jun 24 22:28:00 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3111         * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
3113 Wed Jun 19 21:45:28 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3115         * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
3116         out the loading of each of the tables from the rest of igen.
3117         * Makefile.in: Adjust.
3118         * igen.c: Adjust.
3120         * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
3121         gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
3122         code creating each separate set of generated files.
3123         * Makefile.in: Adjust.
3124         * igen.c: Adjust.
3126         * gen-support.[ch]: New files. Output the support functions (found
3127         in the ppc-instructions file) into a separate file.
3128         * Makefile.in: Add.
3129         * inline.h, inline.c: Add.
3130         * std-config.h: Add.
3132         * ld-cache.c: Re-design the cache table format.
3133         * ppc-cache-rules: Update to new format.
3135         * ld-decode.c: Re-design the decode table format.
3136         * ppc-opcode-simple: Update to new format
3137         * ppc-opcode-complex: Ditto
3138         * ppc-opcode-flat: Ditto
3140         * filter.h, filter.c: New files. Separate the opcode filter table
3141         reading code from the rest of igen.c.  Re-design the filter so that
3142         it works inclusivly not exclusivly.
3143         * igen.c: Remove the opcode filter table loading code.
3144         * Makefile.in (filter.o): Adjust
3145         * configure.in: Adjust filter flag so that default includes 32bit
3146         and floating point.
3147         * ppc-instructions: Clean up filter fields so that only in use
3148         entries are specified (ie delete `be').
3150         * misc.c (name2i, i2name): New function.  Map between a string and
3151         an integer value.
3153 Mon Jun 17 20:08:03 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3155         * sim_calls.c (sim_close): If simulator not created, skip printing
3156         of run information.
3158 Mon Jun 17 20:08:03 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3160         * registers.c (register_description): Typo, insns not insn.
3162         * ppc-instructions (model_get_number_of_stalls): New model function,
3163         returns number of stalls for the specified processor.
3164         * psim.c (psim_read_register): Add call to new function
3165         model_get_number_of_stalls().
3167         * ppc-instructions (model_get_number_of_cycles): New model function,
3168         returns number of stalls for the specified processor.
3169         * psim.c (psim_read_register): Add call to new function
3170         model_get_number_of_cycles().
3172 Fri Jun 14 00:11:56 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3174         * device_table.h: Don't pass the parent device into a devices
3175         create function.  This makes the create function consistent with
3176         the documentation.
3177         * device.c (device_template_create_device): Ditto
3178         * hw_pal.c (hw_pal_create): Ditto
3179         * hw_core.c (hw_core_create): Ditto
3180         * hw_vm.c (hw_vm_create): Ditto
3181         * hw_disk.c (hw_disk_create): Ditto
3182         * hw_nvram.c (hw_nvram_create): Ditto
3183         * hw_memory.c (hw_memory_create): Ditto
3184         * hw_cpu.c (hw_cpu_create): Ditto.
3186         * device.c (split_find_device): Allow a null initial parent device.
3187         (device_template_create_device): Ditto.
3189         * device.c (device_create_from): Make local (static) only used
3190         within device.c.
3191         * device_table.h: typedef device_callbacks moved here (from
3192         device.h) where it belongs.
3194         * hw_core.c: New file. Implements just the core device using the
3195         core object.
3197         * corefile.c: Moved all core device functions into the new
3198         hw_core.c file. core_device_create() disapears.
3200         * psim.c (psim_tree): Use device_tree_add_parsed() to create the
3201         core device.
3203 Thu Jun 13 00:09:29 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3205         * hw_init.c: Correct typo in comment.
3207         * corefile.c (core_init): Remove any remaining references to a
3208         default map.
3209         (core_map_find_mapping): Ditto.
3211 Wed Jun 12 22:30:32 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3213         * corefile.c (core_init): Make function global so that other
3214         devices are able to use the full core object.
3216         * corefile.c (core_create, core_from_device): Break core_create
3217         into two functions.  The first creates a core object, the second
3218         returns the core object associated with a core device.
3220         * corefile.c (core_device_create): Use core_create to make the
3221         core object.
3223         * psim.c (psim_create): Use core_from_device() instead of
3224         core_create().
3226         * device.c (device_template_create_device): Make static as only
3227         needed by functions internal to device.c.
3229 Fri Jun  7 23:47:18 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3231         * ppc-opcode-test-2: Remove description of fields.
3232         * ppc-opcode-complex: Ditto
3233         * ppc-opcode-flat: Ditto
3234         * ppc-opcode-simple: Ditto
3235         * ppc-opcode-stupid: Ditto
3236         * ppc-opcode-test-1: Ditto
3237         * ppc-cache-rules: Ditto
3239         * igen.c: Add description of files as a comment at the front.
3241 Wed Jun 26 12:50:33 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3243         * configure.in: Check for whether the termios and termio
3244         structures are really defined, and whether or not, they define the
3245         c_line field.
3246         * configure: Regenerate.
3248         * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
3249         configure.
3251         * emul_unix.c: Various changes to allow for building on systems
3252         with different termio and termios structures.  If host has both
3253         termio and termios, just use termios.  No longer include
3254         sys/ioctl.h.
3256 Wed Jun 26 12:26:55 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
3258         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3259         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3260         (docdir): Removed.
3261         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3262         (AC_PROG_INSTALL): Added.
3263         * configure: Rebuilt.
3265 Wed Jun  5 23:53:42 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3267         * corefile.h: Rewrite documentation so that it can be extracted and
3268         converted into texinfo (and hence ready for translation into html,
3269         tex or nroff).
3270         * device.h: Ditto
3272 Thu Jun  6 09:52:37 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3274         * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
3276 Wed Jun  5 11:46:52 1996  Andrew Cagney  <cagney@puddin>
3278         * hw_disk.c: Include <unistd.h> if available.  Under SunOS, that
3279         is the source of SEEK_SET.
3281 Wed Jun  5 01:39:07 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3283         * psim.c (psim_options): Correct type of dummy arguments being
3284         passed to a device_ioctl call.
3286         * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
3287         (write_stack_arguments): Ditto.
3288         * hw_trace.c: Instance callback entry no longer a table.
3290 Wed Jun  5 01:39:07 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3292         * emul_unix.c (do_unix_umask): Cast printf argument.
3293         (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
3295 Mon Jun  3 15:02:04 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3297         * hw_init.c (update_for_binary_section): Abort if we find an
3298         .interp section, which indicates the need for shared libraries to
3299         be loaded.
3301 Mon Jun  3 15:02:04 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3303         * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
3304         for time, gettimeofday, and getrusage system calls.
3305         ({solaris,linux}_descriptors): Add new system calls.
3306         (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
3307         (do_get{,p}pid): Use pic_t types.
3309         * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
3310         (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
3311         * config{.in,ure}: Regenerate.
3313 Mon Jun  3 23:19:57 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3315         * emul_netbsd.c (emul_netbsd_create): Use the more specific names
3316         `ppc-elf' and `ppc-xcoff' for the stack-type.
3317         * emul_unix.c (emul_unix_create): Ditto.
3318         * emul_bugapi.c (emul_bugapi_create): Ditto.
3319         * hw_init.c: Reconize the new names.
3321         * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
3322         call is used (no system parameter).
3324 Sun Jun  2 11:21:17 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3326         * emul_unix.{h,c}: New files to provide Solaris and Linux system
3327         call emulations.
3329         * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
3330         (os_emul.o): Depend on emul_unix.h.
3331         (emul_unix.o): New dependency.
3333         * configure.in (--enable-sim-alignment): Add 0|default to mean set
3334         alignment to 0, which means use appropriate alignment for mode.
3335         (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
3336         (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
3337         * config.in: Regenerate.
3338         * configure: Regenerate.
3340         * emul_generic.c (emul_write2_status): New function to return
3341         results in r3 and r4 for Solaris system calls.
3342         (emul_do_system_call): If the system call is not support, but
3343         there is a string for the system call name, print out the string
3344         instead of the system call number.
3346         * emul_generic.h (emul_write2_status): Declare it.
3348         * emul_netbsd.c: Use /* */ around comment on #endif.
3350         * os_emul.c: Include emul_unix.h.
3351         (os_emulations): Add emulations for Solaris, and Linux.
3353         * psim.c (psim_usage): Add message about solaris, linux
3354         emulations.
3356 Thu May 30 00:00:10 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3358         * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
3360         * README: Correct PSIM's title
3362 Wed May 29 23:50:26 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3364         * basics.h: New global type object_disposition, used to indicate
3365         the status of objects when things are restarted.
3367 Fri May 17 17:28:52 1996  Andrew Cagney  <cagney@benjimen.highland.com.au>
3369         * device_table.h: Change the interrupt descriptor structure so
3370         that it includes an additional member - an upper bound on the
3371         interrupts by that name.
3373         * device.c (device_interrupt_decode): Allow a range of interrupt
3374         ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
3376         * device.c (device_tree_print_device): Include a list of valid
3377         interrupt ports when listing supported devices.
3379         * device.h, device.c (device_child_interrupt_*): Delete. Not used.
3381         * emul_generic.c (emul_add_tree_hardware): Modify the creation of
3382         the interrupt net so that it uses int0 .. intN.
3384 Tue May 14 23:03:53 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3386         * device.h, device.c (device_ioctl): Drop the system argument.
3387         Devices can not obtain this using the device_system() call.
3388         * device_table.h: Adjust accordingly.
3389         * hw_*.c: Adjust accordingly.
3390         * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
3391         * psim.c (psim_options): Use a device_ioctl call to force the
3392         hw_trace device to update the trace options.
3393         * hw_trace.c: Replace the init function with an ioctl call.  Adjust
3394         doc accordingly.
3396         * psim.c (psim_init): Re-order initialization so that the
3397         os-emulation is initialized after the device tree.  Without this,
3398         os-emul's are not able to create instances or access properties
3399         that contain an instance handle.
3401         * device.h, device.c (device_add_*_property): Make these functions
3402         internal to device.c.  The user has access to the more generic
3403         device_tree_add_parsed function.  Differentiate between the initial
3404         and current value for each property.
3405         * (clean_device_properties): New function that deletes any
3406         properties created after the start of a simulation and restores
3407         the initial value of any others (ignoring ihandles).
3408         * (init_device_properties): (Re)Initialize any properties that
3409         contain ihandles. create
3411         * (device_tree_init): Include calls to clean the device tree's
3412         properties and then initialize them.  Document this in the device.h
3413         file.
3415 Mon May  6 17:36:15 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3417         * interrupts.c (decrementer_interrupt): Always pend a decrementer
3418         interrupt even if it is not yet possible to deliver it.
3420 Wed May  1 12:26:51 1996  Andrew Cagney  <cagney@benjimen>
3422         * mon.h, mon.c (mon_get_number_of_insns): Make this externally
3423         visable adjusting the arguments so that the interface is correct.
3424         (mon_print_info): Adjust calls.
3426         * registers.h, registers.c (register_description): Add phony
3427         cycle, insn and stall registers.
3429         * psim.c (psim_read_register): Return nr of instructions for given
3430         processor.
3432 Tue Apr 30 22:09:09 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3434         * hw_htab.c: New file. Extract contents from disk_table.c.
3435         Contains a device that, during initialization will create a
3436         PowerPC htab in memory.
3437         * hw_register.c: New file. Extract contents from disk_table.c.
3438         Contains a device that, during initialization, will parse its
3439         property list and use that to initialize various processor
3440         registers (not target specific).
3441         * hw_vm.c: New file. Extract contents from disk_table.c.  Contains
3442         a device that handles accesses to invalid virtual memory addresses
3443         (in user mode).
3444         * hw_init.c: New file. Extract contents from disk_table.c.  Misc
3445         devices that can initialize memory from a file.
3446         * hw_trace.c: New file. Extract contents from disk_table.c.
3447         Configure trace options from property values.
3449         * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
3450         hw_trace.c): Add new device files.
3452         * device_table.c: Remove above code, now in separate independant
3453         files.
3455 Fri Apr 26 00:00:07 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3457         * hw_disk.c: New file.  Disk and CDROM device.
3459         * Makefile.in (hw_disk.o): Add device hw_disk.c.
3461         * pk_disklabel.c: New file.  Implement the miss-named disk-label
3462         package.
3464         * Makefile.in (pk.h): Create the file pk.h that contains a list of all
3465         the packages.
3467         * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
3468         they are re-created when the makefile is updated.
3470         * emul_generic.c (emul_add_tree_hardware): Add a disk device
3471         (below the iobus) to the device tree.  Include an ihandle of
3472         the disk as /chosen/disk.
3474         * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
3475         output and (new) disk handles yet.
3476         * (emul_bugapi_init): Initialize the input, output (and just added)
3477         disk ihandles here.
3478         * (emul_bugapi_do_diskio): New.  Performs disk i/o (well at least
3479         what I think the behavour is).
3480         * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
3481         i/o bug call.  For RETURN call, exit using gpr[3]'s status even
3482         though this isn't part of the spec - makes it possible for machine
3483         code to signal the aporting of a simulation run.
3485         * emul_chirp.c (chirp_emul_call_method): Add support for the
3486         claim/release methods.
3487         * (chirp_emul_exit): Add an optional exit status argument to
3488         the exit method.  Makes it possible for chirp emul simulations
3489         to abort upon an error.
3490         * device.h, device.c (device_instance_claim,
3491         device_instance_release): New methods for claiming and releasing
3492         memory.
3493         * hw_memory.c: add claim and release memory methods.
3494         * hw_*: Use the claim memory method when allocating physical
3495         memory.
3497 Thu Apr 18 23:38:10 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3499         * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
3500         time when updating the clock.
3502         * hw_nvram.c: Tidy up documentation
3504 Fri May 24 10:08:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3506         * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
3507         macros to determine whether or not the appropriate st_<xxx> fields
3508         exist in the stat structure.
3509         (AC_CHECK_FUNCS): Check for all unix system calls used, except for
3510         the real basic ones like open, read, write, etc.
3511         * config{.in,ure}: Regenerate.
3513         * emul_netbsd.c: Add support for missing system calls, and/or
3514         missing stat fields.
3515         (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
3516         might define it.
3518         * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
3519         are not defined.
3520         (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
3521         F_SETFL not defined.
3523 Tue May 21 17:24:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3525         * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
3526         host is netbsd.
3528 Thu May 16 10:56:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3530         * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
3531         * config{.in,ure}: Regenerate.
3532         * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
3533         sys/ioctl.h.
3535 Tue May  7 17:28:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3537         * hw_pal.c (hw_pal_instance_read_callback): Remove unused
3538         variable.
3540         * misc.c ({,target_}a2i): Rewrite to not use strtoul.
3542         * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
3543         ({i,d}gen): Don't link in liberity.  Use BUILD_LIBS instead of
3544         LIBS.
3546 Mon May  6 11:31:43 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3548         * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
3549         fgets to read line.  If not using stdio, do a simple blocking read
3550         of len bytes.
3552 Fri May  3 15:07:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3554         * Makefile.in: Correctly build simulator for build machine != host
3555         machine.
3557 Tue Apr 30 18:46:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3559         * configure.in (--enable-hostendian): Rework so the default uses
3560         the AC_C_BIGENDIAN results.  Only run AC_C_BIGENDIAN if not cross
3561         compiling.
3562         * configure: Regenerate.
3564         * sim-endian.h: Add more tests for host endian to support more
3565         platforms in a cross compilation environment.
3567 Wed Apr 17 14:38:06 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3569         * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
3570         use stdio, instead of unpended read/printf_filtered.
3571         (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
3572         flush stdout after writing the characters.
3574         * options.c (print_options): Print out WITH_STDIO.
3576         * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
3577         configuration variable.
3578         (CONFIG_CFLAGS): Include STDIO_CFLAGS.
3579         (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
3580         files to contain directory pieces.
3582         * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
3583         should use stdio for console input.
3584         (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
3586         * configure.in (--enable-sim-stdio): Add new switch to control
3587         whether stdio is used for console I/O.
3588         * configure: Regenerate.
3590         * interrupts.c (external_interrupt): Declare it to be
3591         INLINE_INTERRUPTS, not INLINE_CPU.
3593 Mon Apr 15 23:30:56 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3595         * events.c (insert_event_entry): Allow events to be scheduled
3596         *NOW* (at delta time 0).  Add assertions to clarify behavour of
3597         event queue.
3599         * events.c (update_time_from_event): New function. Calculates the
3600         number of ticks from the next event.  Use this.
3602 Sun Apr 14 21:39:45 1996  Andrew Cagney  <cagney@highland.com.au>
3604         * emul_netbsd.c (do_break): Return 0 if success (instead of
3605         adjusted break).
3607         * device_table.c (vm_ioctl_callback): Don't return adjusted break
3608         (isn't needed).
3610 Sun Apr 14 21:32:41 1996  Andrew Cagney  <cagney@highland.com.au>
3612         * device_table.h: Change type of the device ioctl so that it
3613         returns an int (status).
3614         * device.h (device_ioctl): Ditto.
3615         * device.c (device_ioctl): Ditto.
3617         * device_table.c (stack_ioctl_callback): Return 0 status.
3618         (vm_ioctl_callback): Ditto
3620 Sat Apr 13 00:00:24 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3622         * emul_netbsd.c (do_read): Correctly set the return value.
3623         (do_getpid): Ditto.
3624         (do_getuid): Ditto.
3625         (do_geteuid): Ditto.
3626         (do_dup): Ditto.
3627         (do_getegid): Ditto.
3628         (do_getgid): Ditto.
3629         (do_sigprocmask): Ditto.
3630         (do_umask): Ditto.
3631         (do_dup2): Ditto.
3632         (do_gettimeofday): Ditto.
3633         (do_getrusage): Ditto.
3634         (do_fstat): Ditto.
3635         (do_stat): Ditto.
3636         (do_lseek): Ditto.
3637         (do___sysctl): Ditto.
3639 Fri Apr 12 20:56:47 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3641         * device_table.c (vm_ioctl_callback): Don't access the processor
3642         registers directly, instead leave it to the caller to handle this.
3644         * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
3645         perform a break.  Pass in the new break value and set the
3646         registers according to the result.
3648         * emul_generic.c (emul_write_status): Change so that r3 contains
3649         either status or errno and failure is indicated by SO.
3651 Thu Apr  4 23:03:38 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3653         * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
3654         address.
3656 Thu Apr  4 20:58:05 1996  Andrew Cagney  <cagney@highland.com.au>
3658         * interrupts.h (interrupts): New structure contains state of
3659         pending interrupts.
3661         * cpu.c (cpu_interrupts): New function.  Pending interrupt status
3662         in the cpu and grant access to it.  Add interrupts to cpu
3663         structure.
3665 Fri Mar 29 22:09:25 1996  Andrew Cagney  <cagney@highland.com.au>
3667         * device.c (device_tree_add_parsed): Check that the creation of a
3668         device instance worked before using it.
3670         * psim.c (psim_halt): Remove cia argument from psim_halt.  This
3671         function does not save the CIA so do not pass it in.
3673 Fri Mar 29 21:30:56 1996  Andrew Cagney  <cagney@highland.com.au>
3675         * hw_pal.c (hw_pal): Merge the halt and icu and console devices
3676         found in device_table.c into a single hack pal.
3678         * device_table.c (halt, icu, console): Delete.
3680         * Makefile.in (hw_pal.o): New dependency.
3682         * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
3683         so that it uses the pal instead of the icu/halt/console devices.
3684         Wire the pal's interrupt ports up to the cpu nodes.
3686 Fri Mar 29 20:17:17 1996  Andrew Cagney  <cagney@highland.com.au>
3688         * hw_iobus.c (hw_iobus_attach_address_callback): Move from
3689         device_table.c to here.
3691         * Makefile.in (hw_iobus.o): New dependency.
3693 Fri Mar 29 12:17:58 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3695         * emul_bugapi.c (_os_emul_data): Add fields for output, input.
3696         (emul_bugapi_create): Create input, output from /chosen/stdin and
3697         /chosen/stdout.
3698         (emul_bugapi_do_{read,write}): Switch to use device_instance
3699         interface.
3700         (emul_bugapi_instruction_call): Change calls to
3701         emul_bugapi_do_{read,write} to pass device instance argument.
3703 Tue Mar 26 14:57:58 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3705         * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
3706         default is not written out if a default was already written.
3708         * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
3709         size cooked_buf, not sizeof natural_word, since floating point
3710         registers are 8 bytes.
3712 Mon Mar 25 22:07:13 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3714         * configure: Regenerate with autoconf 2.9.
3716 Thu Mar 21 00:14:26 1996  Andrew Cagney  <cagney@highland.com.au>
3718         * device_table.h: Always include string headers.
3720 Thu Mar 21 00:06:09 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3722         * main.c (error): Be careful to not try to print out statistics
3723         when the simulation was never created.
3725 Sun Mar 17 22:40:57 1996  Andrew Cagney  <cagney@highland.com.au>
3727         * basics.h: Move the event queue's definition to here so that it
3728         can be refered to globally with out importing all of events.h.
3730         * psim.h, psim.c (psim_event_queue): New function.  Grant access
3731         to the simulation event queue.  Will make this the single point of
3732         access (there is after all only one event queue in the
3733         simulation).
3735         * cpu.c (cpu_create): Use psim_event_queue to obtain the event
3736         queue instead of it being passed in.  No longer allow access to
3737         the cpu's copy of the event queue.
3739 Sun Mar 17 22:40:57 1996  Andrew Cagney  <cagney@highland.com.au>
3741         * events.h, events.c (event_handler): Remove event_queue from
3742         arguments passed to an event handler.  That argument is redundant
3743         - the `data' should refer to a data structure that contains the
3744         event queue if queing is needed.
3746         * cpu.c (cpu_decrement_event): adjust
3748         * events.c (event_queue_process): adjust
3750 Sun Mar 17 22:40:57 1996  Andrew Cagney  <cagney@highland.com.au>
3752         * device.h, device.c (device_system): New, returns a handle for
3753         the system given the device.
3755         * device.c (device_address_init): Store a pointer back to the
3756         system in each devices node.
3758         * device_table.h: Don't pass `system' into each device when it is
3759         being initialized, this is now available using device_system(me).
3761         * device.c (device_address_init, device_data_init): Adjust.
3763         * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
3764         Adjust.
3766 Sun Mar 17 22:40:57 1996  Andrew Cagney  <cagney@highland.com.au>
3768         * interrupts.c (decrementer_interrupt, external_interrupt):
3769         Remember that an interrupt wasn't delivered so that it can be
3770         tried again later.
3772         * interrupts.c (check_masked_interrupt): New function.  (re)
3773         checks for the posibility that a recent change to the MSR may have
3774         made it possible to deliver an interrupt that was previously
3775         masked be the EE bit.
3777         * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
3778         a pending interrupt being delivered using check_masked_interrupt().
3780         * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
3781         leaving it to that module to handle both interrupt synchronization
3782         and masking.
3784         * cpu.c (struct _cpu): remove variables that were going to record
3785         pending decrementer and external interrupts.
3787 Sun Mar 17 22:40:57 1996  Andrew Cagney  <cagney@highland.com.au>
3789         * hw_cpu.c, hw_cpu.h: New files.  Implement a device that sits
3790         between the interrupt controller and the simulators internal
3791         processor model.  Maps device interrupts onto the processor
3792         interrupt function calls.
3794 Mon Mar  4 06:06:54 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3796         * hw_nvram.c: NVRAM device that includes a real-time clock that is
3797         updated each second.
3799 Mon Mar  4 04:18:50 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3801         * device.h (attach_type): Remove attach_default type address
3802         spaces.  Will replace with levels of callback memory.
3804         * corefile.h, corefile.c (new_core_mapping), corefile.c
3805         (core_map_attach): Replace default attach with a layerd callback
3806         approach.
3808 Sun Mar  3 03:58:46 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3810         * device.c (split_property_specifier): ensure that only a single
3811         property is found.
3812         (split_value): New function, parses the value part of a device
3813         spec.
3815         * device.c (device_tree_add_parsed): Use the interrupt conversion
3816         functions to determine the interrupt port numbers.
3818         * device_table.h: Add table that maps between an interrupts
3819         symbolic name and its port number.
3821         * device.h, device.c (device_interrupt_decode,
3822         device_interrupt_encode): new functions use the recently added
3823         interrupt port name/number tables to perform conversion.
3825 Sun Mar  3 03:23:59 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3827         * device.h, device.c (device_set_array_property,
3828         device_set_boolean_property, device_set_ihandle_property,
3829         device_set_integer_property, device_set_string_property): New
3830         functions - allow the value of a given property to be changed.
3832         * device.h, device.c: Re-order declaration and definition of
3833         property functions.
3835 Sun Mar  3 03:10:22 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
3837         * device.c (device_tree_print_device, device_tree_add_parsed):
3838         Remove references to phandle properties.
3840 Wed Feb 28 00:43:07 1996  Andrew Cagney - aka Noid  <cagney@highland.com.au>
3842         * Makefile.in (corefile.o): missing dependency on device_table.h
3843         etc.
3845 Tue Feb 27 23:59:35 1996  Andrew Cagney - aka Noid  <cagney@highland.com.au>
3847         * device_table.h: Revamp device init callbacks so that they are a
3848         sub structure.
3849         * device.c (device_init_data, device_init_address): If an init
3850         callback is NULL assume it should do nothing.
3851         * device_table.c (ignore_device_init, unimp_device_init): delete
3852         as redundant.
3853         * device_table.c, hw_memory.c: adjust.
3855         * (io): ditto.
3856         * (dma): ditto.
3857         * (device_instance): ditto.
3858         * (ioctl): ditto.
3859         * (address nee config_address): ditto.
3860         * (interrupt): ditto.
3862 Mon Feb 26 21:11:20 1996  Andrew Cagney - aka Noid  <cagney@highland.com.au>
3864         * igen.c (idecode_switch_end): Output a default entry when the
3865         switch statement is perfect.  Firstly stops GCC complaining about
3866         an incomplete switch and secondly it will be eliminated by a good
3867         compiler any way.
3869 Mon Feb 26 22:47:15 1996  Andrew Cagney - aka Noid  <cagney@highland.com.au>
3871         * Makefile.in (hw.h, hw.c): New targets. Create from the list of
3872         hw_*.c files. hw.h declares a device descriptor table for each hw
3873         device while hw.c lists those tables in a form suitable for the
3874         construction of a top leveltable in device_table.c.
3876         * Makefile.in (device_table.o): now depends on hw.c a generated
3877         table of hw.
3879         * device_table.c (device_table): Re-arange the table of devices so
3880         that two levels are possible.  Make use of hw.c.
3881         * device_table.h: ditto.
3883         * device.c (device_template_create_device): Handle new two level
3884         device lookup table.
3885         * device.c (device_usage): ditto.
3887 Mon Feb 26 22:24:00 1996  Andrew Cagney - aka Noid  <cagney@highland.com.au>
3889         * device_table.c: Delete the memory device (moved to hw_memory.c).
3891         * hw_memory.c: New file.  Just an OpenBoot memory device.
3893 Wed Jan 17 21:47:34 1996  Andrew Cagney  <cagney@highland.com.au>
3895         * device.c (device_init_address): New.  Split initialization into
3896         two stages, address and address spaces
3897         * device.c (device_init_data): New. ... and data or other work.
3898         With out this, devices try to modify memory before it as been
3899         attached.
3901         * device.c (device_tree_init): Update to perform staged
3902         initialization.
3904         * device.c (device_init): Delete.
3906 Wed Jan 17 21:43:09 1996  Andrew Cagney  <cagney@highland.com.au>
3908         * device_table.c (data_*): Rewrite to make heaver use of property
3909         nodes. Allow initialization by different data types.
3910         * device_table.c (htab_* pte_*): Rewrite to use properties.
3912         * emul_chirp.c (emul_chirp_create): Use
3913         * emul_bugapi.c (emul_bugapi_create): Ditto
3914         * emul_netbsd.c (emul_netbsd_create): Ditto
3916 Wed Jan 17 21:24:50 1996  Andrew Cagney  <cagney@highland.com.au>
3918         * emul_generic.c (emul_add_tree_options): Annotate existing tree
3919         with options that haven't yet been specified.
3920         * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
3921         with demo devices and properties.
3923         * emul_chirp.c (emul_chirp_create): Update to use new
3924         device_tree_add_parsed call and additional information now
3925         included in the device tree.  Use emul_add_tree* functions to add
3926         any missing details.
3927         * emul_bugapi.c (emul_bugapi_create): Ditto
3928         * emul_netbsd.c (emul_netbsd_create): Ditto
3930 Wed Jan 17 21:18:27 1996  Andrew Cagney  <cagney@highland.com.au>
3932         * device.c (device_instance_create): New. Create/delete and
3933         operate on instances of a device.
3934         * device.c (device_instance_delete): Ditto
3935         * device.c (device_instance_read): Ditto
3936         * device.c (device_instance_write): Ditto
3937         * device.c (device_instance_seek): Ditto
3938         * device.c (device_instance_data): Ditto
3939         * device.c (device_instance_name): Ditto
3940         * device.c (device_instance_path): Ditto
3942         * emul_chirp.c (chirp_emul_open): Implement using device_instance.
3943         * emul_chirp.c (chirp_emul_close): Ditto
3944         * emul_chirp.c (chirp_emul_read): Ditto
3945         * emul_chirp.c (chirp_emul_write): Ditto
3946         * emul_chirp.c (chirp_emul_seek): Ditto
3948         * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
3949         Being careful to convert all from target to host byte order.
3950         * emul_chirp.c (chirp_write_h2t_args): Converse.
3952 Wed Jan 17 20:07:15 1996  Andrew Cagney  <cagney@highland.com.au>
3954         * device.c (device_tree_add_parsed): New.  Rewrite code to add
3955         devices to the device tree so that a single printf style function
3956         is used.
3958         * device.c (device_tree_add_*): Delete. Replaced by above.
3960         * device.c (split_device_specifier): Functions to manipulate a
3961         device specifier (path) breaking it into its components
3962         * device.c (split_property_specifier): Ditto
3963         * device.c (split_device_name): Ditto
3964         * device.c (split_find_device): Ditto
3966         * device.c (scan_*): Delete
3968         * device.c (device_tree_find_device): Rewrite to use above.
3969         * device.c (device_add_property): Ditto
3971 Wed Jan 17 19:51:56 1996  Andrew Cagney  <cagney@highland.com.au>
3973         * psim.c(psim_options): Parse the psim options, installing their
3974         value in the device tree.  Options are now first entered into a
3975         device tree and then extracted out again when needed.  This allows
3976         greater flexability in configuration.
3978         * psim.c (psim_tree): Returns a basic device tree ready for
3979         parsing by psim_options.
3980         * psim.c (psim_usage): New.  Give usage to varing levels of detail
3981         according to the verbosity.  In turn output device and trace
3982         usage.
3984         * main.c (main): Update to use new system
3985         * sim_calls.c (sim_open, sim_do_command): Ditto
3987         * psim.c (psim_options): Add `r' option - ram size.
3988         * psim.c (psim_options): Add `o' option - openboot tree entry.
3989         * psim.c (psim_options): Add `h'/`H' options - more help.
3991         * debug.c (trace_usage): Add more detailed help.
3992         * device.c (device_usage): New. Output help including a list of
3993         the devices currently available in the device table.
3994         * device_table.c: Add usage operator to each device.
3996         * corefile.c (core_create, core_device_create): Adjust so that the
3997         core device is created earlier for psim_tree().  Core can later be
3998         created from it.
4000         * psim.c (psim_create): Update to handle above way of creating
4001         things.  Extract all information from the device tree.
4003         * device_tree.c (trace_*): New device node, its properties are
4004         used to set the value of the trace options.  Init this device (in
4005         psim_options) when ever the options are updated.
4007 Wed Jan 17 19:46:07 1996  Andrew Cagney  <cagney@highland.com.au>
4009         * debug.h: Add trace_print_info, trace_print_device_tree and
4010         trace_dump_device_tree.  The first is a replacement for the
4011         variable `print_info' found in main.c and sim_calls.c.  The latter
4012         two enable the dumping of the entire device tree.
4014         * debug.c: Add to trace_description table.
4016         * main.c (main): Use above trace instead of local variable
4017         * sim_calls.c (sim_close): Ditto
4019         * device.c (device_tree_print_device): New.  Prints the device
4020         tree in a format that is consistent with what can be parsed by the
4021         device tree load from file code.
4023         * psim.c (psim_create): Dump device tree if enabled. If nump
4024         selected, exit psim immediately.
4026 Wed Jan 17 19:36:52 1996  Andrew Cagney  <cagney@highland.com.au>
4028         * corefile-n.h (core_map_read_N): When mapping from an address to
4029         a device, do not subtract the devices base.  The device its self
4030         can do this.  Brings the behavour into line with OpenBoot.
4031         * corefile-n.h (core_map_write_N): Ditto
4032         * corefile.c (core_map_read_buffer): Ditto
4033         * corefile.c (core_map_write_buffer): Ditto
4035         * device_table.c (console_io_read_buffer_callback): Adjust to
4036         handle biased address.
4037         * device_table.c (console_io_write_buffer_callback): Ditto
4039 Wed Jan 17 18:36:09 1996  Andrew Cagney  <cagney@highland.com.au>
4041         * device.c (attach_device_interrupt_edge): New. Interrupt model
4042         did not allow interrupts to be wired up as a general net (edges).
4043         Re-implement so that interrupt events can be passed to multiple
4044         controllers and interrupt controllers can further propogate
4045         interrupt events.
4047         * device.c (attach_device_interrupt_edge) : New, Ditto
4048         * device.c (detach_device_interrupt_edge) : New, Ditto
4049         * device.c (clean_device_interrupt_edges) : New, Ditto
4050         * device.c (device_interrupt_event) : New, Ditto
4051         * device.c (device_interrupt_attach) : New, Ditto
4052         * device.c (device_interrupt_detach) : New, Ditto
4053         * device.c (device_child_interrupt_attach) : New, Ditto
4054         * device.c (device_child_interrupt_detach) : New, Ditto
4056         * device.c (device_attach_interrupt) : Delete old
4057         * device.c (device_detach_interrupt) : Delete old
4058         * device.c (device_interrupt) : Delete old
4059         * device.c (device_interrupt_ack) : Delete old
4061         * device_table.c (unimp_*) : Update to match
4063         * device_table.c (icu_io_write_buffer_callback) : Update to use
4064         interface.
4065         * device_table.c (icu_interrupt_event_callback) : Ditto
4067 Wed Jan 17 18:18:40 1996  Andrew Cagney  <cagney@highland.com.au>
4069         * device.c (external_to_device) : New function that provides a
4070         standard mapping between a devices internal representation (a
4071         pointer) and its external (or what is passed to a client)
4072         representation (a phandle).  Implement using the cap object
4073         attached to the root node.
4075         * device.c (device_to_external) : Ditto
4076         * device.c (external_to_device_instance) : Ditto but for ihandle
4077         and device instance.
4078         * device.c (device_instance_to_external) : Ditto
4080         * Makefile (device.o): Add dependency on cap.
4082         * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
4083         needing to translate between internal and external representations
4084         changed to use the external_to_device et.al. device operations.
4085         * emul_chirp.c (chirp_emul_*) : Ditto
4087         * Makefile (emul_chirp.o): Remove dependency on cap
4089 Sat Jan  6 10:13:26 1996  Andrew Cagney - aka Noid  <cagney@highland.com.au>
4091         * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
4092         on OpenBoot note section.
4094 Fri Jan  5 20:28:53 1996  Andrew Cagney  <cagney@hignland.com.au>
4096         * emul_generic.c (emul_write_buffer): Use vm faulting byte
4097         read/write calls for buffer transfers.  This will cause a fault to
4098         occure if the transfer fails.  CHRP catches the fault while the
4099         others suffer the consequences.
4100         (emul_read_buffer): Ditto.
4101         (emul_write_word): Ditto.
4102         (emul_read_word): Ditto.
4103         (emul_read_string): Ditto.
4105 Fri Jan  5 18:55:34 1996  Andrew Cagney  <cagney@highland.com.au>
4107         * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
4108         emul_generic (emul_blr_instruction): Use a real blr instruction to
4109         return from a client service call.
4111         * emul_chirp.c (services): Add all OpenBoot services to table.
4113         * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
4114         (emul_chirp_create) : Use names instead of numbers for
4115         instructions being stored in memory.
4117 Fri Jan  5 18:52:28 1996  Andrew Cagney  <cagney@highland.com.au>
4119         * Makefile.in (maintainer-clean): Remove .log, core and *.core
4120         (From NetBSD) files.
4122 Wed May 29 22:57:40 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>
4124         * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
4125         ChangeLog.00