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