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