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