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