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