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