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