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