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