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