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