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