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