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