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