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