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