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