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