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