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