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