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