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