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