1 2021-06-17 Mike Frysinger <vapier@gentoo.org>
3 * cgen-trace.c: Include sim/callback.h.
4 * nrun.c, sim-hw.c, sim-io.c, sim-syscall.c, sim-trace.c: Likewise.
5 * sim-basics.h: Delete sim/callback.h include.
6 * sim-endian.h: Include bfd.h.
7 * sim-syscall.h (struct cb_syscall): New forward decl.
8 * sim-utils.h (sim_analyze_program): Likewise.
10 2021-06-16 Mike Frysinger <vapier@gentoo.org>
12 * Make-common.in (CONFIG_CFLAGS): Change @DEFS@ to -DHAVE_CONFIG_H.
13 (generated_files): Delete config.h.
14 (distclean): Likewise.
15 (config.h, stamp-h): Delete rules.
16 * defs.h [SIM_COMMON_BUILD]: Delete config.h include and PACKAGE*
19 2021-06-15 Mike Frysinger <vapier@gentoo.org>
21 * Make-common.in: Add stamp-modules rule to avoid rebuilds.
22 (clean): Delete modules.c files.
23 * local.mk: Add version.c-stamp rule to avoid rebuilds.
24 (CLEANFILES): Add version.c files.
26 2021-06-14 Mike Frysinger <vapier@gentoo.org>
28 * local.mk (%D%/version.c): Use AM_V_GEN & AM_V_at wrappers.
30 2021-06-14 Mike Frysinger <vapier@gentoo.org>
32 * Make-common.in (GNULIB_BUILDDIR): Rename to ...
33 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
35 2021-06-12 Mike Frysinger <vapier@gentoo.org>
37 * Make-common.in (COMMON_OBJS_NAMES): Add portability.o.
38 * local.mk (%C%_libcommon_a_SOURCES): Add %D%/portability.c.
39 * portability.c, portability.h: New files.
41 2021-06-12 Mike Frysinger <vapier@gentoo.org>
43 * Make-common.in (SIM_NEW_COMMON_OBJS): Move sim-load.o to ...
44 (COMMON_OBJS_NAMES): ... here. Rename var from COMMON_OBJS.
45 (COMMON_OBJS): Redefine.
46 * defs.h [SIM_COMMON_BUILD]: Do not include ../config.h.
47 * local.mk (%C%_libcommon_a_CPPFLAGS): New variable.
48 (%C%_libcommon_a_SOURCES): Add %D%/sim-load.c.
50 2021-06-12 Mike Frysinger <vapier@gentoo.org>
52 * dv-sockser.c: Include sys/select.h.
54 2021-06-12 Mike Frysinger <vapier@gentoo.org>
56 * Make-common.in: Delete SIM_ALIGNMENT.
57 * sim-config.c (sim_config): Change WITH_DEFAULT_ALIGNMENT to
59 (sim_config_print): Delete WITH_DEFAULT_ALIGNMENT logic.
60 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Delete.
62 2021-06-12 Mike Frysinger <vapier@gentoo.org>
64 * defs.h: Include ../config.h. Undefine PACKAGE* defines.
66 2021-06-09 Mike Frysinger <vapier@gentoo.org>
68 * sim-basics.h (NULL): Delete.
70 2021-06-09 Mike Frysinger <vapier@gentoo.org>
72 * nrun.c (main): Set default_callback.target_endian to
73 current_target_byte_order when it's BFD_ENDIAN_UNKNOWN.
75 2021-06-09 Mike Frysinger <vapier@gentoo.org>
77 * cgen-defs.h (STATE_RUN_FAST_P, CGEN_STATE, cgen_init): Delete.
78 * cgen-run.c (cgen_get_fast_p): New function.
79 (sim_resume): Move fast_p up and call cgen_get_fast_p.
80 * cgen-utils.c (cgen_init): Delete.
81 * sim-base.h: Delete cgen-sim.h include.
82 (struct sim_state): Delete cgen_state and STATE_CGEN_STATE.
84 2021-06-08 Mike Frysinger <vapier@gentoo.org>
86 * Make-common.in (IGEN_RUN): New variable.
87 (IGEN): Remove ASAN_OPTIONS.
89 2021-06-05 Mike Frysinger <vapier@gentoo.org>
91 * Make-common.in (COMMON_OBJS): Define.
92 (LIB_OBJS): Replace version.o with $(COMMON_OBJS).
93 (version.c): Delete target.
94 (generated_files): Delete version.c.
97 2021-05-29 Mike Frysinger <vapier@gentoo.org>
99 * Make-common.in (EXTRA_LIBS): Add $(LIBGNU_EXTRA_LIBS).
101 2021-05-29 Mike Frysinger <vapier@gentoo.org>
103 * Make-common.in (GNULIB_BUILDDIR): Define.
104 Include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc.
105 (CSEARCH): Add -I../...
106 (ALL_CFLAGS): Add $(INCGNU).
107 (EXTRA_LIBS): Add $(LIBGNU).
108 * defs.h: Include gnulib/config.h. Undefine PACKAGE* defines.
110 2021-05-17 Mike Frysinger <vapier@gentoo.org>
112 * sim-base.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
113 (struct sim_state_base): Merge into ...
114 (struct sim_state): ... this.
115 (STATE_MY_NAME): Delete base.
116 (STATE_OPEN_KIND): Likewise.
117 (STATE_CALLBACK): Likewise.
118 (STATE_ENVIRONMENT): Likewise.
119 (STATE_CONFIG): Likewise.
120 (STATE_MODULES): Likewise.
121 (STATE_OPTIONS): Likewise.
122 (STATE_VERBOSE_P): Likewise.
123 (STATE_TRACE_DATA): Likewise.
124 (STATE_ARCHITECTURE): Likewise.
125 (STATE_TARGET): Likewise.
126 (STATE_PROG_ARGV): Likewise.
127 (STATE_PROG_BFD): Likewise.
128 (STATE_PROG_SYMS): Likewise.
129 (STATE_PROG_SYMS_COUNT): Likewise.
130 (STATE_TEXT_SECTION): Likewise.
131 (STATE_TEXT_START): Likewise.
132 (STATE_TEXT_END): Likewise.
133 (STATE_START_ADDR): Likewise.
134 (STATE_SCACHE_SIZE): Likewise.
135 (STATE_CORE): Likewise.
136 (STATE_MEMOPT): Likewise.
137 (STATE_EVENTS): Likewise.
138 (STATE_ENGINE): Likewise.
139 (STATE_WATCHPOINTS): Likewise.
140 (STATE_HW): Likewise.
141 (STATE_LOAD_AT_LMA_P): Likewise.
142 (SIM_MAGIC_NUMBER): Likewise.
143 (STATE_MAGIC): Likewise.
144 * sim-utils.c (sim_state_alloc_extra): Delete check for
145 SIM_HAVE_COMMON_SIM_STATE.
147 2021-05-17 Mike Frysinger <vapier@gentoo.org>
149 * cgen-defs.h (STATE_RUN_FAST_P): Call STATE_CGEN_STATE.
150 * sim-base.h [CGEN_ARCH]: Include cgen-sim.h and define
151 SIM_HAVE_COMMON_SIM_STATE.
152 (struct sim_state): Add cgen_state.
153 (STATE_CGEN_STATE): Define.
155 2021-05-17 Mike Frysinger <vapier@gentoo.org>
157 * sim-base.h (struct sim_state): Update comment.
158 (struct sim_state): Define.
159 (STATE_ARCH_DATA): Likewise.
160 (sim_state_alloc): New define.
161 (sim_state_alloc_extra): Renamed & add 3rd arg.
162 * sim-utils.c (sim_state_alloc): Likewise.
163 (sim_state_alloc_extra): Set arch data.
165 2021-05-16 Mike Frysinger <vapier@gentoo.org>
167 * callback.c: Replace config.h include with defs.h.
168 * cgen-accfp.c, cgen-fpu.c, cgen-par.c, cgen-run.c, cgen-scache.c,
169 dv-core.c, dv-glue.c, genmloop.sh, hw-alloc.c, hw-base.c, hw-device.c,
170 hw-events.c, hw-handles.c, hw-instances.c, hw-ports.c,
171 hw-properties.c, hw-tree.c, sim-abort.c, sim-arange.c, sim-bits.c,
172 sim-close.c, sim-command.c, sim-config.c, sim-core.c, sim-cpu.c,
173 sim-endian.c, sim-engine.c, sim-events.c, sim-fpu.c, sim-hload.c,
174 sim-hrw.c, sim-hw.c, sim-info.c, sim-inline.c, sim-model.c,
175 sim-profile.c, sim-reason.c, sim-reg.c, sim-resume.c, sim-run.c,
176 sim-signal.c, sim-stop.c, sim-trace.c, sim-utils.c: Include defs.h.
177 * cgen-trace.c, cgen-utils.c, dv-cfi.c, dv-pal.c, dv-sockser.c,
178 nrun.c, sim-basics.h, sim-load.c, sim-memopt.c, sim-module.c,
179 sim-options.c, sim-syscall.c, sim-watch.c, syscall.c: Replace
180 config.h include with defs.h.
181 * gentmap.c (gen_targ_map_c): Replace config.h with defs.h.
182 * sim-io.c: Include defs.h.
186 2021-05-15 Mike Frysinger <vapier@gentoo.org>
188 * nrun.c: Include environ.h.
189 (environ): Delete prototype.
190 (main): Delete HAVE_ENVIRON check.
192 2021-05-14 Mike Frysinger <vapier@gentoo.org>
194 * callback.c (os_lseek): Change return and 3rd arg to int64_t.
195 (os_ftruncate): Change 3rd arg to int64_t.
196 (os_truncate): Change 3rd arg to int64_t.
197 * sim-io.c (sim_io_lseek): Change return and 3rd arg to int64_t.
198 * sim-io.h (sim_io_lseek): Likewise.
200 2021-05-14 Mike Frysinger <vapier@gentoo.org>
202 * callback.c (os_time): Change return to int64_t. Delete 2nd arg.
203 (os_fstat): Delete 2nd arg to time callback.
204 * sim-io.c (sim_io_time): Change return to int64_t. Delete 2nd arg
206 * sim-io.h (sim_io_time): Change return to int64_t.
207 * syscall.c (cb_syscall): Delete 2nd arg to time callback.
209 2021-05-14 Mike Frysinger <vapier@gentoo.org>
211 * callback.c (cb_host_to_target_stat): Change PTR to void*.
212 * sim-syscall.c (sim_syscall_multi): Delete (PTR) casts.
214 2021-05-14 Mike Frysinger <vapier@gentoo.org>
216 * Make-common.in (callback_h, remote_sim_h): Update path.
217 * callback.c: Update include path.
218 * gentmap.c (gen_targ_map_c): Likewise.
219 * sim-basics.h: Likewise.
220 * sim-close.c: Likewise.
221 * sim-core.c: Likewise.
222 * sim-load.c: Likewise.
223 * sim-module.h: Likewise.
224 * syscall.c: Likewise.
226 2021-05-08 Mike Frysinger <vapier@gentoo.org>
228 * Make-common.in (modules.c): Touch $@ at the end.
230 2021-05-08 Mike Frysinger <vapier@gentoo.org>
232 * cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
234 2021-05-08 Mike Frysinger <vapier@gentoo.org>
236 * cgen-types.h (mode_names): Rename to ...
237 (cgen_mode_names): ... this.
238 (MODE_NAME): Use cgen_mode_names.
239 * cgen-utils.c (mode_names): Rename to ...
240 (cgen_mode_names): ... this.
242 2021-05-08 Mike Frysinger <vapier@gentoo.org>
244 * cgen-ops.h (cgen_rtx_error): Declare.
245 * cgen-utils.c (cgen_rtx_error): Add %s printf argument.
247 2021-05-08 Mike Frysinger <vapier@gentoo.org>
249 * cgen-utils.c (virtual_insn_entries): Change {0} to {}.
251 2021-05-08 Mike Frysinger <vapier@gentoo.org>
253 * Make-common.in (html, clean-html, install-html, pdf, clean-pdf,
254 install-pdf): New rules.
256 2021-05-08 Tom Tromey <tom@tromey.com>
258 * sim-options.c (compare_strings): Remove.
259 (dup_arg_p): Use htab_eq_string.
261 2021-05-04 Mike Frysinger <vapier@gentoo.org>
263 * sim-hw.c (sim_hw_install): Rename to ...
264 (sim_install_hw): ... this. New prototype.
265 * sim-hw.h (sim_hw_install): Delete.
266 * sim-module.c: Delete sim-hw.h include.
267 (early_modules): Delete sim_hw_install.
269 2021-05-04 Tom Tromey <tromey@adacore.com>
271 * Make-common.in (generated_files): Add config.h.
273 2021-05-04 Mike Frysinger <vapier@gentoo.org>
275 * cgen-trace.c (sim_disasm_perror_memory): Use BFD_VMA_FMT and drop
277 * sim-load.c (xprintf_bfd_vma): Delete.
278 (sim_load_file): Delete xprintf_bfd_vma calls. Use BFD_VMA_FMT.
280 2021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
282 * hw-events.h (hw_event_queue_schedule_tracef): Use format attribute.
283 (hw_event_queue_schedule_vtracef): Likewise.
284 * hw-tree.h (hw_tree_vparse): Likewise.
285 * sim-profile.c (profile_vprintf): Likewise.
286 * sim-trace.c (dis_printf): Likewise.
287 * sim-trace.h (trace_printf): Likewise.
288 (trace_vprintf): Likewise.
289 * sim-utils.h (sim_do_commandf): Likewise.
290 * hw-events.c (hw_event_queue_schedule): Use
291 hw_event_queue_schedule_tracef.
293 2021-05-02 Simon Marchi <simon.marchi@polymtl.ca>
295 * sim-options.c (standard_option_handler): Add default cases to
298 2021-05-02 Mike Frysinger <vapier@gentoo.org>
300 * callback.c (os_error): Change __attribute__((noreturn)) to
302 * hw-device.h (hw_abort, hw_vabort, hw_halthw_trace): Change
303 attributes to ATTRIBUTE_PRINTF and ATTRIBUTE_NORETURN.
304 * hw-events.h (hw_event_queue_schedule_tracef): Likewise.
305 * hw-tree.h (hw_tree_delete): Likewise.
306 * sim-basics.h (__attribute__): Delete.
307 * sim-engine.h (sim_engine_halt): Change __attribute__((noreturn))
308 to ATTRIBUTE_NORETURN.
309 (sim_engine_abort, sim_engine_vabort): Likewise.
310 * sim-hw.h (sim_hw_install, sim_hw_abort): Change
311 __attribute__((printf)) to ATTRIBUTE_PRINTF.
312 * sim-inline.h (NORETURN): Delete.
313 (UNUSED): Change to ATTRIBUTE_UNUSED.
314 * sim-io.h (sim_io_printf): Change attributes to ATTRIBUTE_PRINTF
315 and ATTRIBUTE_NORETURN.
316 (sim_io_eprintf, sim_io_error): Likewise.
317 * sim-profile.c (profile_printf): Likewise.
318 * sim-trace.h (trace_prefix, trace_generic, trace_printf,
319 sim_debug_printf): Likewise.
321 2021-05-01 Mike Frysinger <vapier@gentoo.org>
323 * sim-options.c (dup_arg_p): Call htab_empty.
325 2021-05-01 Mike Frysinger <vapier@gentoo.org>
327 * dv-sockser.c (dv_sockser_install): Rename to ...
328 (sim_install_dv_sockser): ... this.
329 * dv-sockser.h (dv_sockser_install): Delete.
330 * sim-module.c: Delete dv-sockser.h include.
331 (early_modules): Delete dv_sockser_install.
333 2021-05-01 Mike Frysinger <vapier@gentoo.org>
335 * Make-common.in (LIB_OBJS): Add modules.o.
336 (generated_files): Add modules.c.
337 (modules.c): New target.
338 * sim-module.c (modules): Rename to ...
339 (early_modules): ... this. Delete 0 sentinel.
340 (early_modules_len): Define.
341 (sim_modules_detected, sim_modules_detected_len): Declare.
342 (sim_pre_argv_init): Call sim_module_install_list.
343 (sim_module_install): New function.
344 (sim_module_install_list): New function.
345 * sim-module.h (sim_module_install_list): Declare.
347 2021-05-01 Mike Frysinger <vapier@gentoo.org>
349 * nrun.c (strsignal): New prototype.
351 2021-05-01 Mike Frysinger <vapier@gentoo.org>
353 * callback.c (wrap): Delete.
354 (os_close): Replace wrap call with direct call & setting last_errno.
355 (os_isatty, os_lseek, os_read_stdin, os_write, os_rename, os_system,
356 os_time, os_unlink, os_stat, os_fstat, os_lstat): Likewise.
358 2021-04-26 Mike Frysinger <vapier@gentoo.org>
360 * gennltvals.py (TARGETS): Delete. Update comment.
361 (gentvals): Unify common code paths.
362 (gen_targets): Change TARGETS to TARGETS_DIRS. Call gentvals without
364 * nltvals.def: Regenerate.
366 2021-04-25 Tom Tromey <tom@tromey.com>
368 * sim-options.c (compare_strings): New function.
369 (ARG_HASH_SIZE, ARG_HASH): Remove.
370 (dup_arg_p): Use htab_t.
371 (sim_parse_args): Remove assert.
373 2021-04-24 Mike Frysinger <vapier@gentoo.org>
375 * dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC.
377 2021-04-24 Mike Frysinger <vapier@gentoo.org>
379 * sim-options.c (ARG_HASH_SIZE): Increase to 256.
380 (sim_parse_args): Call SIM_ASSERT.
382 2021-04-22 Tom Tromey <tom@tromey.com>
384 * sim-utils.c: Update includes.
386 2021-04-22 Tom Tromey <tom@tromey.com>
388 * Make-common.in: Require GNU make.
390 2021-04-22 Tom Tromey <tom@tromey.com>
392 * Make-common.in (stamp-hw): New target.
393 (hw-config.h): Depend on stamp-hw.
394 (mostlyclean): Remove stamp-hw and hw-config.h.
396 2021-04-22 Tom Tromey <tom@tromey.com>
398 * Make-common.in (mostlyclean): Now an alias for clean, not
401 2021-04-22 Tom Tromey <tom@tromey.com>
403 * sim-events.c (sim_events_schedule): Use
404 sim_events_schedule_tracef.
406 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
408 * callback.c (os_printf_filtered, os_vprintf_filtered,
409 os_evprintf_filtered, os_error): Use ATTRIBUTE_PRINTF.
410 * sim-engine.h (sim_engine_abort, sim_engine_vabort): Likewise.
411 * sim-events.h (sim_events_schedule_tracef,
412 sim_events_schedule_vtracef): Use ATTRIBUTE_NULL_PRINTF.
414 2021-04-18 Mike Frysinger <vapier@gentoo.org>
416 * gennltvals.py (TARGETS): Add moxie.
417 * nltvals.def: Regenerate.
419 2021-04-18 Mike Frysinger <vapier@gentoo.org>
421 * gennltvals.py (TARGET_DIRS, TARGETS): Add sh.
422 * nltvals.def: Regenerate.
424 2021-04-18 Mike Frysinger <vapier@gentoo.org>
426 * gennltvals.py (TARGETS): Add rx.
427 * nltvals.def: Regenerate.
429 2021-04-18 Mike Frysinger <vapier@gentoo.org>
431 * gennltvals.py (TARGETS): Add m32c.
432 * nltvals.def: Regenerate.
434 2021-04-18 Mike Frysinger <vapier@gentoo.org>
436 * gennltvals.py (TARGETS): Add iq2000.
437 * nltvals.def: Regenerate.
439 2021-04-18 Mike Frysinger <vapier@gentoo.org>
441 * syscall.c (cb_syscall): Implement CB_SYS_getpid.
443 2021-04-15 John Baldwin <jhb@FreeBSD.org>
445 * Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS.
446 (ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after
449 2021-04-12 Mike Frysinger <vapier@gentoo.org>
451 * sim-cpu.c (sim_cpu_alloc_all): Delete 3rd arg. Delete 2nd arg to
453 (sim_cpu_alloc): Move extra_bytes to local var. Add result of
454 cgen_cpu_max_extra_bytes.
455 * sim-cpu.h (sim_cpu_alloc_all): Delete 3rd arg.
456 (sim_cpu_alloc): Delete 2nd arg.
458 2021-04-08 Tom Tromey <tom@tromey.com>
460 * cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use
461 new-style declaration.
463 2021-04-03 Mike Frysinger <vapier@gentoo.org>
465 * Make-common.in (install-common): Install as run-$arch and
466 libsim-$arch.a when not the primary arch.
468 2021-04-02 Mike Frysinger <vapier@gentoo.org>
470 * Make-common.in (CFLAGS_FOR_BUILD): Define.
471 (BUILD_CFLAGS): Replace -g -O with $(CFLAGS_FOR_BUILD).
473 2021-03-13 Mike Frysinger <vapier@gentoo.org>
475 * Make-common.in (LINK_FOR_BUILD): Change BUILD_LDFLAGS to
478 2021-03-13 Mike Frysinger <vapier@gentoo.org>
480 * Make-common.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
481 (gentmap.o): New rule.
482 (gentmap): Call LINK_FOR_BUILD.
484 2021-03-07 Mike Frysinger <vapier@gentoo.org>
486 * Make-common.in (check): Delete body.
488 2021-02-28 Mike Frysinger <vapier@gentoo.org>
490 * Make-common.in (SIM_EXTRA_LIBDEPS): Delete.
491 (LIBDEPS): Delete $(SIM_EXTRA_LIBDEPS).
493 2021-02-27 Mike Frysinger <vapier@gentoo.org>
495 * Make-common.in (SIM_EXTRA_ALL): Delete.
496 (all): Delete $(SIM_EXTRA_ALL).
498 2021-02-21 Mike Frysinger <vapier@gentoo.org>
500 * acinclude.m4: Removed.
502 2021-02-13 Mike Frysinger <vapier@gentoo.org>
504 * acinclude.m4: Delete all sinclude & m4_include calls.
506 2021-02-13 Mike Frysinger <vapier@gentoo.org>
508 * aclocal.m4: Delete.
510 2021-02-06 Mike Frysinger <vapier@gentoo.org>
512 * sim-events.c: Include sim-cpu.h.
513 (sim_event_watchpoints): Define watch_pc.
514 (sim_events_watch_pc): New function.
515 (WATCH_SIM): Handle watch_pc.
516 * sim-events.h (sim_events_watch_pc): New prototype.
517 * sim-watch.c (schedule_watchpoint): Replace sim_events_watch_sim with
519 * sim-watch.h (sim_watchpoints): Delete pc.
521 2021-02-06 Mike Frysinger <vapier@gentoo.org>
523 * acinclude.m4 (SIM_AC_COMMON): Replace AC_CONFIG_HEADER with
526 2021-02-06 Mike Frysinger <vapier@gentoo.org>
528 * Make-common.in (HDEFINES, TDEFINES): Delete.
529 (CONFIG_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
530 * acinclude.m4 (SIM_AC_COMMON): Delete AC_SUBST(HDEFINES) and
531 bfd/configure.host sourcing.
533 2021-02-04 Mike Frysinger <vapier@gentoo.org>
535 * gennltvals.py (TARGETS): Add riscv.
536 (TARGET_DIRS): Likewise.
537 * nltvals.def: Regenerate from the latest libgloss sources.
539 2021-01-31 Mike Frysinger <vapier@gentoo.org>
541 * cgen-trace.c (cgen_trace_insn): Add "%s" argument.
543 2021-01-31 Stafford Horne <shorne@gmail.com>
545 * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.
546 (fixdfsi): Change res from unsigned32 to signed32.
547 (fixdfdi): Change res from unsigned64 to signed64.
549 2021-01-30 Mike Frysinger <vapier@gentoo.org>
551 * gennltvals.sh: Replace shell script with ...
552 * gennltvals.py: ... this Python script.
553 * nltvals.def: Regenerate.
555 2021-01-30 Mike Frysinger <vapier@gentoo.org>
557 * sim-watch.c (schedule_watchpoint): Change sizeof_pc to sizeof
559 * sim-watch.h (struct _sim_watchpoints): Delete sizeof_pc.
561 2021-01-30 Mike Frysinger <vapier@gentoo.org>
563 * sim-profile.c (profile_pc_init): Change 1 in shifts to 1ULL.
565 2021-01-30 Mike Frysinger <vapier@gentoo.org>
567 * sim-hw.c (merge_device_file): Replace fgets with getline.
569 2021-01-30 Mike Frysinger <vapier@gentoo.org>
571 * gennltvals.sh (gen_arches): Sort calls by first arg.
572 * nltvals.def: Regenerate.
574 2021-01-18 Mike Frysinger <vapier@gentoo.org>
576 * Make-common.in (version.c): Simplifiy args and call move-if-change.
577 * create-version.sh: Delete host & target alias logic. Write to the
580 2021-01-18 Mike Frysinger <vapier@gentoo.org>
582 * configure, configure.ac, Makefile.in: Delete.
584 2021-01-13 Mike Frysinger <vapier@gentoo.org>
586 * sim-watch.c (default_interrupt_handler): Define.
587 (sim_watchpoint_install): Set default interrupt_handler to new
588 default_interrupt_handler.
590 2021-01-13 Mike Frysinger <vapier@gentoo.org>
592 * sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1.
594 2021-01-13 Mike Frysinger <vapier@gentoo.org>
596 * sim-events.c (sim_events_watch_sim): Change byte_order type to
598 (sim_events_watch_core): Likewise.
599 * sim-events.h (sim_events_watch_sim, sim_events_watch_core): Likewise.
600 * sim-watch.c (schedule_watchpoint): Change 0 to HOST_BYTE_ORDER in
601 call to sim_events_watch_sim.
603 2021-01-12 Mike Frysinger <vapier@gentoo.org>
605 * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
607 2021-01-11 Mike Frysinger <vapier@gentoo.org>
609 * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
611 2021-01-11 Mike Frysinger <vapier@gentoo.org>
613 * sim-core.c (sim_memory_map): Change %#x to PRIxTW.
615 2021-01-11 Mike Frysinger <vapier@gentoo.org>
617 * acinclude.m4 (SIM_AC_COMMON): Delete checks for stdlib.h, string.h,
618 strings.h, time.h, and errno.h.
619 * callback.c, cgen-scache.c, dv-glue.c, dv-pal.c, dv-sockser.c,
620 hw-alloc.c, hw-base.c, hw-device.c, hw-events.c, hw-handles.c,
621 hw-ports.c, hw-properties.c, hw-tree.c, nrun.c, sim-arange.c,
622 sim-events.c, sim-fpu.c, sim-hw.c, sim-load.c, sim-memopt.c,
623 sim-options.c, sim-profile.c, sim-trace.c, sim-utils.c,
624 sim-watch.c, syscall.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H,
625 HAVE_STRING_H, HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H,
626 and strings.h include.
628 2021-01-09 Mike Frysinger <vapier@gentoo.org>
630 * sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete.
631 * sim-core.c, sim-watch.c: Include libiberty.h.
633 2021-01-09 Mike Frysinger <vapier@gentoo.org>
635 * acinclude.m4: Replace duplicate text with pointer to README-HACKING.
637 2021-01-09 Mike Frysinger <vapier@gentoo.org>
639 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Document 1st argument.
640 Set WERROR_CFLAGS when first arg is not set or is "yes".
642 2021-01-09 Mike Frysinger <vapier@gentoo.org>
644 * hw-base.c (full_name_of_hw): Delete full_name. Replace
645 hw_strdup call with hw_malloc.
647 2021-01-09 Mike Frysinger <vapier@gentoo.org>
649 * cgen-par.c: Include stdlib.h.
650 * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
652 2021-01-08 Mike Frysinger <vapier@gentoo.org>
654 * Make-common.in (C_DIALECT): Define.
655 (COMPILE.pre): Append $(C_DIALECT).
656 * acinclude.m4 (SIM_AC_COMMON): Probe C11 to define C_DIALECT.
658 2021-01-07 Mike Frysinger <vapier@gentoo.org>
660 * sim-core.c (sim_memory_map): Define.
662 2021-01-04 Mike Frysinger <vapier@gentoo.org>
664 * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
665 * configure: Regenerate.
667 2021-01-04 Mike Frysinger <vapier@gentoo.org>
669 * sim-options.c (sim_print_version): Print out more details when
670 is_command is non-zero.
672 2021-01-04 Mike Frysinger <vapier@gentoo.org>
674 * sim-options.c (standard_option_handler): Call sim_print_version.
675 (sim_print_version): New function.
676 * sim-options.h (sim_print_version): New prototype.
678 2021-01-04 Mike Frysinger <vapier@gentoo.org>
680 * sim-config.c (print_sim_config): Rename to ...
681 (sim_config_print): ... this.
682 * sim-config.h: Likewise.
684 2021-01-02 Mike Frysinger <vapier@gentoo.org>
686 * sim-bits.h (_ALIGNa, _FLOORa, ALIGN_8, ALIGN_16, ALIGN_PAGE,
687 FLOOR_PAGE): Delete unused macros.
688 (align_up, align_down): Define.
690 2020-08-10 Tom de Vries <tdevries@suse.de>
692 * sim-cpu.c: Include stdlib.h for free.
694 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
696 * nrun.c: Include stdlib.h.
697 * sim-core.c: Likewise.
698 * sim-engine.c: Likewise.
699 * sim-io.c: Likewise.
700 * sim-module.c: Likewise.
701 * sim-reason.c: Likewise.
703 2019-12-19 Tom Tromey <tromey@adacore.com>
706 * Makefile.in (install-strip): New target.
708 2019-12-01 Pavel I. Kryukov <kryukov@frtk.ru>
710 * sim-utils.c: Prevent buffer overflow.
712 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
714 * gennltvals.sh: Add PRU libgloss target.
715 * nltvals.def: Regenerate from the latest libgloss sources.
717 2019-06-13 Stafford Horne <shorne@gmail.com>
719 * cgen-accfp.c (unorderedsf, unordereddf): New functions.
720 (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf.
721 * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
723 2019-06-13 Stafford Horne <shorne@gmail.com>
725 * cgen-accfp.c (floatdidf, fixdfdi): New functions.
726 (cgen_init_accurate_fpu): Add floatdidf and fixdfdi.
728 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
730 * cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not
731 CURRENT_TARGET_BYTE_ORDER.
732 (SUBWORDTFSI): Likewise.
733 (JOINSIDF): Likewise.
734 (JOINSIXF): Likewise.
735 (JOINSITF): Likewise.
737 2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
739 * sim-base.h: Add 'sim-assert.h' include.
740 * sim-basics.h: Add 'libiberty.h' include.
742 2019-03-28 Stafford Horne <shorne@gmail.com>
744 * sim-options.c: Include "config.h".
746 * sim-watch.c: Include "config.h".
748 * hw-device.c: Include <string.h>.
749 * hw-events.c: Include <string.h>.
750 * hw-handles.c: Include <stdlib.h>.
751 * sim-fpu.c: Include <stdlib.h>.
753 2019-03-28 Stafford Horne <shorne@gmail.com>
755 * Make-common.in (sim-arange_h): Remove sim-arange.c
756 * sim-arange.c: Remove SIM_ARANGE_C.
757 Add ifdef for _SIM_ARANGE_C_.
758 Include "sim-arange.h".
759 Remove include for unused "sim-assert.h".
760 Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
761 (sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
762 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
763 (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
765 * sim-arange.h (sim_addr_range_add): Declare as
767 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
768 (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
769 Remove definition of SIM_ARANGE_INLINE.
770 Remove [HAVE_INLINE].
771 Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
772 * sim-base.h: Include "sim-arange.h"
773 * sim-basics.h: Remove include of "sim-arange.h"
774 * sim-inline.c: Include "sim-arange.c"
775 * sim-inline.h: Define INLINE_SIM_ARANGE.
776 Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
777 Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
779 2019-01-26 Tom Tromey <tom@tromey.com>
781 * Make-common.in (version.c): Use sim's create-version.sh.
782 * create-version.sh: New file.
784 2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
786 * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
788 2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
790 * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
792 2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
794 * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
795 this point, it should have already been set in cb_syscall.
797 2018-10-05 Stafford Horne <shorne@gmail.com>
799 * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
800 (ADDOFDI): New function, add overflow flag DI variant.
801 (SUBCFDI): New function, subtract carry flag DI variant.
802 (SUBOFDI): New function, subtract overflow flag DI variant.
804 2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
806 * sim-core.h (sim_cpu_core): Rename cpu_core.xor to
808 * sim-core.c (sim_core_set_xor): Likewise.
809 (sim_core_xor_read_buffer): Likewise.
810 (sim_core_xor_write_buffer): Likewise.
812 2017-12-12 Peter Gavin <pgavin@gmail.com>
813 Stafford Horne <shorne@gmail.com>
815 * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
817 (MUL1OFSI): New function, 1's complement overflow flag.
819 2017-12-12 Peter Gavin <pgavin@gmail.com>
820 Stafford Horne <shorne@gmail.com>
822 * cgen-accfp.c (remsf, remdf): New function.
823 (cgen_init_accurate_fpu): Add remsf and remdf.
824 * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
825 * sim-fpu.c (sim_fpu_rem): New function.
826 * sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
827 (sim_fpu_rem): New function.
828 (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
830 2017-09-06 John Baldwin <jhb@FreeBSD.org>
832 * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
835 2017-05-24 Yao Qi <yao.qi@linaro.org>
837 * sim-trace.c (trace_disasm): Caller update.
839 2016-08-15 Mike Frysinger <vapier@gentoo.org>
841 * sim-base.h (sim_state_base): Add prog_syms_count.
842 (STATE_PROG_SYMS_COUNT): Define.
843 * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
844 (trace_load_symbols): New function.
845 (trace_sym_value): Likewise.
846 (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
847 loading logic with a call to trace_load_symbols.
848 * sim-trace.h (trace_load_symbols, trace_sym_value): New
851 2016-08-13 Mike Frysinger <vapier@gentoo.org>
853 * cgen-types.h (mode_names): Mark const.
854 * cgen-utils.c (mode_names): Likewise.
856 2016-08-13 Mike Frysinger <vapier@gentoo.org>
858 * cgen-defs.h (struct cgen_state): Delete argv and envp.
859 (STATE_ARGV, STATE_ENVP): Delete.
861 2016-02-04 Nick Clifton <nickc@redhat.com>
863 * cgen-scache.c (scache_option_handler): Prevent possible
864 undefined behaviour computing the size of the scache by using
865 unsigned integers instead of signed integers.
867 2016-01-17 Joel Brobecker <brobecker@adacore.com>
869 * sim-fpu.c: Minor comment fixes throughout.
871 2016-01-17 Joel Brobecker <brobecker@adacore.com>
873 * sim-fpu.c (print_bits): Minor reformatting (no code change).
874 (sim_fpu_map): Likewise.
876 2016-01-11 Mike Frysinger <vapier@gentoo.org>
878 * sim-config.c (print_sim_config): Drop extra whitespace before =
879 in output for byte order, stdio, and msb settings.
881 2016-01-10 Mike Frysinger <vapier@gentoo.org>
883 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
884 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
885 sim-stdio, sim-trace, and sim-profile.
886 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
887 (SIM_AC_OPTION_ASSERT): Likewise.
888 (SIM_AC_OPTION_SMP): Likewise.
889 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
890 * configure: Regenerate.
891 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
892 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
893 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
894 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
895 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
896 WITH_ENVIRONMENT & USER_ENVIRONMENT.
897 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
898 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
899 WITH_ASSERT, WITH_STDIO): Delete.
900 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
903 2016-01-10 Mike Frysinger <vapier@gentoo.org>
905 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
906 * configure: Regenerate.
907 * Make-common.in (SIM_PACKAGES): Delete.
908 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
910 2016-01-10 Mike Frysinger <vapier@gentoo.org>
912 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
914 2016-01-10 Mike Frysinger <vapier@gentoo.org>
916 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
918 2016-01-10 Mike Frysinger <vapier@gentoo.org>
920 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
922 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
923 * gentmap.c: Change targ-vals.def include to nltvals.def.
924 * Make-common.in (gentmap): Change targ-vals.def to
925 $(srccom)/nltvals.def.
926 (distclean): Delete rm -f targ-vals.def.
927 * Makefile.in: Update comment.
929 2016-01-10 Mike Frysinger <vapier@gentoo.org>
931 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
932 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
933 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
935 2016-01-10 Mike Frysinger <vapier@gentoo.org>
937 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
938 and --enable-sim-stdcall and sim_stdcall.
939 * configure: Regenerate.
940 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
941 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
942 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
943 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
944 (REGPARM_*): Delete all regparm defines and their use.
946 2016-01-10 Mike Frysinger <vapier@gentoo.org>
948 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
949 * Make-common.in (SIM_CFLAGS): Delete.
950 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
951 * Makefile.in: Likewise.
953 2016-01-09 Mike Frysinger <vapier@gentoo.org>
955 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
956 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
957 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
958 * acinclude.m4 (SIM_AC_COMMON): ... here.
959 * aclocal.m4, configure: Regenerate.
960 * config.in: Delete file.
961 * callback.c: Change cconfig.h include to config.h.
962 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
964 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
965 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
967 2016-01-06 Mike Frysinger <vapier@gentoo.org>
969 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
970 date, and time information.
972 2016-01-06 Mike Frysinger <vapier@gentoo.org>
974 * sim-options.c (sim_parse_args): Mark argv array const.
975 * sim-options.h (sim_parse_args): Likewise.
977 2016-01-05 Mike Frysinger <vapier@gentoo.org>
979 * sim-trace.c: Include dis-asm.h.
980 (OPTION_TRACE_DISASM): New enum.
981 (trace_options): Add trace-disasm flag.
982 (trace_option_handler): Handle OPTION_TRACE_DISASM.
983 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
984 (dis_read, dis_printf, trace_disasm): New functions.
985 * sim-trace.h: Include dis-asm.h.
986 (TRACE_INSN_IDX): Clarify comment.
987 (TRACE_DISASM_IDX): New enum.
988 (TRACE_disasm): New define.
989 (WITH_TRACE_DISASM_P): New define.
990 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
991 (STRACE_DISASM_P): New define.
992 (TRACE_DISASM_P): Likewise.
993 (TRACE_DISASM_P): Likewise.
994 (TRACE_DISASM): Likewise.
995 (trace_disasm): New function.
997 2016-01-04 Mike Frysinger <vapier@gentoo.org>
999 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
1001 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1003 * cgen-scache.c (MAX): Delete.
1004 (scache_init): Change MAX to max.
1005 * cgen-trace.c (min): Delete.
1006 * cgen-utils.c (min): Delete.
1007 * sim-basics.h [!min] (min): Define.
1008 [!max] (max): Define.
1010 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1012 * sim-options.c (sim_parse_args): Tweak getopt error message.
1014 2016-01-04 Mike Frysinger <vapier@gentoo.org>
1016 * acinclude.m4 (sim-bswap): Delete.
1017 * configure: Regenerate.
1018 * Make-common.in (SIM_BSWAP): Delete.
1019 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
1020 * sim-config.h (htonl, ntohl): Delete.
1021 (WITH_BSWAP): Delete.
1023 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1025 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
1026 opterr state to it before calling getopt_long and restore afterwards.
1027 Set opterr to 0. When optc is '?', call sim_io_eprintf.
1029 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1031 * hw-device.h (device): Delete commented typedef.
1032 * sim-basics.h (device): Delete typedef.
1034 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1036 * sim-options.c (sim_parse_args): Replace for loop with a call
1039 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1041 * nrun.c (myname): Mark const.
1042 (main): Mark name const. Replace myname parsing loop with a
1045 2016-01-03 Mike Frysinger <vapier@gentoo.org>
1047 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
1048 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
1049 (SIM_AC_OPTION_HOSTENDIAN): Delete.
1050 * config.in, configure: Regenerate.
1051 * Make-common.in (SIM_HOSTENDIAN): Delete.
1052 * sim-config.c (current_host_byte_order): Delete.
1053 (sim_config): Delete current_host_byte_order assignments and
1054 CURRENT_HOST_BYTE_ORDER checks.
1055 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
1056 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
1057 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
1058 (current_host_byte_order): Delete.
1059 (CURRENT_HOST_BYTE_ORDER): Likewise.
1060 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
1061 (HOST_BYTE_ORDER): ... this.
1062 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
1064 (sim_endian_join_16): Likewise.
1065 * sim-n-core.h (sim_core_read_misaligned_N): Change
1066 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
1067 (sim_core_write_misaligned_N): Likewise.
1068 * sim-n-endian.h (endian_t2h_N): Likewise.
1069 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
1070 endian_le2h_N): Likewise.
1071 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
1073 2016-01-02 Mike Frysinger <vapier@gentoo.org>
1075 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
1076 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
1078 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
1079 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
1080 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
1081 * nrun.c (main): Likewise.
1082 * sim-config.c (current_host_byte_order): Change type to enum
1083 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
1084 (current_target_byte_order): Likewise.
1085 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
1086 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
1088 (sim_config): Change prefered_target_byte_order type to enum
1089 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
1090 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
1091 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
1092 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
1093 Delete all the various arch/OS endian includes & defines.
1094 (current_host_byte_order): Change type to enum bfd_endian.
1095 (current_target_byte_order): Likewise.
1096 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
1097 (CURRENT_TARGET_BYTE_ORDER): Likewise.
1098 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
1099 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
1100 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
1102 (sim_events_watch_core): Likewise.
1103 * sim-events.h: Likewise.
1104 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
1106 (sim_core_write_misaligned_N): Likewise.
1107 * sim-n-endian.h (endian_h2be_N): Likewise.
1108 (endian_be2h_N): Likewise.
1109 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
1110 (offset_N): Likewise.
1111 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
1112 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
1114 2016-01-02 Mike Frysinger <vapier@gentoo.org>
1116 * cgen-defs.h (current_state): Delete.
1117 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
1118 * sim-utils.c (current_state): Delete.
1120 2015-12-30 Mike Frysinger <vapier@gentoo.org>
1122 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
1125 2015-12-27 Mike Frysinger <vapier@gentoo.org>
1127 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
1129 2015-12-26 Mike Frysinger <vapier@gentoo.org>
1131 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
1132 * config.in, configure: Regenerate.
1133 * Make-common.in (sim-basics_h): Delete tconfig.h.
1134 (distclean): Likewise.
1135 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
1136 (new_sim_core_mapping): Delete WITH_HW and device *device.
1137 (sim_core_map_attach, sim_core_attach): Likewise.
1138 (sim_core_read_buffer): Delete WITH_DEVICES logic.
1139 (sim_core_write_buffer): Likewise.
1140 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
1142 (sim_core_attach): Likewise.
1143 (device_io_read_buffer, device_io_write_buffer): Delete.
1144 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
1145 (sim_core_write_aligned_N): Likewise.
1146 * tconfig.h: Delete file.
1148 2015-12-26 Mike Frysinger <vapier@gentoo.org>
1150 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
1151 Call sim_cpu_hw_io_read_buffer if cpu is valid.
1152 (sim_core_write_buffer): Move cia decl to top of func. Call
1153 sim_cpu_hw_io_write_buffer if cpu is valid.
1155 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1157 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
1159 (hw_find_integer_property): Likewise.
1160 (hw_find_integer_array_property): Likewise.
1161 (hw_add_duplicate_property): Likewise.
1163 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1165 * sim-config.h (WITH_ENGINE): Delete.
1166 * sim-module.c (modules): Always include sim_engine_install.
1168 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1170 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
1171 * cgen-types.h (SIM_HAVE_MODEL): Delete.
1172 * sim-base.h: Always include sim-model.h.
1173 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
1174 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
1175 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
1176 [!WITH_MODEL_P] (sim_machs): Define.
1177 * sim-model.h: Add some developer docs.
1178 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
1179 (WITH_MODEL_P): Define.
1180 * sim-module.c (modules): Always include sim_model_install.
1181 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
1183 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1185 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
1186 * sim-model.c: Likewise.
1187 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
1188 SIM_MACH_IMP_PROPERTIES
1190 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1192 * sim-core.c (device_error): Delete.
1193 (sim_core_map_attach): Delete calls to device_error.
1194 (sim_core_attach): Likewise.
1195 * sim-core.h (device_error): Delete.
1196 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
1197 to sim_engine_abort.
1198 (sim_core_write_aligned_N): Likewise.
1200 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1202 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
1203 * sim-core.c (sim_core_write_buffer): Likewise.
1204 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
1205 (sim_core_write_aligned_N): Likewise.
1207 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1209 * dv-pal.c: Include config.h and sim-main.h.
1210 (hw_pal_io_read_buffer): Always call CPU_INDEX.
1212 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1214 * sim-options.c (standard_options): Always enable load-lma and
1216 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
1218 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1220 * sim-module.c (MODULE_LIST): Delete.
1222 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1224 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
1225 Move to h8300/compile.c.
1226 [SIM_H8300] (standard_options): Likewise.
1227 (standard_option_handler): Likewise.
1229 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1231 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
1232 sim_watchpoint_install.
1234 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1236 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
1237 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
1239 * sim-options.c (OPTION_MEM_SIZE): Delete.
1240 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
1241 (standard_option_handler): Likewise.
1243 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1245 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
1247 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1250 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
1252 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1255 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
1256 vasprintf, and va_end together. Check ret after va_end call.
1258 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1260 * sim-types.h (SIM_PRI_TB): Define.
1261 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
1262 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
1263 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
1264 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
1266 2015-11-17 Mike Frysinger <vapier@gentoo.org>
1268 * sim-main.h (WITH_MODULO_MEMORY): Delete.
1269 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
1270 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
1271 (sim_core_translate): Likewise.
1272 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
1274 2015-11-16 Mike Frysinger <vapier@gentoo.org>
1276 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
1277 (cgen_cpu_close): Change to XCONCAT2.
1279 2015-11-15 Mike Frysinger <vapier@gentoo.org>
1281 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
1284 2015-11-14 Mike Frysinger <vapier@gentoo.org>
1286 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
1287 * sim-close.c: New file.
1289 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
1290 Ali Lown <ali.lown@imgtec.com>
1292 * sim-bits.h (EXTEND6): New macro.
1293 (EXTEND12): New macro.
1294 (EXTEND25): New macro.
1296 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1298 * sim-trace.c (trace_one_insn): Delete.
1299 * sim-trace.h (trace_one_insn): Delete.
1301 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1303 * sim-trace.c (debug_printf): Rename to ...
1304 (sim_debug_printf): ... this.
1305 * sim-trace.h (debug_printf): Delete define.
1306 (debug_printf): Rename to ...
1307 (sim_debug_printf): ... this.
1309 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1311 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
1312 (trace_options): Add trace-register option.
1313 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
1314 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
1315 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
1316 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
1317 TRACE_REGISTER_P, TRACE_REGISTER): Define.
1319 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1321 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
1322 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
1323 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
1324 STRACE_DEBUG): Define.
1326 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1328 * sim-trace.c (trace_options): Update help text for trace-alu,
1329 trace-fpu, trace-vpu, and trace-semantics.
1330 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
1331 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
1333 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1335 * sim-assert.h (SIM_FILTER_PATH): Delete.
1336 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
1337 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
1338 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
1339 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
1340 * sim-events.c: Include libiberty.h.
1341 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
1343 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1345 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
1346 (AC_ARG_ENABLE(sim-cflags)): Likewise.
1347 (AC_ARG_ENABLE(sim-debug)): Likewise.
1348 (AC_ARG_ENABLE(sim-stdio)): Likewise.
1349 (AC_ARG_ENABLE(sim-trace)): Likewise.
1350 (AC_ARG_ENABLE(sim-profile)): Likewise.
1351 (AC_ARG_ENABLE(sim-environment)): Likewise.
1352 (AC_ARG_ENABLE(sim-alignment)): Likewise.
1353 (AC_ARG_ENABLE(sim-assert)): Likewise.
1354 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
1355 (AC_ARG_ENABLE(sim-endian)): Likewise.
1356 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
1357 (AC_ARG_ENABLE(sim-float)): Likewise.
1358 (AC_ARG_ENABLE(sim-scache)): Likewise.
1359 (AC_ARG_ENABLE(sim-default-model)): Likewise.
1360 (AC_ARG_ENABLE(sim-inline)): Likewise.
1361 (AC_ARG_ENABLE(sim-packages)): Likewise.
1362 (AC_ARG_ENABLE(sim-regparm)): Likewise.
1363 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
1364 (AC_ARG_ENABLE(sim-smp)): Likewise.
1365 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
1366 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
1367 (AC_ARG_ENABLE(cgen-maint)): Likewise.
1368 * configure: Regenerate.
1370 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1372 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
1374 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1376 * cgen-trace.c [!__STDC__]: Delete.
1377 * sim-trace.h [!__STDC__]: Likewise.
1379 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1381 * sim-model.c (sim_model_init): Assert model is not NULL.
1383 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1385 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
1386 stdint.h. Replace all signed/unsigned typedefs with int#_t and
1389 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1391 * sim-alu.h (_SIM_ALU_H_): Rename to ...
1392 (SIM_ALU_H): ... this.
1393 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
1394 (SIM_ASSERT_H): ... this.
1395 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
1396 (SIM_BASICS_H): ... this.
1397 * sim-bits.h (_SIM_BITS_H_): Rename to ...
1398 (SIM_BITS_H): ... this.
1399 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
1400 (SIM_ENDIAN_H): ... this.
1402 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1404 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
1407 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1409 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
1410 m for sentinel testing.
1412 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1414 * sim-syscall.c: Include errno.h and targ-vals.h.
1415 (sim_syscall_multi, sim_syscall): Define.
1416 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
1417 * syscall.c (cb_syscall): Extend comment.
1419 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1421 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
1422 * sim-syscall.c: New file.
1423 * sim-syscall.h: New file.
1425 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1427 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
1428 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
1429 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
1430 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
1431 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
1433 * gentmap.c (gen_targ_map_c): Output name field.
1435 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1437 * acinclude.m4: Change configure.in to configure.ac.
1438 * sim-config.h: Likewise.
1440 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1442 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
1443 * configure: Regenerate.
1445 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1447 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
1448 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
1449 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
1450 TRACE_DEBUG): Define.
1452 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1454 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
1455 * sim-trace.c (trace_option_handler): Likewise.
1456 * sim-trace.h (WITH_TRACE_ANY_P): Define.
1457 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
1458 (TRACE_ANY_P): Likewise.
1460 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1462 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
1463 CGEN_TRACE_INSN_FINI.
1464 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
1465 trace_result to cgen_trace_result, trace_insn_fini to
1466 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
1467 and trace_extract to cgen_trace_extract.
1468 * cgen-trace.h (trace_insn_init): Rename to ...
1469 (cgen_trace_insn_init): ... this.
1470 (trace_insn_fini): Rename to ...
1471 (cgen_trace_insn_fini): ... this.
1472 (trace_insn): Rename to ...
1473 (cgen_trace_insn): ... this.
1474 (trace_extract): Rename to ...
1475 (cgen_trace_extract): ... this.
1476 (trace_result): Rename to ...
1477 (cgen_trace_result): ... this.
1478 (TRACE_RESULT_P): Rename to ...
1479 (CGEN_TRACE_RESULT_P): ... this.
1480 (TRACE_INSN_INIT): Rename to ...
1481 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
1482 cgen_trace_insn_init.
1483 (TRACE_INSN_FINI): Rename to ...
1484 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
1485 cgen_trace_insn_fini.
1486 (TRACE_PRINTF): Rename to ...
1487 (CGEN_TRACE_PRINTF): ... this.
1488 (TRACE_INSN): Rename to ...
1489 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
1490 (TRACE_EXTRACT): Rename to ...
1491 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
1493 (TRACE_RESULT): Rename to ...
1494 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
1495 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
1496 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
1497 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
1498 TRACE_INSN to CGEN_TRACE_INSN.
1499 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
1501 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1503 * sim-events.c (ETRACE_P): Delete.
1504 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
1505 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
1506 * sim-events.h (struct _sim_events): Delete trace member.
1507 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
1508 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
1510 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1512 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
1513 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
1514 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
1515 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
1517 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1519 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
1521 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1523 * sim-trace.h (WITH_TRACE_P): New define.
1524 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
1525 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
1526 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
1527 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
1528 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
1529 Redefine to use WITH_TRACE_P.
1531 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
1533 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
1534 mistake in call to sim_engine_abort.
1536 2015-04-29 Nick Clifton <nickc@redhat.com>
1539 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
1540 increasing parenthesis around casts to signed values.
1542 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1544 * gennltvals.sh: Add mcore support.
1545 * nltvals.def: Regenerate.
1547 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1549 * cgen.sh: Add +x permissions.
1550 * genmloop.sh: Likewise.
1551 * gentvals.sh: Likewise.
1552 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
1553 Change all uses of srcroot for newlib to newlibroot.
1555 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1557 * sim-base.h (SIM_CPU): New typedef.
1559 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1561 * cgen-engine.h (CIA_ADDR): Delete.
1562 * sim-base.h: Update sim_cia example.
1563 [!CIA_ADDR] (sim_cia): New typedef.
1565 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1567 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
1568 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
1569 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
1570 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
1571 CIA_SET to CPU_PC_SET.
1573 2015-04-15 Mike Frysinger <vapier@gentoo.org>
1575 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
1576 * sim-main.h (STATE_CPU): Remove from comment and define.
1578 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1580 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
1581 * configure: Regenerate.
1583 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1585 * sim-options.c: Include version.h.
1586 (OPTIONS_VERSION): New enum.
1587 (standard_options): Add "version".
1588 (standard_option_handler): Handle OPTIONS_VERSION.
1590 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1592 * Makefile.in (version.o): Change to using create-version.sh from gdb.
1593 (create-version.sh): Delete.
1595 2015-04-06 Mike Frysinger <vapier@gentoo.org>
1597 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
1599 2015-04-01 Mike Frysinger <vapier@gentoo.org>
1601 * run-sim.h, run.c: Delete.
1602 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
1604 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1606 * config.in, configure: Regenerate.
1607 * Make-common.in (CSEARCH): Add $(ZLIBINC).
1608 (ZLIB, ZLIBINC): Define.
1609 (BFD_LIB): Add $(ZLIB).
1611 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1613 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
1614 * cgen-ops.h (SEMOPS_INLINE): Likewise.
1616 2015-03-29 Mike Frysinger <vapier@gentoo.org>
1618 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
1619 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
1620 * sim-inline.h (INLINE2): Define to gnu_inline when available.
1622 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1624 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
1625 usage of STATE_WATCHPOINTS.
1626 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
1627 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
1629 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1631 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
1633 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1635 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
1637 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1639 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
1640 of enable_sim_hardware to AC_ARG_ENABLE.
1642 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1644 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
1645 Add dv-sockser.o to sim_hw_objs.
1647 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1649 * dv-sockser.c: Include config.h.
1650 * dv-sockser.h: Include sim-inline.h.
1651 [HAVE_DV_SOCKSER]: Move all prototypes here.
1652 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
1653 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
1655 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1657 * gentmap.c, run.c: Convert old style prototypes.
1659 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1661 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
1662 symlinking tconfig.h to tconfig.in.
1663 * config.in, configure: Regenerate.
1664 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
1665 * tconfig.in: Rename file ...
1666 * tconfig.h: ... here.
1668 2015-03-15 Mike Frysinger <vapier@gentoo.org>
1670 * dv-socker.h (dv_sockser_install): Declare.
1671 * sim-module.c: Include config.h.
1672 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
1673 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
1674 * sim-module.h: Include gdb/remote-sim.h.
1676 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1678 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
1679 (sim-inline.c): Delete rule.
1681 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1683 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
1684 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
1685 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
1687 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1689 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
1690 [!ASSERT, WITH_ASSERT]: Likewise.
1691 * sim-endian.c: Delete sim-io.h include.
1693 2015-02-19 Mike Frysinger <vapier@gentoo.org>
1695 * run-sim.h (sim_kill): Delete unused prototype.
1697 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
1699 * gentmap.c: Include "string.h".
1701 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
1703 * sim-options.c (sim_args_command): Call freeargv() when failure
1706 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1708 * aclocal.m4, configure: Regenerate using automake 1.11.1.
1710 2014-12-03 Joel Brobecker <brobecker@adacore.com>
1712 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
1713 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
1714 callbacks following renaming in callback.h.
1715 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
1716 callback by call to "to_lstat" callback
1718 2014-08-28 Gary Benson <gbenson@redhat.com>
1720 * sim-trace.h (debug_printf): New define.
1722 2014-08-19 Alan Modra <amodra@gmail.com>
1724 * configure: Regenerate.
1726 2014-08-15 Roland McGrath <mcgrathr@google.com>
1728 * configure: Regenerate.
1729 * config.in: Regenerate.
1731 2014-03-10 Mike Frysinger <vapier@gentoo.org>
1733 * sim-command.c (sim_do_command): Add const to cmd.
1734 * sim-options.c (sim_args_command): Add const to cmd.
1735 * sim-options.h (sim_args_command): Add const to cmd.
1737 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1739 * sim-hload.c (sim_load): Add const to prog.
1740 * sim-load.c (sim_load_file): Likewise.
1741 * sim-utils.c (sim_analyze_program): Likewise.
1742 * sim-utils.h (sim_analyze_program): Likewise.
1743 (sim_load_file): Likewise.
1745 2014-03-04 Mike Frysinger <vapier@gentoo.org>
1747 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
1748 * callback.c (system): Delete unused prototype.
1749 (os_init): Likewise.
1750 (os_shutdown): Likewise.
1751 (os_unlink): Likewise.
1752 (os_time): Likewise.
1753 (os_system): Likewise.
1754 (os_rename): Likewise.
1755 (os_write_stdout): Likewise.
1756 (os_flush_stdout): Likewise.
1757 (os_write_stderr): Likewise.
1758 (os_flush_stderr): Likewise.
1759 (os_write): Likewise.
1760 (os_read_stdin): Likewise.
1761 (os_read): Likewise.
1762 (os_open): Likewise.
1763 (os_lseek): Likewise.
1764 (os_isatty): Likewise.
1765 (os_get_errno): Likewise.
1766 (os_close): Likewise.
1767 (os_vprintf_filtered): Likewise.
1768 (os_evprintf_filtered): Likewise.
1769 (os_error): Likewise.
1773 (wrap): Change to new style prototype.
1776 (os_close): Likewise.
1777 (os_poll_quit): Likewise.
1778 (os_get_errno): Likewise.
1779 (os_isatty): Likewise.
1780 (os_lseek): Likewise.
1781 (os_open): Likewise.
1782 (os_read): Likewise.
1783 (os_read_stdin): Likewise.
1784 (os_write): Likewise.
1785 (os_write_stdout): Likewise.
1786 (os_flush_stdout): Likewise.
1787 (os_write_stderr): Likewise.
1788 (os_flush_stderr): Likewise.
1789 (os_rename): Likewise.
1790 (os_system): Likewise.
1791 (os_time): Likewise.
1792 (os_unlink): Likewise.
1793 (os_stat): Likewise.
1794 (os_fstat): Likewise.
1795 (os_lstat): Likewise.
1796 (os_ftruncate): Likewise.
1797 (os_truncate): Likewise.
1798 (os_pipe): Likewise.
1799 (os_pipe_empty): Likewise.
1800 (os_pipe_nonempty): Likewise.
1801 (os_shutdown): Likewise.
1802 (os_init): Likewise.
1803 (cb_read_target_syscall_maps): Likewise.
1804 (cb_target_to_host_syscall): Likewise.
1805 (cb_host_to_target_errno): Likewise.
1806 (cb_target_to_host_open): Likewise.
1807 (cb_store_target_endian): Likewise.
1808 (cb_host_to_target_stat): Likewise.
1809 * sim-hload.c (sim_load): Change to new style prototype.
1810 * sim-load.c (sim_load_file): Change to new style prototype.
1811 (report_transfer_performance): Likewise.
1812 (xprintf_bfd_vma): Likewise.
1813 * syscall.c (cb_get_string): Change to new style prototype.
1814 (get_path): Likewise.
1815 (cb_syscall): Likewise.
1817 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
1819 * create-version.sh: Align parameters to match those of
1820 ../../gdb/common/create-version.sh.
1821 * Make-common.in (srcsim): New variable.
1822 (version.c): Adjust call to create-version.sh as per above.
1824 2013-09-23 Alan Modra <amodra@gmail.com>
1826 * configure: Regenerate.
1828 2013-09-03 Mike Stump <mikestump@comcast.net>
1830 * sim-options.c (complete_option_list): Mark text and word const.
1832 2013-06-28 Tom Tromey <tromey@redhat.com>
1834 * Make-common.in (version.c): Use version.in, not
1836 * create-version.sh: Likewise.
1838 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1840 * create-version.sh: New script. Adapted from
1841 gdb/commong/create-version.sh.
1842 * Make-common.in (version.c): Update rule dependencies,
1843 and re-implement using create-version.sh.
1845 2013-06-21 Nick Clifton <nickc@redhat.com>
1847 * gennltvals.sh: Add msp430 support.
1848 * nltvals.def: Regenerate.
1850 2013-06-03 Mike Frysinger <vapier@gentoo.org>
1852 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
1853 * aclocal.m4, configure: Regenerate.
1855 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1858 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
1859 -Wformat-nonliteral with -Wno-format.
1861 2013-03-26 Mike Frysinger <vapier@gentoo.org>
1863 * acinclude.m4: Regenerate.
1865 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
1867 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
1868 which do not support dv-sockser.o. Add always as option to
1869 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
1870 is always required to be enabled by simulator.
1872 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1874 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1875 * nltvals.def: Regenerate.
1877 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1879 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1880 * config.in, configure: Regenerate.
1882 2012-05-24 Pedro Alves <palves@redhat.com>
1884 * sim-signal.h (sim_signal_to_target): Rename to ...
1885 (sim_signal_to_gdb_signal): ... this.
1886 * sim-signal.c (sim_signal_to_target): Rename to ...
1887 (sim_signal_to_gdb_signal): ... this.
1888 * sim-reason.c (sim_stop_reason): Adjust to rename.
1890 2012-05-24 Pedro Alves <palves@redhat.com>
1894 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1896 2012-05-24 Pedro Alves <palves@redhat.com>
1900 Replace target_signal with gdb_signal throughout.
1902 2012-05-18 Nick Clifton <nickc@redhat.com>
1905 * callback.c: Include config.h before system header files.
1906 * cgen-trace.c: Likewise.
1907 * cgen-utils.c: Likewise.
1908 * gentmap.c: Likewise.
1910 2012-04-02 Mike Frysinger <vapier@gentoo.org>
1912 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
1914 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1916 * sim-trace.c: Update the function prototype of save_data_size.
1917 Move the enum data_fmt from here...
1918 * sim-trace.h: ...to here.
1919 Add function prototype of save_data.
1921 2012-03-25 Mike Frysinger <vapier@gentoo.org>
1923 * sim-core.h (sim_core_trans_addr): Add prototype.
1925 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
1927 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
1928 missing in last change.
1930 2012-03-24 Mike Frysinger <vapier@gentoo.org>
1932 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
1933 * nrun.c: Include string.h/strings.h.
1934 * aclocal.m4, config.in, configure: Regenerate.
1936 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1938 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1939 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1940 out -Werror initialization.
1942 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1944 * Make-common.in (TAGS): Change a-z to [:lower:].
1945 * acinclude.m4 (sim-trace): Likewise.
1946 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1947 Change A-Za-z0-9 to [:alnum:].
1949 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1951 * nrun.c (main): Display strsignal of sigrc.
1953 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1955 * Makefile.in (abs_srcdir): Declare.
1956 (srcroot): Define in terms of abs_srcdir.
1957 (headers): Change srcdir to abs_srcdir.
1959 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1961 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1964 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1966 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1967 system bourne shell.
1969 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1971 * syscall.c (cb_get_string): Rename from "get_string".
1972 (get_path): Rename get_string call to cb_get_string.
1974 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1976 * Make-common.in (VPATH): Add $(srccom).
1978 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1979 POSTCOMPILE): New variables.
1980 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1981 Include dependency files, when using GNU Make. Delete all
1982 dependency-only rules.
1983 * aclocal.m4: Include ../../config/depstand.m4. Call
1984 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1985 (MAKE, GMAKE): New substs.
1987 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1990 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1991 * configure, config.in: Regenerate.
1992 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1994 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1996 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1998 2011-10-18 John Wehle <john@feith.com> (tiny patch)
2000 * sim-profile.c (profile_info): Only print the title once.
2002 2011-10-17 Mike Frysinger <vapier@gentoo.org>
2004 * acinclude.m4: Rename from aclocal.m4.
2005 * aclocal.m4: Regenerate.
2007 2011-10-17 Mike Frysinger <vapier@gentoo.org>
2009 * aclocal.m4: Change AC_PREREQ comment to 2.64.
2010 * common.m4: Delete.
2011 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
2012 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
2013 * configure: Regenerate.
2015 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
2017 * sim-alu.h (ALU32_AND): Clear carry flag.
2018 (ALU32_AND): Clear carry flag.
2020 2011-10-09 Mike Frysinger <vapier@gentoo.org>
2022 * dv-cfi.c: Include stdbool.h.
2024 2011-10-09 Mike Frysinger <vapier@gentoo.org>
2026 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
2028 2011-10-04 Mike Frysinger <vapier@gentoo.org>
2030 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
2031 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
2033 2011-07-12 Mike Frysinger <vapier@gentoo.org>
2035 * sim-command.c: Include sim-options.h.
2037 2011-07-12 Mike Frysinger <vapier@gentoo.org>
2039 * aclocal.m4: Move sinclude comment after AC_INIT comment.
2041 2011-07-12 Mike Frysinger <vapier@gentoo.org>
2043 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
2044 Delete direct call to AC_PROG_CC.
2046 2011-07-05 Mike Frysinger <vapier@gentoo.org>
2048 * sim-command.c: New file.
2049 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
2050 (sim-command.o): New rule.
2052 2011-05-27 Mike Frysinger <vapier@gentoo.org>
2054 * sim-options.c (standard_option_handler): Remove arg[0] check
2055 when freeing simulator_sysroot. Only strdup arg when arg[0] is
2056 not an empty string, otherwise assign "" back to it.
2058 2011-05-26 Mike Frysinger <vapier@gentoo.org>
2060 * nltvals.def: Regenerate to include Blackfin syscalls again.
2062 2011-05-25 Mike Frysinger <vapier@gentoo.org>
2064 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
2065 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
2066 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
2067 (trace_idx_to_str): Likewise.
2068 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
2069 (TRACE_syscall): Define.
2070 (WITH_TRACE_SYSCALL_P): Likewise.
2071 (TRACE_SYSCALL_P): Likewise.
2073 2011-05-23 Mike Frysinger <vapier@gentoo.org>
2075 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
2076 remove now-unnecessary sub-scope for glue->type setting.
2077 Check to see if the "reg" property exists before we use it, and
2078 if it doesn't exist, error out for "glue" devices.
2080 2011-05-23 Mike Frysinger <vapier@gentoo.org>
2082 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
2083 glue-or, and set type to glue_xor when name is glue-xor.
2084 (hw_glue_port_event): Return immediately when type is glue_io
2085 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
2086 and hw_port_event calls from glue_and to end of function.
2088 2011-05-11 Mike Frysinger <vapier@gentoo.org>
2090 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
2091 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
2092 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
2093 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
2094 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
2095 around function arguments.
2097 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2099 * sim-options.c (complete_option_list, sim_complete_command):
2102 2011-04-02 Mike Frysinger <vapier@gentoo.org>
2104 * dv-glue.c: Fix up style.
2106 2011-04-02 Mike Frysinger <vapier@gentoo.org>
2108 * hw-alloc.c (hw_alloc_data): Adjust brace.
2109 * hw-base.c (hw_base_data): Likewise.
2110 (generic_hw_unit_decode): Fix indentation.
2111 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
2112 * hw-events.c (hw_event, hw_event_data): Likewise.
2113 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
2114 * hw-instances.c (hw_instance_data): Likewise.
2115 * hw-instances.h (hw_instance): Likewise.
2116 * hw-main.h (hw_descriptor, enum): Likewise.
2117 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
2118 * hw-ports.h (hw_port_descriptor): Likewise.
2119 * hw-properties.c (hw_property_data): Likewise.
2120 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
2121 _range_property_spec, _reg_property_spec): Likewise.
2122 * hw-tree.c (_name_specifier, printer): Likewise.
2123 (split_device_specifier, parse_string_property, hw_tree_traverse,
2124 print_size, print_reg_property, print_string, print_properties):
2127 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2129 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
2130 * Make-common.in (dv-cfi.o): New rule.
2131 * dv-cfi.c, dv-cfi.h: New files.
2133 2011-03-21 Kevin Buettner <kevinb@redhat.com>
2135 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
2136 fcntl.h and sys/fcntl.h, for constants.
2137 * nltvals.def: Regenerate.
2138 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
2139 * sim-io.h (sys/types.h, sys/stat.h): Include.
2140 (sim_io_stat, sim_io_fstat): Declare.
2142 2011-03-14 Mike Frysinger <vapier@gentoo.org>
2144 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
2145 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
2146 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
2147 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
2148 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
2149 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
2150 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
2151 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
2152 syscall.c: Trim trailing whitespace.
2154 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2156 * gennltvals.sh: Handle bfin targets.
2157 * nltvals.def: Regenerate.
2159 2011-02-25 Kevin Buettner <kevinb@redhat.com>
2161 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
2164 2011-02-14 Mike Frysinger <vapier@gentoo.org>
2166 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
2167 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
2168 (hw_free): Drop zfree logic and always call free.
2169 * hw-base.c (hw_delete): Change zfree to free.
2170 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
2171 (hw_handle_remove_phandle): Likewise.
2172 * hw-instances.c (hw_instance_delete): Likewise.
2173 * hw-tree.c (parse_reg_property): Likewise.
2174 (parse_ranges_property): Likewise.
2175 (parse_string_property): Likewise.
2176 * sim-core.c (sim_core_uninstall): Likewise.
2177 * sim-cpu.c (sim_cpu_free_all): Likewise.
2178 * sim-hw.c (sim_hw_uninstall): Likewise.
2179 * sim-memopt.c (do_memopt_delete): Likewise.
2180 (sim_memory_uninstall): Likewise.
2181 * sim-module.c (sim_module_uninstall): Likewise.
2182 * sim-options.c (sim_parse_args): Likewise.
2183 * sim-profile.c (profile_pc_cleanup): Likewise.
2184 (profile_uninstall): Likewise.
2185 * sim-watch.c (do_watchpoint_delete): Likewise.
2186 * sim-utils.c (zfree): Delete.
2187 (sim_state_free): Change zfree to free.
2188 * sim-utils.h (zfree): Delete.
2190 2011-02-13 Mike Frysinger <vapier@gentoo.org>
2192 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
2194 2011-01-12 Mike Frysinger <vapier@gentoo.org>
2196 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
2198 2011-01-12 Mike Frysinger <vapier@gentoo.org>
2200 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
2202 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
2203 when asprintf fails.
2204 * sim-utils.c (sim_do_commandf): Issue an error and return when
2206 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
2209 2011-01-11 Mike Frysinger <vapier@gentoo.org>
2211 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
2212 bytes has been calculated and when mmap_next_fd is valid and
2214 (memory_option_handler): Allow missing size when mmap_next_fd is
2217 2011-01-10 Mike Frysinger <vapier@gentoo.org>
2219 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
2220 not empty, and always append $3 to $hardware.
2222 2011-01-10 Mike Frysinger <vapier@gentoo.org>
2224 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
2225 * sim-hw.h (sim_hw_abort): Likewise.
2227 2011-01-05 Mike Frysinger <vapier@gentoo.org>
2229 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
2231 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2233 * run.1: Copyright year update.
2235 2010-12-28 Mike Frysinger <vapier@gentoo.org>
2237 * hw-alloc.h (HW_NALLOC): Define.
2239 010-12-28 Mike Frysinger <vapier@gentoo.org>
2241 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
2243 2010-12-15 Mike Frysinger <vapier@gentoo.org>
2245 * sim-memopt.c (OPTION_MAP_INFO): Define.
2246 (memory_options): Handle --map-info.
2247 (memory_option_handler): Handle OPTION_MAP_INFO.
2249 2010-11-22 Mike Frysinger <vapier@gentoo.org>
2251 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
2252 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
2253 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
2255 2010-11-22 Mike Frysinger <vapier@gentoo.org>
2257 * sim-core.c (WITH_HW): Add device casts to device_error,
2258 device_io_read_buffer, and device_io_write_buffer.
2260 2010-11-16 Mike Frysinger <vapier@gentoo.org>
2262 * dv-sockser.c (dv_sockser_write_buffer): New function.
2263 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
2264 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
2266 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
2268 * callback.c (os_lseek): Call wrap on lseek result.
2270 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2272 * dv-sockser.c (dv_sockser_init): Check error return from socket()
2273 call by its equality to -1 not by it being negative.
2274 (connected_p): Likewise for accept() call.
2276 2010-04-23 Mike Frysinger <vapier@gentoo.org>
2278 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
2280 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2282 * profile.c (sim_profile_print_bar): Add cpu argument.
2284 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2286 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
2288 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2290 * sim-profile.c (profile_vprintf, profile_printf): New functions.
2291 (profile_print_pc): Convert sim_io_printf to profile_printf.
2292 (profile_print_insn): Likewise.
2293 (profile_print_memory): Likewise.
2294 (profile_print_core): Likewise.
2295 (profile_print_model): Likewise.
2296 (sim_profile_print_bar): Likewise.
2297 (profile_print_speed): Likewise.
2298 (profile_print_addr_ranges): Likewise.
2299 (profile_info): Likewise.
2300 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
2302 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2304 * sim-model.c (OPTION_MODEL): Convert to enum.
2305 (OPTION_MODEL_INFO): New enum.
2306 (model_options): Add model-info/info-model entries.
2307 (model_option_handler): Handle OPTION_MODEL_INFO.
2309 2010-04-13 Mike Frysinger <vapier@gentoo.org>
2311 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
2312 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
2315 2010-04-13 Mike Frysinger <vapier@gentoo.org>
2317 * sim-hrw.c (sim_write): Add const to buf arg.
2318 * sim-utils.h (sim_write_fn): Likewise.
2320 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2322 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
2325 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2327 * dv-core.c (dv_core_descriptor): Add NULL initializer.
2328 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
2329 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
2330 * dv-sockser.c (sockser_options): Likewise.
2331 * hw-ports.c (empty_hw_ports): Likewise.
2332 * sim-hw.c (hw_options): Likewise.
2333 * sim-model.c (model_options): Likewise.
2334 * sim-options.c (standard_options): Likewise.
2335 * sim-profile.c (profile_options): Likewise.
2336 * sim-trace.c (trace_options): Likewise.
2337 * sim-watch.c (watchpoint_options): Likewise.
2339 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2341 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
2342 the local "arg_table" variable, and the xmalloc cast.
2344 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2346 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
2348 (sim_fpu_print_func): Add const markings to format buffer.
2350 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2352 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
2354 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2356 * sim-trace.c (save_data): Add const markings to "buf" argument.
2358 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2360 * sim-options.c (standard_option_handler): Add const markings to
2363 2010-04-02 Mike Frysinger <vapier@gentoo.org>
2365 * hw-ports.h: Fix spelling typos.
2367 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2369 * configure.ac: Check for socklen_t.
2370 * configure, config.in: Regenerated.
2371 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
2373 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2375 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
2376 * sim-hw.c (hw_option_handler): Likewise.
2378 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2380 * sim-watch.c (watchpoint_type_to_str): Add const to return.
2381 (interrupt_nr_to_str): Likewise.
2382 (default_interrupt_names): Add const to pointer type.
2383 (sim_watchpoint_install): Add const to prefix.
2384 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
2386 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2388 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
2389 (sim_core_write_buffer): Likewise.
2391 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2393 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
2394 the SIM_HAVE_ADDR_RANGE define.
2396 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2398 * sim-core.h (device_error): Add const to message, and add printf
2401 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2403 * sim-profile.c (profile_print_addr_ranges): Wrap with the
2404 SIM_HAVE_ADDR_RANGE define.
2406 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2408 * dv-glue.c (hw_glue_ports): Swap static and const.
2410 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2412 * nrun.c (usage): Use void in definition.
2413 * sim-options.c (dup_arg_p): Convert old-style function definition.
2414 (sim_parse_args): Likewise.
2415 (sim_print_help): Likewise.
2416 * sim-trace.c (set_trace_option_mask): Likewise.
2417 (set_trace_option): Likewise.
2418 * sim-utils.c (sim_analyze_program): Likewise.
2419 (sim_elapsed_time_get): Likewise.
2420 (sim_elapsed_time_since): Likewise.
2422 2010-03-22 Mike Frysinger <vapier@gentoo.org>
2424 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
2425 (standard_options): Likewise.
2426 (standard_option_handler): Likewise.
2428 2010-03-16 Mike Frysinger <vapier@gentoo.org>
2430 * hw-ports.c (TRACE): Delete.
2431 * hw-properties.c (TRACE): Delete.
2432 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
2433 (hw_find_integer_property): Likewise.
2434 (hw_find_integer_array_property): Likewise.
2435 (hw_add_duplicate_property): Likewise.
2437 2010-03-15 Mike Frysinger <vapier@gentoo.org>
2439 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
2442 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2444 * sim-model.c: Include sim-model.h
2446 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2448 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
2449 & from the STATE_CPU() examples.
2451 2010-01-24 Doug Evans <dje@sebabeach.org>
2453 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
2454 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
2456 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
2457 (struct cgen_fp_ops): Update signatures of floating point conversion
2460 * Make-common.in (CGEN_SIM_DEPS): Define.
2461 (CGEN_INCLUDE_DEPS): Use it.
2462 (CGEN_MAIN_CPU_DEPS): Simplify.
2464 2010-01-22 Doug Evans <dje@sebabeach.org>
2466 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
2467 (SUBWORDTFSI, JOINSIDI): Ditto.
2469 2010-01-05 Doug Evans <dje@sebabeach.org>
2471 * cgen-types.h (SETDI): Delete, unused.
2473 2009-12-02 Doug Evans <dje@sebabeach.org>
2475 * cgen-engine.h: Remove duplicated comment.
2477 2009-11-23 Doug Evans <dje@sebabeach.org>
2479 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
2480 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
2482 2009-11-22 Doug Evans <dje@sebabeach.org>
2484 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
2485 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
2486 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
2487 instead of CGEN_INSN_INT.
2489 * cgen-trace.h (trace_extract): Add cast to fix warning.
2491 2009-11-05 Doug Evans <dje@sebabeach.org>
2493 * cgen-mem.h (DECLARE_GETT): Don't inline.
2494 (DECLARE_SETT): Ditto.
2496 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
2498 * sim-inline.h: Fix spelling error.
2500 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
2502 * Make-common.in: Add datarootdir.
2504 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2506 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
2507 (SIM_CHECK_MEMBERS_1): Remove.
2508 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
2509 AC_CHECK_MEMBERS one.
2510 * configure: Regenerate.
2512 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
2513 * configure: Regenerate.
2515 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2517 * config.in: Regenerate.
2518 * configure: Likewise.
2520 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
2521 definition of AC_CHECK_MEMBER.
2523 * aclocal.m4: m4_include toplevel config/override.m4.
2524 * configure: Regenerate.
2526 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2528 * Makefile.in (datarootdir): New variable.
2530 2009-07-07 Doug Evans <dje@sebabeach.org>
2532 * Make-common.in (CPU_DIR): Define.
2534 2009-07-06 Doug Evans <dje@sebabeach.org>
2536 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
2537 identifiers for file types rather than encoding internal
2538 implementation details of cgen.sh.
2539 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
2540 * cgen.sh: Add support for parallel makes.
2541 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2543 2009-05-18 Jon Beniston <jon@beniston.com>
2545 * gennltvals.sh: Add lm32 target.
2546 * nltvals.def: Add lm32 syscall definitions.
2548 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
2550 Speed up simulator startup:
2551 * sim-utils.c (zalloc): Use xcalloc.
2553 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
2555 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
2556 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
2557 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
2558 variant; UQI, UHI, USI, UDI, and cast the result to the signed
2559 type, QI, HI, SI, DI.
2561 * callback.c (os_error): Mark as being a noreturn function.
2562 * sim-io.h (sim_io_error): Similar for sim_io_error.
2564 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2566 * aclocal.m4: Fix underquoting of function names.
2568 2008-10-21 Julian Brown <julian@codesourcery.com>
2570 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
2572 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
2574 * common.m4: Add test for libz and zlib.h.
2575 * configure: Regenerate to track ../common/common.m4 changes.
2578 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
2579 Daniel Jacobowitz <dan@codesourcery.com>
2580 Joseph Myers <joseph@codesourcery.com>
2582 * aclocal.m4: Include ../../config/acx.m4.
2583 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
2584 * configure, config.in: Regenerate.
2585 * Make-common.in (LIB_OBJS): Add version.o.
2586 (version.c, version.o): New rules.
2587 * run.c: Include version.h.
2588 (usage): Add help parameter. Print output either to stdout or
2589 stderr depending on that parameter.
2590 (print_version): New.
2591 (main): Check for --help and --version.
2592 * run-sim.h (sim_target_display_usage): Add help parameter.
2595 2008-04-14 Hans Kester <kester.hans@gmail.com>
2597 * sim-signal.c: Define missing signals for _WIN32.
2599 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
2601 * gennltvals.sh: Add cr16.
2602 * nltvals.def: Rebuild.
2604 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
2606 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
2607 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2609 2007-08-10 Nick Clifton <nickc@redhat.com>
2611 * sim-memopt.c (memory_options): Mention that the
2612 --memory-size switch accepts suffixes.
2613 (parse_size): Handle a suffix on the size value.
2614 * sim-options.c (standard_options): Mention that the mem-size
2615 switch accepts suffixes.
2616 (standard_option_handler): Handle a suffix on the size value.
2618 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
2620 * acconfig.h: Remove.
2621 * config.in: Regenerate.
2623 2006-11-07 Thiemo Seufer <ths@mips.com>
2625 * gentmap.c: Fix compile time warning.
2627 2006-11-07 Thiemo Seufer <ths@mips.com>
2629 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
2630 for bfd text addresses.
2632 2006-08-29 Thiemo Seufer <ths@mips.com>
2633 Nigel Stephens <nigel@mips.com>
2635 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
2636 SIM_QUIET_NAN_NEGATED.
2638 2006-08-29 Nigel Stephens <nigel@mips.com>
2640 * sim-profile.c (profile_pc_init): Initialise default profiling
2641 frequency to a prime number.
2642 (profile_print_pc): Convert gmon.out sample data into target
2645 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
2647 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
2648 * common.m4: Likewise.
2649 * configure: Regenerated.
2651 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2653 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
2654 * configure: Regenerated.
2656 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2658 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
2659 and LIBINTL_DEP everywhere.
2660 (CSEARCH): Use INCINTL.
2661 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
2663 * configure: Regenerated.
2665 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
2667 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
2668 option-contents test.
2670 2005-11-28 Mark Mitchell <mark@codesourcery.com>
2672 * sim-signal.c (sim_signal_to_target): Fix typos.
2674 * sim-reason.c (sim_stop_reason): Use
2675 sim_signal_to_target, not sim_signal_to_host.
2676 * sim-signal.c (sim_signal_to_host): Fix typo.
2677 (sim_signal_to_target): New function.
2679 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
2681 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
2684 2005-07-08 Ian Lance Taylor <ian@airs.com>
2686 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
2688 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
2689 different fraction for a quiet NaN.
2690 (unpack_fpu): Likewise.
2692 2005-07-08 Ben Elliston <bje@au.ibm.com>
2694 * callback.c: Remove ANSI_PROTOTYPES conditional code.
2695 * sim-load.c: Likewise.
2696 * syscall.c: Likewise.
2698 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
2700 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
2703 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2705 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
2707 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
2709 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
2710 and signed64 for __ALPHA__.
2712 2005-03-23 Mark Kettenis <kettenis@gnu.org>
2714 * aclocal.m4 Include ../../gettext.m4.
2715 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
2716 (AM_LC_MESSAGES): Remove.
2717 * configure: Regenerate.
2719 2005-02-28 Jim Blandy <jimb@redhat.com>
2721 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
2722 -Wuninitialized in the default list of build warnings if CFLAGS is
2723 set, and doesn't include -O. (Using -Wuninitialized without
2724 optimization produces a warning, which interferes with compilation
2727 2005-02-21 Jim Blandy <jimb@redhat.com>
2729 * callback.c (os_fstat): Don't declare 't' unless it's used.
2731 2005-02-09 Jim Blandy <jimb@redhat.com>
2733 * Make-common.in (CGEN): Load guile.scm, and include a trailing
2735 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
2736 to $(CGEN), to ensure that the command substitution happens where
2737 the variable is referenced in the submake, not when the submake's
2738 arguments are expanded.
2739 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
2740 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
2741 application Scheme script directly after ${cgen}; don't precede it
2744 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
2746 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
2747 * callback.c [HAVE_LIMITS_H]: Include limits.h.
2748 Include libiberty.h.
2749 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
2750 being either end of a pipe.
2751 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
2752 (os_shutdown): Clear pipe state.
2753 (default_callback): Initialize new members.
2755 * callback.c (default_callback): Initialize target_endian.
2756 (cb_store_target_endian): Renamed from store, new first parameter
2757 host_callback *cb, drop last parameter big_p. Take endianness
2759 (cb_host_to_target_stat): Change to use cb_store_target_endian.
2760 Remove variable big_p.
2761 * nrun.c (main): Initialize default_callback.target_endian.
2763 2005-01-14 Andrew Cagney <cagney@gnu.org>
2765 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
2766 Add explicit call to AC_CONFIG_HEADER.
2767 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
2768 * configure: Re-generate.
2770 2005-01-12 Andrew Cagney <cagney@gnu.org>
2772 * common.m4: New file, based on of aclocal.m4.
2774 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
2776 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
2777 * configure: Regenerated to track ../common/aclocal.m4 changes.
2779 2005-01-07 Andrew Cagney <cagney@gnu.org>
2781 * configure.ac: Rename configure.in, require autoconf 2.59.
2782 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
2783 * configure: Re-generate.
2785 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
2787 * syscall.c (cb_syscall) <case CB_SYS_truncate>
2788 <case CB_SYS_ftruncate>: New cases.
2790 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
2792 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
2793 (cb_syscall) <case CB_SYS_rename>: New case.
2794 * callback.c (os_lstat): New function.
2796 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
2798 * run.1: Document --sysroot=filepath.
2799 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
2800 (standard_options): Support --sysroot=<path>.
2801 (standard_option_handler): Handle OPTION_SYSROOT.
2802 * syscall.c (simulator_sysroot): Define, initialized empty.
2803 (get_path): Prepend simulator_sysroot to absolute file path.
2804 [HAVE_STRING_H]: Include string.h.
2805 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
2806 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
2807 (main): If simulator_sysroot is not empty, chdir there.
2808 * sim-config.h (simulator_sysroot): Declare.
2810 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
2811 cgen_rtx_error" in a CGEN-generated simulator.
2812 * gdbinit.in: Break on sim_core_signal too. Have autoconf
2813 replacement for CGEN-related breakpoints.
2815 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
2817 * Make-common.in (sim-basics_h): Add $(callback_h).
2819 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
2821 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
2822 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
2823 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
2824 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
2825 (SIM_CHECK_MEMBERS): New macros.
2826 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
2827 for struct stat member test and write. Add ST_x calls for each
2828 struct stat member tested in configure.in. Wrap each ST_x call in
2829 #ifdef of configure macro for that member.
2830 * configure, config.in: Regenerate.
2832 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
2834 * cgen.sh: New thirteenth parameter opcfile, defaulting to
2836 <case desc>: Pass -OPC opcfile.
2837 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
2838 parameter to cgen.sh.
2840 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
2842 * Make-common.in (sim-basics_h): Correct dependencies on
2843 cconfig.h and tconfig.h
2844 (sim-load.o): Correct typo in sim-basics_h dependency.
2846 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
2848 * Make-common.in (sim-*_h): Add macros for all sim headers listing
2849 sub-dependencies for other sim files that they include.
2850 (sim_main_headers): Use sim-*_h macros.
2851 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2853 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
2855 * sim-config.c (sim_config): Recognize when a bfd has unspecified
2858 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
2859 $(remote_sim_h) too.
2860 (sim_main_headers): Add sim-utils.h.
2862 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2864 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2866 2004-07-26 Andrew Cagney <cagney@gnu.org>
2868 Problem from Olaf Hering <olh@suse.de>.
2869 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2871 2004-07-10 Ben Elliston <bje@au.ibm.com>
2873 * hw-tree.c (parse_integer_property): Typo fix in comments.
2874 * sim-options.c (sim_args_command): Likewise.
2876 2004-06-28 Andrew Cagney <cagney@gnu.org>
2878 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2880 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2882 * callback.c (os_shutdown): Fix bug in last change: actually
2883 mark file descriptors as available on startup.
2885 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
2887 [ include/gdb: * callback.h (host_callback_struct): Replace
2888 members fdopen and alwaysopen with fd_buddy. ]
2889 * callback.c: Changed all users.
2891 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2893 * sim-load.c (sim_load_file): Use bfd_get_section_size
2894 instead of bfd_get_section_size_before_reloc.
2896 2004-05-18 Daniel Jacobowitz <dan@debian.org>
2898 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
2899 passing it to printf.
2901 2004-05-10 Daniel Jacobowitz <dan@debian.org>
2903 * callback.c: Update copyright dates.
2905 * sim-basics.h: Likewise.
2906 * sim-load.c: Likewise.
2907 * syscall.c: Likewise.
2909 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2911 * callback.c: Include cconfig.h instead of config.h.
2913 * sim-basics.h: Likewise.
2914 * sim-load.c: Likewise.
2915 * syscall.c: Likewise.
2917 2004-01-16 Ben Elliston <bje@wasabisystems.com>
2919 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2921 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2923 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2925 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2927 * sim-options.c (standard_options): Fix the names of H8
2930 2003-10-30 Andrew Cagney <cagney@redhat.com>
2932 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
2933 with "struct bfd_symbol".
2935 2003-10-21 Andrew Cagney <cagney@redhat.com>
2937 * callback.c (os_truncate): Call "truncate", and not "stat".
2939 2003-10-20 Andrew Cagney <cagney@redhat.com>
2941 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2943 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2945 * callback.c (os_ftruncate, os_truncate): New functions.
2946 (default_callback): Initialize ftruncate and truncate members.
2948 2003-09-08 Dave Brolley <brolley@redhat.com>
2950 On behalf of Doug Evans <dje@sebabeach.org>
2951 * cgen.sh: New arg archfile.
2952 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2953 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2955 2003-08-28 Andrew Cagney <cagney@redhat.com>
2957 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2958 * sim-options.c (print_help): Cast the format with specifier to
2961 2003-08-20 Michael Snyder <msnyder@redhat.com>
2962 Dave Brolley <brolley@redhat.com>
2964 * cgen-par.h (flags, word1): New target-specific
2965 fields of CGEN_WRITE_QUEUE_ELEMENT.
2966 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2967 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2968 * gennltvals.sh: Add frv target.
2969 * nltvals.def: Add frv target.
2971 2003-06-23 Michael Snyder <msnyder@redhat.com>
2973 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2974 * sim-reg.c: Fix cut-and-paste bug in comment.
2976 2003-06-22 Andrew Cagney <cagney@redhat.com>
2978 From matthew green <mrg@redhat.com>:
2979 * sim-fpu.h: Update copyright.
2980 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2981 * sim-fpu.c: Update copyright.
2982 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2984 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2986 From Doug Evans <dje@sebabeach.org>:
2987 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2988 with disassemble_info:read_memory_func.
2989 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2991 2003-06-04 Michael Snyder <msnyder@redhat.com>
2993 * common/run.c (main): Remove SIM_H8300 ifdef.
2995 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2996 (standard_options): Add '-x' for h8/300sx.
2997 (standard_option_handler): Add case for SIM_H8300SX.
2999 2003-04-13 Michael Snyder <msnyder@redhat.com>
3001 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
3003 2003-03-01 Andrew Cagney <cagney@redhat.com>
3005 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
3006 (sim_engine_vabort): Ditto.
3008 2003-02-27 Andrew Cagney <cagney@redhat.com>
3010 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
3011 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
3012 * nrun.c (main): Ditto.
3014 2003-02-26 Andrew Cagney <cagney@redhat.com>
3016 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
3017 (sim_engine_vabort): Ditto.
3018 (sim_engine_halt, sim_engine_restart): Ditto.
3020 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3022 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
3023 (sim-break_h): Delete macro.
3024 (sim-break.o): Delete rule.
3025 * sim-break.c: Delete file.
3026 * sim-break.h: Delete file.
3027 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
3028 (STATE_BREAKPOINTS): Delete macro.
3029 (sim_state_base): Delete field breakpoints.
3030 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
3031 sim_break_install to array.
3033 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3035 * run.c (usage): Fix typos.
3037 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
3039 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
3041 2002-11-22 Andrew Cagney <ac131313@redhat.com>
3043 * dv-core.c: Update copyright. sim/common contributed to the FSF.
3044 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
3045 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
3046 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
3047 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
3048 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
3049 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
3050 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
3051 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
3052 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
3054 2002-11-13 Andrew Cagney <cagney@redhat.com>
3056 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
3058 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
3060 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
3061 (distclean): Depend on it.
3063 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3065 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
3067 2002-08-29 Dave Brolley <brolley@redhat.com>
3069 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
3071 2002-07-17 Andrew Cagney <cagney@redhat.com>
3073 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
3074 (sim_set_callbacks, sim_size, sim_trace)
3075 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
3076 to here from "gdb/remote-sim.h".
3078 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3080 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
3081 avoid possible longjmp problems with automatic variable siggnal.
3083 2002-07-14 Andrew Cagney <ac131313@redhat.com>
3085 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
3086 * Make-common.in (installdirs): Make $(libdir) too, needed when
3087 installing libsim.a.
3089 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3091 * gennltvals.sh (dir): Mark d30v as obsolete.
3092 * nltvals.def: Remove d30v.
3094 2002-06-17 Andrew Cagney <cagney@redhat.com>
3096 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
3098 * sim-memopt.c: Include <unistd.h>.
3099 (do_memopt_add): Fix printf format.
3100 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
3102 2002-06-16 Andrew Cagney <ac131313@redhat.com>
3104 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
3105 --enable-gdb-build-warnings.
3106 * configure: Regenerated to track ../common/aclocal.m4 changes.
3108 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3110 * sim-fpu.c (unpack_fpu): Initialize exponent for
3113 (sim_fpu_sqrt): Same.
3115 2002-06-08 Andrew Cagney <cagney@redhat.com>
3117 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
3118 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
3120 * sim-load.c: Ditto.
3121 * callback.c: Ditto.
3123 * Make-common.in (callback_h): Define.
3124 (remote_sim_h): Define.
3126 (callback.o): Update.
3127 (syscall.o): Update.
3130 (sim-hload.o): Update.
3132 (sim-reason.o): Update.
3133 (sim-reg.o): Update.
3134 (sim-resume.o): Update.
3136 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
3138 * run.c: Fix formatting.
3140 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3142 * run-sim.h: New header. Provide prototypes for functions used
3143 between run() and libsim.a which are not used by GDB.
3144 * run.c: Include run-sim.h.
3145 (main): If SIM_TARGET_SWITCHES is defined call
3146 sim_target_parse_command_line.
3147 (usage): If SIM_TARGET_SWITCHES is defined call
3148 sim_target_display_usage.
3150 2002-05-17 Andrey Volkov <avolkov@transas.com>
3152 * run.c: Made h8300s as new target, not h8300h alias.
3153 Added new option -S (h8300s target)
3154 * sim-options.c: Ditto.
3156 2002-05-01 Chris Demetriou <cgd@broadcom.com>
3158 * callback.c: Use 'deprecated' rather than 'depreciated.'
3160 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3162 From wiz at danbala:
3163 * sim-fpu.h: Fix grammar and typos.
3166 2002-02-10 Chris Demetriou <cgd@broadcom.com>
3168 * callback.c: Fix some spelling errors.
3169 * hw-device.h: Likewise.
3170 * hw-tree.c: Likewise.
3171 * sim-abort.c: Likewise.
3172 * sim-alu.h: Likewise.
3173 * sim-core.h: Likewise.
3174 * sim-events.c: Likewise.
3175 * sim-events.h: Likewise.
3176 * sim-fpu.h: Likewise.
3177 * sim-profile.h: Likewise.
3178 * sim-utils.c: Likewise.
3180 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
3182 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
3185 2002-01-20 Ben Elliston <bje@redhat.com>
3187 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
3188 the comment for this enumerator.
3190 2002-01-14 Ben Elliston <bje@redhat.com>
3192 * sim-fpu.h: Fix comment about sim_fpu_* constants.
3194 2001-12-20 Kazu Hirata <kazu@hxi.com>
3196 * run.c (usage): Fix a typo.
3198 2001-07-05 Ben Elliston <bje@redhat.com>
3200 * Make-common.in (srccgen): Remove.
3201 (CGEN_CPU_DIR): Define.
3202 (CGEN_READ_SCM): Redefine without $(srccgen).
3203 (CGEN_ARCH_SCM): Ditto.
3204 (CGEN_CPU_SCM): Ditto.
3205 (CGEN_DECODE_SCM): Ditto.
3206 (CGEN_DESC_SCM): Ditto.
3208 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3210 * sim-load.c (sim_load_file): Put it back: external now.
3211 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
3213 2001-04-21 Andrew Cagney <ac131313@redhat.com>
3215 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
3217 * sim-utils.c (sim_analyze_program): Ditto.
3219 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
3221 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
3222 we're finished with its immediate use.
3223 * sim-load.c (sim_load_file): Ditto.
3225 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
3227 Add support for mmap-based memory regions.
3228 * sim-memopt.c (mmap_next_fd): New global.
3229 (sim_memory_init): Reinitialize it.
3230 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
3231 "--memory-mapfile FILE" option. Check for some errors.
3232 (do_memopt_add): Conditionally do mmap instead of malloc for
3233 backing store of simulated memory. Check for more errors.
3234 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
3235 * sim-memopt.h (munmap_length): New member of _sim_memopt.
3236 * configure.in: Look for mmap/fstat related functions and headers.
3237 * config.in, configure: Regenerated.
3239 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
3241 * sim-core.c (sim_core_map_attach): Correct overlap-related
3244 2001-03-07 Michael Meissner <meissner@redhat.com>
3246 * run.c (alloca-conf.h): Delete, no longer provided.
3248 2001-02-22 Ben Elliston <bje@redhat.com>
3250 * sim-trace.h (TRACE_VPU_IDX): Add.
3251 (TRACE_vpu): Define.
3252 (WITH_TRACE_VPU_P): Likewise.
3253 (TRACE_VPU_P): Likewise.
3254 * sim-trace.c (OPTION_TRACE_VPU): Define.
3255 (trace_options): Add --trace-vpu.
3256 (trace_option_handler): Handle OPTION_TRACE_VPU.
3257 (trace_option_handler): Include VPU tracing in --trace-semantics.
3258 (trace_idx_to_str): Handle TRACE_VPU_IDX.
3260 2001-02-21 Ben Elliston <bje@redhat.com>
3262 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
3263 (TRACE_BRANCH_INPUT2): Likewise.
3265 2001-02-09 Ben Elliston <bje@redhat.com>
3267 * (profile_print_pc): Write header out in target byte order.
3269 2001-02-09 Ben Elliston <bje@redhat.com>
3271 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
3272 adjusting the pc shift value.
3274 2001-01-12 Chris Demetriou <cgd@sibyte.com>
3276 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
3277 where a numeric value is supplied.
3279 2001-01-06 Ben Elliston <bje@redhat.com>
3281 * cgen.sh: Allow extrafiles to include the semantics files when
3282 generating an ISA-specific decoder.
3284 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
3286 * Make-common.in (sim-io.o): Depend on targ-vals.h.
3288 2000-12-23 Ben Elliston <bje@redhat.com>
3290 * cgen-trace.c (trace_result): Handle 'f' type operands; output
3291 them to the trace stream using sim_fpu_printn_fpu. Include
3294 2000-12-15 Ben Elliston <bje@redhat.com>
3296 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
3297 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
3298 trailing digits as specified (-1 to print all digits).
3299 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
3300 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
3303 2000-12-13 Ben Elliston <bje@redhat.com>
3305 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
3306 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
3309 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3311 * sim-endian.h: Don't have parameters on macro definitions which
3312 are simply renaming functions, to permit use of XCONCAT2 in both
3313 the macro name and the arguments in a use of such a definition.
3315 2000-12-11 Ben Elliston <bje@redhat.com>
3317 * cgen-ops.h (SUBWORDDFDI): New function.
3319 2000-12-05 Ben Elliston <bje@redhat.com>
3321 * Make-common.in (cgen-defs): New target.
3322 (cgen-decode): Pass $(EXTRAFILES).
3324 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
3325 -outfile-suffix options.
3327 2000-12-04 Ben Elliston <bje@redhat.com>
3329 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
3330 (SUBWORDSIUQI): Likewise.
3331 (SUBWORDDIHI): Likewise.
3332 (SUBWORDDIQI): New function.
3334 * cgen-trace.c (disassemble_insn): Remove unused declaration.
3335 * cgen-scache.c (scache_option_handler): Remove unused local var.
3337 2000-12-03 Ben Elliston <bje@redhat.com>
3339 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
3341 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3343 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
3345 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3347 * dv-core.c (dv_core_attach_address_callback): Don't abort if
3350 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3352 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
3353 (set_hw_delete): Moved the macro as a function.
3354 * hw-base.h (set_hw_delete): Declare as external function.
3355 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
3356 allocated using hw_malloc.
3358 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3360 * sim-options.c (sim_parse_args): Free the memory used for
3361 long_options, short_options, handlers, opt_cpu, orig_val.
3363 2000-11-20 Ben Elliston <bje@redhat.com>
3365 * cgen-ops.h (SUBBI): New macro.
3366 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
3367 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
3369 2000-11-16 Ben Elliston <bje@redhat.com>
3371 * cgen-types.h (VOID): New type.
3373 2000-11-09 Ben Elliston <bje@redhat.com>
3375 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
3376 (sim_fpu_two): Set exponent to 1.
3378 2000-10-26 Ben Elliston <bje@redhat.com>
3380 * cgen.sh: Handle an isa argument between cpu and mach. Default to
3381 `all'. Pass `-i' options to cgen applications.
3382 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
3383 cgen-desc): Pass $(isa) to cgen.sh.
3385 2000-10-08 Ben Elliston <bje@redhat.com>
3387 * cgen-utils.c (cgen_rtx_error): New function.
3389 2000-10-07 Ben Elliston <bje@redhat.com>
3391 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
3392 conditions for sim_core_read_buffer().
3394 2000-09-26 Dave Brolley <brolley@redhat.com>
3396 * cgen-utils.c (RORQI): New function.
3397 (ROLQI): New function.
3398 (RORHI): New function.
3399 (ROLHI): New function.
3401 2000-08-28 Dave Brolley <brolley@redhat.com>
3403 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
3404 in insn_value if it will fit.
3406 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
3408 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
3410 2000-08-15 Dave Brolley <brolley@redhat.com>
3412 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
3414 2000-08-15 Dave Brolley <brolley@redhat.com>
3416 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
3417 (PROFILE_CPU_FREQ): New macro.
3418 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
3419 (profile-options): Add profile-cpu-frequency.
3420 (parse_frequency): New function.
3421 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
3422 (profile_print_speed): Print cpu frequency and simulated execution time.
3423 Re-indent other items to match.
3425 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
3427 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
3429 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
3431 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3432 * Makefile.in (install): Install run.1 man page.
3434 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
3436 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
3437 * Makefile.in (headers,nltvals.def): Merge.
3439 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
3441 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3442 * nrun.c (main): Print the simulator statistics only in
3444 * hw-properties.h (hw_find_integer_array_property): Fix
3445 prototype (use signed_cell).
3447 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3448 * sim-events.c (sim_events_remain_time): New function returning
3449 the time that remains before the event is raised.
3450 * hw-events.c (hw_event_remain_time): Likewise.
3451 * sim-events.h (sim_events_remain_time): Declare.
3452 * hw-events.h (hw_event_remain_time): Declare.
3454 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3455 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
3456 (OPTION_HW_LIST): New option --hw-list to list the devices.
3457 (hw_option_handler): List the device tree with 'sim_hw_print'.
3459 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3460 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
3461 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
3462 (EXTENDED): Define for 16-bit word size.
3463 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
3464 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
3465 * sim-types.h: Added support for 16-bit targets.
3467 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
3469 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
3471 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
3473 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
3474 * Makefile.in (distclean): Clean cconfig.h also.
3476 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
3478 * configure: Regenerated to track ../common/aclocal.m4 changes.
3480 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
3482 * aclocal.m4 (sim-profile): Enable the profiler by default.
3484 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
3486 * run.c (main): Initialize sigrc.
3488 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
3490 * sim-events.c (update_time_from_event): Add more detailed event
3493 2000-03-30 Dave Brolley <brolley@redhat.com>
3495 * aclocal.m4 (cgen): Use guile to run cgen.
3497 2000-03-23 Dave Brolley <brolley@redhat.com>
3499 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
3501 * cgen-accfp.c (fextsfdf): New function.
3502 (ftruncdfsf): New function.
3503 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
3505 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
3507 * cgen-ops.h: Added TRUNCSISI.
3509 2000-03-08 Dave Brolley <brolley@redhat.com>
3511 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
3512 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
3513 (sim_queue_fn_si_write): Last argument is has type USI.
3514 (sim_queue_fn_sf_write): New function.
3515 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
3516 (sim_queue_fn_sf_write): New function.
3517 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
3519 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
3521 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
3522 sim_set_trace and run simulator using sim_resume.
3523 (main): Add option ``-o'' - operating environment. Only continue
3524 after a signal when operating environment.
3525 (main): Always set REASON and SIGRC using sim_stop_reason.
3526 (sim_trace): Delete extern declaration.
3528 2000-02-08 Nick Clifton <nickc@cygnus.com>
3530 * callback.c: Fix compile time warning messages.
3531 * run.c: Fix compile time warning messages.
3533 1999-12-17 Dave Brolley <brolley@cygnus.com>
3535 * sim-profile.h: (set_profile_option_mask): Add prototype.
3536 * sim-profile.c (set_profile_option_mask): No longer static.
3538 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3540 * sim-arange.c: Include <string.h>
3542 1999-12-07 Dave Brolley <brolley@cygnus.com>
3544 * sim-options.c (print_help): '=' required before optional argument.
3545 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
3546 (CGEN_FN_MEM_HI_WRITE): New enumerator.
3547 (CGEN_FN_MEM_SI_WRITE): New enumerator.
3548 (CGEN_FN_MEM_DI_WRITE): New enumerator.
3549 (CGEN_FN_MEM_DF_WRITE): New enumerator.
3550 (CGEN_FN_MEM_XI_WRITE): New enumerator.
3551 (fn_mem_qi_write): New union members.
3552 (fn_mem_hi_write): New union members.
3553 (fn_mem_si_write): New union members.
3554 (fn_mem_di_write): New union members.
3555 (fn_mem_df_write): New union members.
3556 (fn_mem_xi_write): New union members.
3557 (sim_queue_fn_mem_qi_write): New function.
3558 (sim_queue_fn_mem_hi_write): New function.
3559 (sim_queue_fn_mem_si_write): New function.
3560 (sim_queue_fn_mem_di_write): New function.
3561 (sim_queue_fn_mem_df_write): New function.
3562 (sim_queue_fn_mem_xi_write): New function.
3563 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
3564 (sim_queue_fn_mem_hi_write): New function.
3565 (sim_queue_fn_mem_si_write): New function.
3566 (sim_queue_fn_mem_di_write): New function.
3567 (sim_queue_fn_mem_df_write): New function.
3568 (sim_queue_fn_mem_xi_write): New function.
3569 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
3570 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
3571 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
3573 1999-12-01 Dave Brolley <brolley@cygnus.com>
3575 * cgen-accfp.c (subsf): Check status code.
3593 1999-11-26 Dave Brolley <brolley@cygnus.com>
3595 * cgen-par.h (fn_df_write): Mode of data is DF.
3596 (sim_queue_fn_df_write): Mode of data is DF.
3597 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
3599 1999-11-22 Dave Brolley <brolley@cygnus.com>
3601 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
3602 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
3604 1999-11-04 Dave Brolley <brolley@cygnus.com>
3606 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
3607 CGEN_MEM_XI_WRITE members.
3608 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
3609 (sim_queue_fn_xi_write): New function.
3610 (sim_queue_mem_xi_write): New function.
3612 * cgen-par.c (sim_queue_fn_xi_write): New function.
3613 (sim_queue_mem_xi_write): New function.
3614 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
3617 1999-10-22 Dave Brolley <brolley@cygnus.com>
3619 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
3620 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
3621 * cgen-par.c: Set insn_address for each queued write. Get pc from
3622 cpu when executing queued writes.
3624 1999-10-19 Dave Brolley <brolley@cygnus.com>
3626 * cgen-par.h (sim_queue_fn_pc_write): New function.
3627 (CGEN_FN_PC_WRITE): New enumerator.
3628 (fn_pc_write): New union member.
3629 * cgen-par.c (sim_queue_fn_pc_write): New function.
3630 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
3632 1999-10-18 Dave Brolley <brolley@cygnus.com>
3634 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
3635 (CGEN_MEM_DF_WRITE): New enumerator.
3636 (mem_di_write): New union member.
3637 (mem_df_write): New union member.
3638 * cgen-par.c (sim_queue_mem_di_write): New function.
3639 (sim_queue_mem_df_write): New function.
3640 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
3642 * cgen-accfp.c (divsf): Check for division errors.
3644 1999-10-14 Doug Evans <devans@casey.cygnus.com>
3646 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
3648 1999-10-07 Dave Brolley <brolley@cygnus.com>
3650 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
3651 (fn_hi_write): New union member.
3652 (sim_queue_fn_hi_write): New function.
3653 * cgen-par.c (sim_queue_fn_hi_write): New function.
3654 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
3656 1999-09-29 Doug Evans <devans@casey.cygnus.com>
3658 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
3659 Change type of result to SEM_PC.
3661 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
3663 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
3665 1999-09-25 Doug Evans <devans@casey.cygnus.com>
3667 * cgen-ops.h (SUBWORD*): Delete cpu arg.
3668 (JOIN*): Delete cpu arg.
3670 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
3672 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
3674 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
3676 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
3678 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
3681 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
3683 * run.c (main): Check the sim_stop_reason and only halt simulation
3684 when a valid stop condition is identified.
3686 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3688 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
3690 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
3692 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
3693 (bi_write): New union element.
3694 (sim_queue_bi_write): New function.
3695 * cgen-par.c (sim_queue_bi_write): New function.
3696 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
3698 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3700 * configure: Regenerated to track ../common/aclocal.m4 changes.
3702 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
3703 ../gdb/configure.in.
3704 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
3705 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
3706 (SIM_WARNINGS): Delete
3707 (CONFIG_CFLAGS): Update.
3709 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
3711 * cgen-par.c: New file.
3712 * cgen-par.h: New file.
3713 * cgen-sim.h (cgen-par.h): #include it.
3714 * cgen-cpu.h (write_queue): New field.
3715 (CPU_WRITE_QUEUE): New access macro.
3716 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
3717 (cgen-par.o): New target.
3719 1999-08-28 Doug Evans <devans@casey.cygnus.com>
3721 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
3722 * cgen-utils.c (mode_names): Update.
3724 1999-08-20 Doug Evans <devans@casey.cygnus.com>
3726 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
3727 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
3728 buffer arg if WITH_PARALLEL_GENWRITE.
3729 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
3730 (struct idesc): Ditto.
3732 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
3734 * sim-model.c (model_option_handler): Add \n to error message.
3736 1999-08-08 Doug Evans <devans@casey.cygnus.com>
3738 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
3739 (insn_sem): Rewrite.
3740 (sem_fn_desc): New struct.
3742 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
3744 (scache case): Split into non-parallel/parallel versions.
3745 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
3746 if not use semantic switch version.
3748 1999-08-04 Doug Evans <devans@casey.cygnus.com>
3750 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
3751 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
3752 (SEM_BRANCH_INIT_EXTRACT): Delete.
3753 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
3754 (SEM_BRANCH_FINI): Ditto.
3755 (SEM_BRANCH_VIA_ADDR): Ditto.
3756 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
3757 (SEM_BRANCH_ADDR_CACHE): Delete.
3758 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
3759 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
3761 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
3762 (@cpu@_pbb_begin): Initialize branch_target.
3763 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
3764 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
3766 (@cpu@_engine_run_fast): Ditto.
3768 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
3770 * cgen-utils.c (RORSI): New function.
3771 (ROLSI): New function.
3773 1999-07-14 Doug Evans <devans@casey.cygnus.com>
3775 * Makefile.in (TAGS): Tweak TAGS regex.
3776 * cgen-mem.h (*): Add TAGS markers.
3778 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
3780 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
3781 passed in when sim_resume is first entered - don't re-pass it
3784 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3786 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
3787 OPTION_LOAD_LMA but only when is defined.
3788 (standard_options): When SIM_HANDLES_LMA is defined include
3789 options --load-lma and --load-vma.
3790 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
3792 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
3793 (struct sim_state_base): Add load_at_lma_p.
3794 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
3795 STATE_LOAD_AT_LMA_P.
3797 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3799 * nrun.c (main): Re-format loop gnu style.
3801 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
3803 * dv-sockser.c (connected_p): Initialize addrlen.
3805 1999-07-06 Dave Brolley <brolley@cygnus.com>
3807 * cgen-accfp.c (floatsidf): New function.
3808 (fixdfsi): New function.
3810 1999-07-06 Doug Evans <devans@casey.cygnus.com>
3812 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
3814 1999-07-05 Doug Evans <devans@casey.cygnus.com>
3816 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
3817 (cgen-fpu.o,cgen-accfp.o): Add rules for.
3818 * cgen-fpu.c: New file.
3819 * cgen-fpu.h: New file.
3820 * cgen-accfp.c: New file.
3821 * cgen-cpu.h (CGEN_CPU): New member fpu.
3822 * cgen-mem.h: Redo fp support.
3823 * cgen-ops.h: Delete k&r support. Redo fp support.
3824 * cgen-sim.h: Include cgen-fpu.h.
3825 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
3827 1999-06-23 Doug Evans <devans@casey.cygnus.com>
3829 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
3831 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
3832 (@cpu@_pbb_cti_chain): Minor clean up.
3834 1999-05-08 Felix Lee <flee@cygnus.com>
3836 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
3837 AM_CYGWIN32 and AM_EXEEXT.
3838 * configure: Regenerate.
3840 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
3842 * sim-core.c (device_error,device_io_read_buffer,
3843 device_io_write_buffer): Delete decls.
3844 * sim-core.h: Put them here.
3846 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
3847 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
3848 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
3849 (sim_core_write_aligned_N): Ditto.
3851 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
3853 * sim-memopt.c (sim_memory_uninstall): Don't look into
3856 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3858 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
3860 1999-04-13 Doug Evans <devans@casey.cygnus.com>
3862 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
3863 (sim_core_write_buffer): Ditto.
3865 1999-04-02 Keith Seitz <keiths@cygnus.com>
3867 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
3868 after the interval counter has expired.
3869 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
3870 poll_quit callbacks. May be overridden by Makefile.
3871 (poll_quit_counter): New global.
3872 * sim-events.c: Remove all mentions of ui_loop_hook. The
3873 host callback "poll_quit" will serve the purpose.
3874 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3876 * nrun.c: Remove declaration of ui_loop_hook.
3878 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3880 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3881 if being used by gdb.
3883 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3885 * cgen-types.h (XF,TF): Tweak.
3886 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
3888 (SUBWORD*,JOIN*): Define.
3889 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
3890 moved into cpu descriptor.
3891 * sim-model.h (MACH): New member `num'.
3893 1999-02-09 Doug Evans <devans@casey.cygnus.com>
3895 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
3896 (CGEN_CPU): Member opcode renamed to cpu_desc.
3897 New members get_idata,disassembler.
3898 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
3899 CGEN_INSN_ATTR_VALUE.
3900 (CGEN_STATE): Delete member opcode_table.
3901 (sim_disassemble_insn): Delete decl.
3902 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
3903 (struct idesc): Moved to here from <cpu>-decode.h.
3904 * cgen-run.c (prime_cpu): Call prepare_run callback.
3905 * cgen-trace.h (SFILE): New type.
3906 (sim_disasm_sprintf): Declare.
3907 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
3908 (sim_cgen_disassemble_insn): Declare.
3909 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
3910 (insn_fields): Delete.
3911 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
3913 (trace_insn): Call CPU_DISASSEMBLER hook.
3914 (sim_disasm_sprintf): New function.
3915 (sim_disasm_read_memory): New function.
3916 (sim_disasm_perror_memory): New function.
3917 (sim_cgen_disassemble_insn): New function.
3918 * cgen-utils.c: Don't include cpu-opc.h.
3919 (virtual_insn_entries): New static local.
3920 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
3921 (cgen_insn_name): Rewrite.
3922 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
3923 * cgen.sh (desc): New file generator handler.
3924 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
3925 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
3926 Don't include cpu-opc.h,cpu-sim.h.
3927 * sim-model.c (model_set): Delete SIM_DESC arg.
3928 (sim_model_set): Update.
3929 * sim-model.h (MACH): New member prepare_run.
3931 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
3933 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3934 if redundant with allocator functions.
3936 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3938 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3940 * sim-profile.h: Make like sim-trace.h.
3941 (PROFILE_USEFUL_MASK): New macro.
3942 * sim-profile.c (profile_options): Make like trace_options, allow
3943 optional on|off arg where applicable.
3944 (set_profile_option_mask): New function.
3945 (sim_profile_set_option): New function.
3946 (profile_option_handler): Simplify.
3947 Have -p only enable selected things, not everything.
3948 Add missing break to OPTION_PROFILE_PC_RANGE.
3949 * cgen-scache.c (scache_options): Allow optional on|off arg to
3951 (scache_option_handler): Use sim_profile_set_option.
3953 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3955 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3956 (memory_option_handler): Implement MEMORY_FILL option. Make
3957 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3958 (parse_ulong_value): New function.
3959 (do_memopt_add): Allocate all buffers. Optionally fill them.
3961 1999-01-15 Richard Henderson <rth@cygnus.com>
3963 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3964 va_list, not an integer.
3965 * sim-events.c (sim_events_schedule): Likewise.
3967 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3968 the appropriate type.
3970 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3972 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3973 (sim_disassemble_insn): Update prototype.
3974 (sim_engine_invalid_insn): Ditto.
3975 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3976 (SEM_BRANCH_INIT): PCADDR->IADDR.
3977 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3978 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3979 * cgen-scache.h (*): Ditto.
3980 * cgen-trace.c (*): Ditto.
3981 * cgen-trace.h (*): Ditto.
3982 * cgen-utils.c (*): Ditto.
3983 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3985 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3986 (simple engine framework): Rewrite.
3987 * sim-module.c (modules): Install model module sooner (and in
3988 particular before the profile module).
3990 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3992 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3993 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3994 (sim_model_init): Call it.
3996 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3998 1999-01-05 Doug Evans <devans@casey.cygnus.com>
4000 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
4001 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
4002 (SEM_BRANCH_INIT_EXTRACT): New macro.
4003 (SEM_BRANCH_INIT): Add taken_p.
4004 (TARGET_SEM_BRANCH_FINI): Provide default definition.
4005 (SEM_BRANCH_FINI): Use it.
4007 * cgen-run.c (sim_resume): Handle tracing of last insn.
4008 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
4009 * cgen-trace.c (current_abuf): New static global.
4010 (trace_insn_init): Initialize it.
4011 (trace_insn_fini): Use it.
4012 (trace_insn): Set it.
4013 * cgen.sh (arch case): Pass -m ${mach} to cgen.
4014 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
4015 (@cpu@_emit_after): Ditto.
4016 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
4017 labels if WITH_SEM_SWITCH_FULL.
4018 * sim-model.c: Include bfd.h.
4019 (sim_model_init): New function.
4020 (sim_model_install): Record init fn.
4021 * sim-model.h (MACH): New member bfd_name.
4022 * sim-module.c (modules): Initialize model before scache.
4024 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
4026 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
4028 * nrun.c (main): Remain in simulation loop for traps and
4029 exceptions when in operating environment mode.
4030 (ui_loop_hook): New stub hook for standalone use.
4031 * sim-events.c (sim_events_process): Call ui_loop_hook
4032 periodically on CYGWIN host.
4034 * sim-reason.c (sim_stop_reason): Return host signal numbers
4035 to gdb on sim_stopped and sim_signalled cases.
4036 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
4037 hook just before longjmp.
4038 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
4039 hook just before sim_engine_run.
4041 * sim-n-core.h (sim_core_trace_M): Allay const warning.
4042 * sim-trace.h (trace_generic): Ditto.
4043 * sim-trace.c (trace_generic): Ditto.
4045 1998-12-14 Doug Evans <devans@casey.cygnus.com>
4047 * Make-common.in (SIM_MAIN_DEPS): New var.
4048 (CGEN_MAIN_CPU_DEPS): New var.
4049 * aclocal.m4: Add --enable-cgen-maint option.
4050 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
4052 (GETIMEM*): Pass pc value to sim_core routine.
4054 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
4056 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
4057 Compare with ZERO not NULL.
4059 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
4061 * hw-properties.c, hw-instances.c, hw-tree.c: Include
4064 1998-12-09 Doug Evans <devans@casey.cygnus.com>
4066 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
4067 * sim-trace.c: Include stdlib.h if present.
4068 * dv-sockser.c: Include unistd.h if present.
4069 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
4070 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
4072 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
4074 * gennltvals.sh: Add i960.
4075 * nltvals.def: Rebuild.
4077 1998-12-04 Doug Evans <devans@casey.cygnus.com>
4079 * cgen-defs.h: New file, old cgen-sim.h.
4080 * cgen-sim.h: Simple header that includes others.
4081 * sim-arange.c: New file.
4082 * sim-arange.h: New file.
4083 * sim-basics.h: Include it.
4084 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
4085 (sim-arange.o): Add rule for.
4086 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
4087 (sim_io_eprintf_cpu): Add prototype.
4088 * sim-inline.h (HAVE_INLINE): Define if GNUC.
4089 (INLINE2): New macro.
4090 (EXTERN_INLINE): New macro.
4091 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
4092 before calling module init fns.
4093 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
4094 (profile_init): New function.
4095 (profile_options): New option --profile-range.
4096 (profile_option_handler): Handle --profile-range.
4097 (profile_print_insn): Qualify address range specific section titles.
4098 (profile_print_addr_ranges): New function.
4099 (profile_info): Print address ranges if specified.
4100 (profile_install): Set profile_init init fn.
4101 * sim-profile.h (PROFILE_DATA): New member `range'.
4102 * sim-trace.c (trace_init): New function.
4103 (trace_options): New option --trace-range.
4104 (trace_option_handler): Handle --trace-range.
4105 (trace_install): Set trace_init init fn.
4106 * sim-trace.h (TRACE_DATA): New member `range'.
4107 * sim-utils.c (sim_cpu_msg_prefix): New function.
4108 (sim_io_eprintf_cpu): New function.
4109 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
4110 (PC_IN_PROFILE_RANGE_P): New macro.
4111 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
4112 (trace_insn_fini): New arg abuf. All callers updated.
4113 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
4114 printing cycle counts.
4115 * cgen-trace.h (trace_insn_fini): Update prototype.
4116 (TRACE_RESULT_P): New macro.
4117 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
4118 (TRACE_INSN): Check ARGBUF_TRACE_P.
4119 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
4120 * cgen-types.h (SIM_INLINE): Delete.
4121 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
4122 * cgen-utils.c: Don't include cgen-engine.h
4123 * genmloop.sh (@cpu@_fill_argbuf): New function.
4124 (@cpu@_fill_argbuf_tp): New function.
4125 (@cpu@_emit_before,@cpu@_emit_after): New functions.
4126 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
4127 (SET_CTI_VPC,SET_INSN_COUNT): Update.
4128 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
4129 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
4130 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
4131 doing profiling. Update call to TRACE_INSN_FINI.
4133 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
4135 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
4137 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
4140 1998-12-01 Doug Evans <devans@casey.cygnus.com>
4142 * sim-inline.c (SIM_INLINE_P): Fix typo.
4144 1998-11-30 Doug Evans <devans@casey.cygnus.com>
4146 * cgen-utils.c (cgen_virtual_opcode_table): Update.
4148 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
4150 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
4151 * nltvals.def: Re-generate.
4153 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4155 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
4156 sim_core_map_attach, sim_core_map_detach, next_event_queue,
4157 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
4159 * sim-events.c (sim_events_uninstall, sim_events_suspend,
4160 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
4162 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
4164 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
4165 (${cpu}_pbb_cti_chain): Ditto.
4167 1998-11-18 Doug Evans <devans@casey.cygnus.com>
4169 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
4170 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
4171 (EXTRACT_INT,EXTRACT_UINT): New macros.
4172 (SEM_SEM_ARG): New macro.
4173 (SEM_NEXT_VPC): New arg `pc'.
4174 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
4175 (sim_disassemble_insn): Update prototype.
4176 * cgen-trace.c (current_insn,insn_fields): New static locals.
4177 (trace_insn): Set them.
4178 * cgen-utils.c: #include cgen-engine.h.
4179 (sim_disassemble_insn): New arg insn_fields.
4180 Handle variable length insns.
4181 * genmloop.sh: Only emit pbb decls if -pbb.
4182 (${cpu}_scache_lookup): New arg `vpc'.
4183 (scache support): Fetch pc before entering loop.
4185 * gennltvals.sh: Add fr30 support.
4186 * nltvals.def: Rebuild.
4188 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4190 * sim-types.h: Re-do type system so that GCC's attribute and mode
4191 are used to specify types. Handle case of ALPHA.
4193 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
4195 * aclocal.m4: Add tests for dlopen family.
4196 * config.in: Regenerated.
4198 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
4200 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
4202 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
4204 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
4205 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
4206 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
4207 * cgen-sim.h: ... to here.
4209 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4211 * aclocal.m4 (enable-build-warnings): Replace
4212 enable-sim-warnings. Extend =LIST syntax so that prepend and
4213 append of options is possible. Drop -Werror, add
4214 -Wstrict-prototypes for GDB compatibility.
4215 * Make-common.in (SIM_WARNINGS): Update.
4217 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
4219 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
4220 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
4221 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
4222 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
4223 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
4225 * cgen-cpu.h: New file.
4226 * cgen-engine.h: New file.
4227 * cgen-scache.h: New file.
4228 * cgen-sim.h: Delete portions moved to new files.
4229 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
4230 rather than sending result to stdout.
4232 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
4234 * Make-common.in (sim-reg.o): New rule.
4235 (cgen-run.o): New rule.
4236 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
4237 * cgen-run.c (prime_cpu): New function.
4238 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
4239 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
4241 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
4242 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
4243 (CGEN_INSN_VIRTUAL_P): New macro.
4244 (SEM_PC): New typedef.
4245 (SEMANTIC_FN): Change type of result to SEM_PC.
4246 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
4247 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
4248 (SCACHE_MAP): New typedef.
4249 (CPU_SCACHE): Add pbb support.
4250 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
4251 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
4252 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
4254 (INSN_NAME): Delete.
4255 (cgen_insn_name): Declare.
4256 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
4257 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
4258 (first_insn_p): Make static.
4259 (trace_insn): Handle virtual insns specially.
4260 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
4261 * cgen-types.h (UBI): Delete.
4262 (MODE_TYPE): New enum.
4263 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
4264 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
4265 (cgen_virtual_opcode_table): New global.
4266 (cgen_insn_name): New function.
4267 (sim_disassemble_insn): Ignore virtual insns.
4268 * genmloop.sh: Delete top level loop generation. Add pbb support.
4269 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
4270 (sim_cpu_base): New members max_insns,insn_name,model_data.
4271 (CPU_PC_GET,CPU_PC_SET): New macros.
4272 (sim_pc_get,sim_pc_set): Declare.
4273 * sim-model.c (model_set): Call model init fn.
4274 * sim-model.h (MODEL_FN): New typedef.
4275 (INSN_TIMING): New member model_fn.
4276 (MODEL): New members num,init.
4277 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
4278 All callers updated.
4279 (profile_insn_init): New fn.
4280 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
4281 Exit early if insn profiling not supported.
4282 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
4283 (profile_install): Record profile_insn_init as init fn.
4284 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
4285 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
4286 (PROFILE_DATA): Delete member exec_time.
4287 Change insn_count to pointer to array, rather than the array.
4288 (sim_profile_print_bar): Declare.
4290 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
4292 * cgen-run.c: New file.
4293 * sim-reg.c: New file.
4295 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
4297 * aclocal.m4: Add checks for -lsocket and -lnsl.
4299 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
4300 allow local port reuse on listening socket.
4302 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
4304 * sim-config.h: Remove reference to linux kernel header.
4306 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
4308 * dv-sockser.c (sockser_addr): Make variable non-static.
4310 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
4312 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
4314 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
4316 * sim-events.c (sim_events_elapsed_time): Fix calculation.
4318 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
4320 * Make-common.in (install-common): Add $(EXEEXT) when installing
4323 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
4325 * cgen-sim.h (cgen_state): New member opcode_table.
4326 * cgen-utils.c (sim_disassemble_insn): Use it.
4328 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
4330 * cgen-mem.h (DECLARE_SETT): Fix return type.
4331 * cgen-sim.h (sim_engine_illegal_insn): Declare.
4332 * cgen-scache.c: Include stdlib.h.
4333 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
4334 * sim-model.c (model_option_handler): Remove unused variable `n'.
4336 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
4338 * cgen-utils.c: Include bfd.h.
4339 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
4341 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
4343 * sim-bits.h (EXTEND24): Fix typo.
4345 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4347 * sim-events.c (ETRACE_P): New macro.
4348 (struct _sim_event): Add member trace.
4349 (sim_events_free): Reclaim trace message.
4351 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
4352 sim_events_schedule_tracef): New functions, include printf trace
4353 information in argument list. If tracing, store asprintf'd trace
4354 message in sim_event.
4356 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
4357 hw_event_queue_schedule_vtracef): New functions, mimic
4360 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
4362 * sim-bits.h (EXTEND24): Define.
4364 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
4366 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
4367 (CPU_SCACHE_HASH_MASK): New macro.
4368 (SCACHE_HASH_PC): Rewrite.
4369 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
4370 computation out of main loop.
4372 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
4374 * cgen-sim.h (RECORD_IADDR): Delete.
4375 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
4376 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
4378 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
4380 * gennltvals.def (mn10200): Add entry.
4381 * nltvals.def: Regenerate with MN10200 additions.
4383 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
4385 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
4386 documentation on how it works.
4388 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
4389 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
4390 sim_core_set_xor, sim_core_xor_read_buffer,
4391 sim_core_xor_write_buffer): Update.
4393 * sim-events.h, sim-events.c (sim_events_install,
4394 sim_events_watch_clock, sim_events_schedule_after_signal,
4395 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
4396 sim_events_deschedule): Update.
4398 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
4399 sim_fpu_max32, sim_fpu_max64): Update.
4401 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
4403 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
4404 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
4405 * sim-profile.c (profile_print_model): Update.
4407 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
4409 * gennltvals.def (m32r): Use common syscall.h now.
4410 (mn10300): Add entry.
4411 * nltvals.def: Regenerate.
4413 * sim-engine.c (sim_engine_get_run_state): New function.
4414 * sim-engine.h (sim_engine_get_run_state): Declare it.
4416 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
4418 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
4419 * sim-core.c (sim_core_signal): Make extern, always define.
4421 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
4423 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
4424 * cgen-ops.h (ANDIF): New macro.
4425 (ANDIF[BQHSD]I): Delete.
4427 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4429 * hw-events.c (create_hw_event, delete_hw_event): Delete.
4430 (hw_event_queue_schedule, hw_event_queue_deschedule,
4431 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
4434 * hw-alloc.h (HW_NZALLOC): Define.
4436 * Make-common.in (test-hw-events): Add target for testing the
4439 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
4441 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
4443 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
4445 * hw-main.h: Include hw-handles.h, hw-instances.h.
4446 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
4447 * hw-base.c (hw_create, hw_delete): Call same.
4449 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4451 * dv-core.c: Include hw-main.h and sim-main.h.
4452 * dv-pal.c: Include hw-main.h and sim-io.h.
4453 * dv-glue.c: Include hw-main.h.
4455 * hw-main.h: New file. Move list of includes to here.
4456 * hw-base.h: From here.
4457 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
4458 (hw-*.o, dv-*.o): Update.
4459 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
4460 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
4463 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
4464 do_hw_poll_read): Move declarations from here.
4465 * hw-main.h: To here.
4467 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
4469 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
4471 * Make-common.in (hw-config.h): Update
4472 * hw-base.c, dv-pal.c, dv-glue.c: Update
4474 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
4475 `*_callback' to `*_method.
4477 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
4479 * hw-base.h (set_*): Move set method macros from here.
4480 * hw-device.h: To here.
4482 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4484 * hw-base.h (create_hw_property_data, delete_hw_property_data):
4487 * hw-base.c (hw_create, hw_delete): Call
4488 * hw-properties.c (create_hw_property_data,
4489 delete_hw_property_data): Define.
4491 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4493 * hw-device.c, hw-properties.c: Include hw-base.h
4495 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
4496 * hw-device.c: From here.
4497 * hw-base.h: Include "hw-events.h".
4499 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
4500 * hw-base.c (hw_create, hw_delete): Call.
4501 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
4503 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
4504 (hw-alloc.o): New target.
4506 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4508 * hw-events.h, hw-events.c: New files. Move event code to here.
4509 * sim-hw.c: From here.
4510 * hw-base.h: Include "hw-events.h".
4511 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
4512 (hw-events.o): New target.
4514 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
4515 * hw-events.h (struct hw_event): Replace typedef hw_event.
4517 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
4518 * hw-base.c (hw_create, hw_delete): Call.
4519 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
4523 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4525 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
4526 * hw-ports.c: To here.
4528 * hw-base.h, hw-ports.c (create_hw_port_data,
4529 delete_hw_port_data): New functions.
4530 * hw-base.c (hw_delete, hw_create): Call same.
4532 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
4534 * hw-ports.h: To here.
4536 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
4538 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
4539 PROCESSOR and CIA arguments.
4541 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4543 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
4544 Move common object files from here.
4545 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
4547 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4549 * sim-hw.c: Include ctype.h.
4550 (do_hw_poll_read): Do not assume EAGAIN.
4552 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
4554 * cgen-trace.c (first_insn_p): New static local.
4555 (trace_insn_init): Set it.
4556 (trace_insn_fini): Use TRACE_PREFIX.
4557 (trace_insn): Rewrite to use trace_prefix.
4558 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
4559 Adjust width accordingly.
4561 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
4562 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
4563 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
4564 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
4565 (PROFILE_COUNT_CORE): Simplify.
4566 * sim-profile.c (profile_option_handler): Compute profile_any_p.
4568 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
4570 * cgen-ops.h (ADDCFSI): Fix typo.
4572 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
4574 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
4575 * genmloop.sh: Use them rather than static locals.
4577 * sim-engine.c (sim_engine_set_run_state): New function.
4578 * sim-engine.h (sim_engine_set_run_state): Declare.
4579 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
4580 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
4581 (engine_resume): Reorganize. Allow synchronous exit from main loop.
4583 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
4585 * cgen-trace.c (trace_insn_init): New arg first_p.
4586 All callers updated.
4587 (trace_insn_fini): New arg last_p. All callers updated.
4588 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
4589 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
4590 * genmloop.sh (engine_resume): Update.
4592 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4594 * Make-common.in (install-common): Run ranlib on installed copy of
4597 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4599 * Make-common.in (install-common): Rename and install libsim.a.
4601 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4603 * sim-io.c (unistd.h): Include.
4605 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
4607 * Make-common (sim_main_headers): Sort.
4608 (cgen-*.o): Add cgen-sim.h dependency.
4610 * cgen-scache.c (scache_init): Only allocate space if scache element
4612 (scache_flush,scache_print_profile): Check if scache in use first.
4614 * cgen-sim.h (IDESC): Provide forward declaration.
4616 (CGEN_CPU): Always define scache member. New members idesc,opcode.
4617 (cgen_cpu_max_extra_bytes): Declare.
4618 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
4620 * sim-cpu.h: New file. sim_cpu_base moved here.
4621 Move sim_cpu_lookup decl here.
4622 * sim-base.h: #include "sim-cpu.h".
4623 * sim-cpu.c: New file.
4624 * Make-common (sim_main_headers): Add sim-cpu.h.
4625 (sim-cpu.o): Add rule for.
4627 * sim-model.c (set_model): Delete.
4628 (sim_model_set,model_set): New functions.
4629 (sim_model_install): Renamed from model_install.
4630 Don't set default model here.
4631 (model_option_handler): Rewrite --model processing.
4632 (sim_model_lookup,sim_mach_lookup): New functions.
4633 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
4634 (insn_timing): Delete.
4635 (INSN_TIMING): New member `num'.
4636 (IMP_PROPERTIES): Always define scache_elm_size member.
4637 (MACH): New member init_cpu.
4638 (sim_machs): Renamed from machs.
4639 (sim_model_install): Renamed from model_install.
4640 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
4641 * sim-module.c (modules): Update.
4643 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
4645 * sim-io.c: #include <errno.h>.
4647 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4649 * dv-pal.c (struct hw_pal_device): Add reader.
4650 (hw_pal_finish): Initialize reader.
4651 (scan_hw_pal): Use reader.
4653 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
4654 (HW_IO_EOF, HW_IO_NOT_READY): Define.
4657 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
4658 ../ppc/main.c sim_io_read_stdin.
4660 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4662 * hw-tree.h (hw_tree_print): Paramaterize with print and file
4664 * hw-tree.c: Update.
4666 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
4667 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
4669 * hw-ports.h (hw_port_event): Ditto.
4670 * hw-ports.c (hw_port_event): Update.
4671 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
4673 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
4675 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
4676 (do_counter_event): Update.
4677 * dv-glue.c (hw_glue_io_read_buffer): Update.
4678 (hw_glue_port_event): Update.
4680 * hw-device.h (SIM_DESC): Replace with struct sim_state.
4681 * hw-base.h (hw_create): Ditto.
4682 * hw-base.c (hw_create): Ditto.
4684 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
4685 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
4688 * hw-device.h (hw_system_cpu): Declare.
4689 * sim-hw.c (hw_system_cpu): New function.
4691 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
4692 sim_hw_abort not hw_abort.
4693 (sim-hw.h): Include.
4694 (sim_core_read_buffer, sim_core_write_buffer): Call
4695 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
4697 (sim_core_set_xor): Do not pass CPU when aborting.
4699 * sim-n-core.h (sim_core_read_aligned_N,
4700 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
4701 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
4702 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
4705 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
4707 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
4708 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
4710 (sim_hw_print): New function.
4712 * sim-engine.h (sim_engine_vabort): Declare.
4713 * sim-engine.c (sim_engine_vabort): New function.
4715 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4717 * sim-trace.c (print_data): For floating-point numbers trace raw
4719 (trace_result_fp2): New function.
4720 * sim-trace.h (trace_result_fp2): New declaration.
4721 (TRACE_FP_RESULT2): New macro.
4723 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
4725 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
4726 AM_CYGWIN32 and AM_EXEEXT.
4727 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
4728 to run and install-common rules.
4729 * common/configure: regenerate
4731 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
4733 * sim-types.h (cell_word): New type.
4734 (natural_cell): Delete type.
4736 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
4738 * configure: Regenerated to track ../common/aclocal.m4 changes.
4741 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
4743 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
4745 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
4747 * configure: Regenerated to track ../common/aclocal.m4 changes.
4750 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
4752 * acconfig.h: New file.
4753 * Make-common.in (top_builddir): New macro.
4754 (INTL_LIB): Removed.
4755 (INTLLIBS): New macro.
4756 (INTLDEPS): Likewise.
4757 (LIBDEPS): Use INTLDEPS.
4758 (EXTRA_LIBS): Use INTLLIBS.
4759 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
4760 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
4761 AM_LC_MESSAGES): New macros from GNU gettext.
4763 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
4765 * sim-config.h: Discard leading _ from macros.
4766 * sim-types.h: Ditto.
4768 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
4770 * Make-common.in (CSEARCH): Add -I to intl directories.
4771 (INTL_LIB): Point to libintl.a.
4772 (LIBDEPS): Add $(INTL_LIB).
4773 (EXTRA_LIBS): Ditto.
4775 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
4777 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
4779 * cgen-ops.h (ADDCFSI): Fix.
4782 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4784 * sim-types.h (signed_address, unsigned_address): Define.
4786 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4788 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
4791 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
4793 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
4794 New functions, pack / unpack sim_fpu struct using raw values.
4795 (sim_fpu_is): Differentiate between negative and positive
4798 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4800 * sim-bits.h (EXTEND4): Define.
4801 (EXTEND4, EXTEND15, EXTEND11): Ditto.
4803 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
4805 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
4806 declared so we need this cast to prevent long long addresses
4807 from being misconfigures. Results in access to unmapped memory.
4809 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
4811 * Make-common.in (RUNTESTFLAGS): Define.
4812 (check): Pass RUNTESTFLAGS to recursive make.
4814 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
4816 * sim-info.c (sim_info): Be verbose when either VERBOSE or
4819 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4821 * aclocal.m4 (sim-inline): By default, disable sim-inline when
4824 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
4826 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
4827 (sim-inline): Update to match sim-inline.[hc]
4828 * configure: Regenerated to track ../common/aclocal.m4 changes.
4830 * Make-common.in (sim_main_headers): Add sim-inline.h
4832 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
4834 * sim-endian.h (sim-endian.c): Ditto.
4836 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
4837 (sim_events_set_trace): Delete unused prototype.
4839 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
4840 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
4842 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
4843 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
4844 Comment out, not yet implemented in sim-fpu.c.
4845 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
4846 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
4848 * sim-inline.h: Rewrite description.
4849 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
4850 (SIM_MAIN_INLINE): Add inline option.
4852 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
4853 include generated files. Handled by generator directly.
4855 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4857 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
4860 * sim-trace.h (TRACE_ANY_P): Define.
4861 (struct _trace_data): Add trace_any_p.
4863 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4865 * run.c (main): Handle all alternatives of enum sim_stop.
4866 (main): Delete unused `asection *s'.
4868 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4870 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
4872 * configure: Regenerated to track ../common/aclocal.m4 changes.
4874 * sim-hw.c: New file.
4875 * sim-hw.h (sim_hw_parse): Declare function.
4876 (hw-tree.h): Do not include.
4878 * sim-base.h (STATE_HW): Define.
4879 (struct sim_state_base): Add member struct *hw.
4881 * sim-module.c (sim-hw.h): Include.
4882 (modules): Add sim_hw_install.
4884 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
4886 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4888 * sim-base.h (CPU_INDEX): Define.
4890 * sim-utils.c (sim_state_alloc): Initialize.
4891 * sim-module.c (sim_post_argv_init): Ditto.
4893 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4895 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
4896 properly formatted lists.
4898 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4900 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
4901 0x2f needs to be 0x3f.
4903 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4905 * hw-tree.c (hw_tree_find_property): Return NULL when device is
4907 (hw_tree_find_*_property): Clean up error message when property is
4910 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
4911 present before looking for it.
4913 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
4915 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
4916 (AC_CHECK_FUNCS): Add check for __setfpucw.
4917 * configure: Regenerated.
4919 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
4921 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4922 hw_pal_timer, hw_pal_timer_value): Define.
4923 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
4924 (do_counter_event, do_counter_read, do_counter_value,
4925 do_counter_write): new functions.
4927 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4929 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
4932 * hw-base.c (hw_create): Stop searching for a device when one is
4935 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4937 * configure: Regenerated to track ../common/aclocal.m4 changes.
4939 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4941 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4942 appends extra devices.
4943 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4946 * Make-common.in (hw-config.h): New target, create hw-config.h
4948 (SIM_HW): Definition from @sim_hw@.
4949 (hw-base.o): Depend on hw-config.h
4951 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4953 * Make-common.in: Get SHELL from configure.
4954 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4955 move-if-change. Fixes NT native build problem.
4956 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4957 move-if-change. Fixes NT native build problem.
4958 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4961 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4963 * hw-device.h, hw-device.c (hw_strdup): New function.
4965 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4966 strings name, family and args.
4967 (full_name_of_hw): Use hw_strdup when returning the full path.
4969 * hw-properties.c: Clean up property not found / wrong type error
4972 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4973 before attaching any ports.
4975 * hw-base.c (hw-config.): Include. Replace hardwired table.
4977 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4979 * Make-common.in: Add rule for dv-glue.o.
4981 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4983 * hw-base.c (hw_finish): Move setting of trace level to here.
4984 (hw_create): From here.
4986 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4987 ../ppc/device_table.c.
4989 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4991 * hw-tree.c (print_properties): Supress path when printing
4992 properties of root node.
4994 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4996 * hw-device.h (HW_TRACE): Define.
4997 (hw_trace): Declare.
4998 * hw-device.c (hw_trace): Implement function.
5000 * hw-base.c (hw_create): Set hw trace level from "trace?"
5003 * dv-core.c (dv_core_attach_address_callback): Add trace.
5005 * dv-pal.c: Replace DTRACE with HW_TRACE.
5007 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
5009 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
5010 (hw_alloc_data): Delcare.
5011 (struct hw): Add member alloc_of_hw.
5013 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
5014 functions. Assocate memory with a device.
5015 (stdlib.h): Include.
5017 * hw-base.h (set_hw_delete): Define.
5018 (hw_delete_callback): Declare.
5019 (hw_delete): Declare.
5021 * hw-base.c (hw_delete): Implement function.
5022 (struct hw_base_data): Add member to_delete.
5023 (ignore_hw_delete): New function, does nothing.
5024 (hw_create): Set the hw_delete method.
5025 (hw_create): Allocate the base type using HW_ZALLOC before setting
5028 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
5030 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
5032 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
5033 (attach_hw_port_edge): Add struct hw argument
5035 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
5038 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
5040 * hw-device.h (hw_attach_address_callback,
5041 hw_detach_address_callback): Attach to a single space not a space
5042 mask. Clarify interpretation of SPACE:ADDR parameters.
5044 * hw-base.c (passthrough_hw_attach_address,
5045 passthrough_hw_detach_address): Update.
5046 * dv-core.c (dv_core_attach_address_callback): Ditto.
5047 * dv-pal.c (hw_pal_attach_address): Ditto.
5049 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
5051 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
5053 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
5055 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
5056 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
5057 hw-properties_h, hw-tree_h): Define, point at corresponding
5059 (hw_base_headers): Define list of headers included by hw-base.h
5060 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
5061 hw-properties.o, hw-tree.o): Specify dependencies.
5062 (dv-core.o, dv-pal.o): Ditto.
5064 * sim-hw.h: New file.
5066 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
5067 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
5069 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
5071 * hw-base.h, hw-base.c: new files. Copied from
5072 ../ppc/device_table.[hc].
5074 * dv-core.c, dv-pal.c: New files. Copied from
5075 ../ppc/hw_{core,pal}.c
5077 * sim-basics.h (struct hw): Declare.
5078 (enum port_direction, enum object_disposition): Declare.
5080 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
5082 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
5083 sim_dv_src in Makefile. Take list of devices as parameter to m4
5086 * configure: Regenerated to track ../common/aclocal.m4 changes.
5088 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
5090 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
5091 trace_prefix can abort cleanly.
5093 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
5095 * dv-sockser.c, dv-sockser.h: New files.
5096 * Make-common.in (dv-sockser.o): Add rule for.
5097 * aclocal.m4: Check for fcntl.h.
5098 * config.h: Add HAVE_FCNTL_H.
5100 * sim-break.c (remove_breakpoint): Fix thinko.
5102 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
5103 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
5105 1998-03-13 Fred Fish <fnf@cygnus.com>
5107 * sim-base.h (struct sim_state_base): Add prog_syms and
5108 define macro STATE_PROG_SYMS.
5109 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
5110 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
5111 and bfd_canonicalize_symtab, to get symbol table on first use
5112 and preserve it via STATE_PROG_SYMS for future calls to
5113 bfd_find_nearest_line.
5115 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
5117 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
5119 * sim-core.c (sim_core_attach): Handle a generic number of maps -
5120 up to nr_maps, not just access_* maps.
5122 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
5125 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
5126 over nr_maps not sim_core_nr_maps.
5128 * sim-events.h, sim-events.c (sim_events_watch_core): Change
5129 core_map argument to unsigned.
5130 (struct _sim_core): Ditto for struct member core_map.
5132 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
5134 * sim-basics.h (access_io, access_*_io): Define.
5135 (map_read, map_write, map_exec, map_io): Define.
5137 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
5138 attach with more generic mapmask.
5139 (sim_core_{read,write}_*): Change map argument to unsigned.
5141 * sim-core.c (sim_core_uninstall, sim_core_attach,
5142 sim_core_detach): Iterate over nr_maps instead of
5145 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
5146 instead of the write_map.
5147 (remove_breakpoint): Ditto.
5149 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
5150 with read_map, write_map, exec_map resp.
5152 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
5155 * cgen-utils.c (sim_disassemble_insn): Ditto.
5157 * sim-hrw.c (sim_write, sim_write): Ditto.
5159 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
5160 transfer_to_str): New functions.
5162 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
5164 * sim-base.h (sim_state_base): New member environment.
5165 (STATE_ENVIRONMENT): New macro.
5166 * sim-config.c (current_environment): Delete.
5167 (sim_config_default): New function.
5168 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
5169 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
5170 (sim_config_default): Add prototype.
5171 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
5172 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
5173 Set STATE_ENVIRONMENT, not current_environment.
5175 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
5177 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
5179 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
5181 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
5183 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
5185 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
5187 * Make-common.in (TAGS): Make smarter.
5188 * Makefile.in (TAGS): Ditto.
5190 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
5192 * sim-module.c (*): Fix typos in assertion tests.
5194 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
5196 * sim-module.c (sim_pre_argv_init): String passed to asprintf
5199 * sim-options.c (sim_parse_args): Ditto.
5200 (sim_args_command): Return OK, instead of nothing, for an empty
5203 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
5205 * sim-profile.c (profile_info): Rename from profile_print. Drop
5206 misc and misc_cpu callback arguments. Use
5207 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
5208 (profile_install): Install profile_info function.
5210 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
5211 STATE_PROFILE_INFO_CALLBACK): Define.
5212 (struct PROFILE_DATA): Add field info_cpu_callback.
5213 (profile_print): Delete function.
5215 * sim-base.h (STATE_MODULES): Define. Replace individual
5216 STATE_*_LIST with single struct module_list.
5218 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
5219 (struct module_list): Declare.
5221 * sim-module.h, sim-module.c (sim_module_add_info_fn,
5222 sim_module_info): New functions.
5223 (sim_module_install): Clean up module data structures.
5225 * sim-info.c (sim_info): New file. New function. Call
5228 * Make-common.in (sim-info.o): Define rule.
5229 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
5232 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
5234 * sim-base.h (sim_cpu_base): New members name, options.
5235 (sim_cpu_lookup): Add prototype.
5236 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
5237 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
5238 (sim_add_option_table): Update prototype.
5239 * sim-options.c (sim_add_option_table): New argument `cpu'.
5240 (standard_option_handler,standard_install): Update.
5241 (sim_parse_args): Handle cpu specific options.
5242 (print_help): New static function.
5243 (sim_print_help): Call it. Print cpu specific options.
5244 (find_match): New static function.
5245 (sim_args_command): Call it. Handle cpu specific options.
5246 * sim-utils.c (sim_cpu_lookup): New function.
5247 * sim-memopt.c (memory_option_handler): Update.
5248 (sim_memopt_install): Update.
5249 * sim-model.c (model_option_handler): Update.
5250 (model_install): Update.
5251 * sim-profile.c (profile_option_handler): Update.
5252 (profile_install): Update.
5253 * sim-trace.c (trace_option_handler): Update.
5254 (trace_install): Update.
5255 * sim-watch.c (watchpoint_option_handler): Update.
5256 (sim_watchpoint_install): Update.
5257 * cgen-scache.c (scache_option_handler): Update.
5258 (scache_install): Update.
5260 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
5262 * Make-common.in (check): Run `make check' in testsuite dir.
5264 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
5266 * sim-trace.c (trace_result0): New function.
5268 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
5269 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
5270 tracing sim_fpu variables.
5271 (TRACE_ALU_RESULT0): Define.
5272 (TRACE_FP_RESULT_WORD): Define.
5273 (TRACE_FP_INPUT_WORD1): Define.
5275 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
5276 sim_fpu_two): New constants.
5277 (sim_fpu_op1, sim_fpu_op2): New types.
5278 (struct _sim_fpu): Delete member result. Re-order other members.
5279 (sim_fpu_sign, sim_fpu_exp): New functions.
5280 (sim_fpu_max, sim_fpu_min): new functions.
5281 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
5282 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
5284 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
5286 * sim-profile.c (profile_print): Delete duplicate test of
5288 (profile_print_pc): Exit early if data collection not set up.
5289 (profile_print_core): Simplify by calling sim_core_map_to_str.
5290 * sim-core.h (sim_core_map_to_str): Declare.
5291 * sim-core.c (sim_core_map_to_str): Make non-static.
5293 * genmloop.sh (engine_resume): Update insn_count before exiting.
5294 (engine_resume_full): Keep accurate core profile data.
5296 * cgen-utils.c (sim_disassemble_insn): Don't use
5297 sim_core_read_aligned_N, it messes up profiling results.
5299 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
5301 * nltvals.def: Regenerate with MN10300 additions.
5303 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
5305 * sim-trace.h (TRACE_ALU_RESULT2): Define.
5307 * sim-trace.h, sim-trace.c (trace_result_word2,
5308 trace_input_word4, trace_result_word4): New function.
5310 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
5312 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
5314 * sim-xcat.h: Delete.
5315 * cgen-mem.h: Delete inclusion of sim-xcat.h.
5316 * cgen-sim.h: Ditto.
5317 * sim-alu.h: Replace sim-xcat.h with symcat.h.
5318 * sim-n-bits.h: Ditto.
5319 * sim-n-core.h: Ditto.
5320 * sim-n-endian.h: Ditto.
5322 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
5324 * syscall.c (cb_syscall): Handle short reads, and EOF.
5326 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5328 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
5329 sim_fpu to safely print fp_word values.
5330 (print_data): Add trace_fmt_bool and trace_fmt_addr.
5331 (trace_result_bool1, trace_result_addr1): New functions.
5332 (trace_input_bool1, trace_input_addr1): New functions.
5334 * sim-trace.h (TRACE_FPU_*): Define.
5336 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
5338 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
5339 (sim_fpu_fpto, sim_fpu_tofp): Define.
5341 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5343 * sim-fpu.c (sim_fpu_cmp): New function.
5345 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
5347 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
5348 instead of abuf->length.
5349 * sim-trace.c (trace_options): Have -t only trace a few useful things.
5350 (set_trace_option_mask): Renamed from set_trace_options.
5351 (set_trace_option): New function.
5352 (trace_option_handler): Update calls to set_trace_option{,_mask}.
5353 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
5355 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
5357 * sim-basics.h: Declare struct _sim_fpu.
5359 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
5361 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
5362 (trace_prefix, trace_input*, trace_result*): Declare.
5363 (trace_one_insn): Change declaration, assume trace_prefix called.
5364 (trace_generic): Like trace_one_insn.
5365 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
5366 (TRACE_alu, TRACE_[a-z]*): Update.
5368 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
5369 trace_insn, save_data, trace_idx_to_str, print_data): New
5371 (trace_one_insn): Rewrite.
5372 (trace_generic): New function.
5374 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
5376 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
5378 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
5379 (SEMANTIC_FN): Rewrite declaration.
5380 (DECODE): Update type of semantic_fast member.
5381 ({EX,SEM}_FN_NAME): Have only one version.
5382 * sim-base.h (sim_state_base): Delete conditionals surrounding
5385 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
5387 * sim-load.c (sim_load_file): Print LMA/VMA according to value
5390 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
5392 * sim-core.c: Add missing prototypes for WITH_DEVICES.
5393 Add missing parameters to device_io calls.
5394 * sim-core.h: Add missing parameters to device_io calls.
5396 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
5398 * cgen-sim.h (DECODE): Always use switch for `read' for now.
5399 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
5400 (SEMANTIC{,_CACHE}_FN): Fix return type.
5401 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
5402 (engine_resume): Likewise. Make `engine' volatile. Save copy
5403 of cpu pointer in volatile object. Initialize read switch if
5406 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
5408 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
5409 (SEM_INSN): New macro.
5411 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
5413 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
5415 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5417 * configure: Regenerated to track ../common/aclocal.m4 changes.
5419 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5421 * sim-types.h (fp_word): New type, define according to
5422 WITH_TARGET_FLOATING_POINT_BITSIZE.
5424 * aclocal.m4 (default_sim_floating_point_bitsize): Add
5425 configuration of size of floating point registers.
5427 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
5429 * sim-profile.c (profile_print): Only print CPU <N> if other
5430 output is going to appear.
5432 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
5434 * configure: Regenerated to track ../common/aclocal.m4 changes.
5436 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
5438 * sim-types.h (address_word): Typedef according to
5439 WITH_TARGET_ADDRESS_BITSIZE.
5440 (signed_cell, unsigned_cell, natural_cell): Ditto using
5441 WITH_TARGET_CELL_BITSIZE.
5443 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
5444 (WITH_TARGET_CELL_BITSIZE): Define.
5445 (WITH_HOST_WORD_BITSIZE): Delete.
5447 * sim-config.c (print_sim_config): Update.
5449 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
5450 configuration of address and OpenFirmware cell sizes.
5452 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
5454 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
5455 * sim-run.c (sim_engine_run): Update.
5457 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
5459 * sim-run.c (sim_engine_run): Ditto.
5461 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
5462 (sim_resume): Pass nr_cpus to sim_engine_run.
5464 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
5466 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
5468 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
5470 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
5472 * Make-common.in (stamp-tvals): New rule.
5473 (targ-vals.h,targ-map.c): Depend on it.
5474 (clean): Remove stamp-tvals.
5476 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
5478 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
5479 in code also #if 0'ed.
5481 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
5483 * configure: Regenerated to track ../common/aclocal.m4 changes.
5484 * aclocal.m4: Recognize --enable-maintainer-mode.
5486 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
5488 * cgen-scache.h: Deleted.
5489 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
5490 * cgen-scache.c: Only compile contents if WITH_SCACHE.
5491 (scache_init): Use runtime computed size of SCACHE.
5492 (scache_flush): Likewise.
5493 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
5494 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
5495 * cgen-sim.h: Scache support moved here.
5496 (PC): Redo definition.
5497 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
5498 (DECODE): Add parallel execution support.
5499 Only include semantic label members if using switch.
5500 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
5501 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
5502 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
5503 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
5505 (engine_{stop,run,resume,halt,signal}): Delete decls.
5506 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
5507 (argbuf,scache): Delete forward decls.
5508 (STATE): Delete decl.
5509 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
5510 Include cgen-mem.h, cgen-ops.h.
5511 (engine_halt,engine_signal): Delete.
5512 ({ex,exc,sem,semc}_illegal): Delete.
5513 (sim_disassemble_insn): Result of extract fn is in bits.
5514 * genmloop.sh: Rewrite.
5516 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
5519 * sim-base.h (sim_state_base): Delete member `model'.
5520 (sim_cpu_base): Add member `model'.
5521 * sim-model.h (IMP_PROPERTIES): New type.
5522 (MACH): New members imp_props, models.
5523 (models): Delete decl.
5524 * sim-model.c (set_model): Update.
5525 * sim-profile.c (profile_print_model): Update.
5527 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
5529 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
5531 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
5534 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5536 * configure: Regenerated to track ../common/aclocal.m4 changes.
5539 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
5541 * aclocal.m4 (AR): Check for sigaction.
5543 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
5545 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
5547 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
5548 * sim-config.c (sim_config): Replace WITH_DEVICES with
5549 WITH_TREE_PROPERTIES.
5551 * configure: Regenerated to track ../common/aclocal.m4 changes.
5553 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
5555 * Make-common.in (SIM_ENVIRONMENT): New variable.
5556 (CONFIG_CFLAGS): Add it.
5557 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
5558 --enable-sim-environment option.
5559 * configure: Regenerated.
5560 * sim-config.h (environment support): Rewrite.
5561 * sim-config.c (current_environment): Define as enum, unconditionally.
5562 (current_alignment): Define unconditionally.
5563 (config_environment_to_a): Update.
5564 (config_alignment_to_a): Fix type of argument. Define unconditionally.
5565 (sim_config): Handle environment and alignment determination
5566 unconditionally. Delete sanity checks of current_environment,
5568 (print_sim_config): Update.
5569 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
5570 (standard_options): Add --environment.
5571 (standard_option_handler): Likewise.
5573 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5575 * sim-alu.h: Add notes on carry vs borrow for subtraction.
5576 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
5577 (ALU{,8,16,32,64}ADDC): Define - add carrying.
5578 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
5579 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
5580 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
5581 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
5582 argument ADD_CA macro with two argument ADDC_C - add carrying with
5584 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
5585 argument SUB_CA macro with two argument SUBC_X - subtract
5587 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
5589 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
5591 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
5593 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
5594 * sim-io.h (sim_io_syscalls): Delete.
5596 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
5598 * syscall.c (cb_syscall): Add missing else, so write to stdout
5601 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
5602 the carry bit from the CPU's psw.
5604 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
5606 * gennltvals.sh: Redo syscall support.
5607 * nltvals.def: Regenerated.
5609 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
5611 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
5612 the stream immediately.
5614 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5616 * sim-io.c (sim_io_getstring): Delete unused len2.
5617 (sim_io_syscalls): Ditto for sys_errno.
5619 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
5621 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
5623 * Make-common.in (run.o): Depend on remote-sim.h.
5624 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
5625 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
5627 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
5629 * sim-io.c (sim_io_syscalls): Disable lseek.
5631 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
5633 * gennltvals.sh: Generate syscall values for d30v.
5635 * gennltvals.sh: Use libgloss/syscall.h for sparc.
5636 * nltvals.def: Regenerate.
5638 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
5639 (os_fstat): Likewise. Validate fd argument.
5640 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
5641 just compute target stat struct length.
5642 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
5643 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
5644 (get_string): Return host errno values so they can be properly
5646 (cb_syscall): Likewise.
5647 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
5648 (cb_syscall, case read): Use read_stdin for file descriptor 0.
5649 (cb_syscall, case write): Use write_stderr for file descriptor 2.
5650 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
5651 (get_path): New function.
5653 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
5655 * sim-io.c (sim_io_syscalls): New function to provide system call
5656 emulation. Provide exit, open, close, read, write, lseek, and
5658 (sim_io_getstring): New function to return a string from a
5659 simulated memory location.
5661 * sim-io.h (sim_io_syscalls): Add declaration.
5663 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
5665 * sim-core.c (sim_core_signal): Fix spelling error in message.
5667 * sim-hrw.c (sim_read): Use read map, not write map.
5669 * Make-common.in (all): Add .gdbinit.
5670 * gdbinit.in: Add dump command.
5672 * sim-model.c (model_options): Use '\0' for `shortopt'.
5674 * sim-trace.c (trace_option_handler): Set state trace file
5675 for --trace-file in addition to cpu's values.
5676 (trace_vprintf): If cpu == NULL, try state's trace file.
5677 (trace_options): Reorganize table, reword some descriptions.
5679 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5681 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
5684 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5686 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
5687 signal untranslated, document problem with this.
5689 * nrun.c (main): Check for a prog name of `*step'. If present,
5690 step the simulator instead of allowing it to run free.
5692 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
5694 * Make-common.in (sim_main_headers): Add sim-signal.h.
5696 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
5698 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
5700 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5702 * sim-signal.h: Start simulator signals at 64 so that host signal
5703 numbers can be detected and reported.
5705 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
5707 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
5709 * callback.c (cb_host_to_target_stat): Fix return values.
5711 * cgen-sim.h (enum_signal_type): Delete.
5712 (engine_signal): Update prototype.
5713 * cgen-utils.c: Don't include <signal.h>.
5714 (sim_signal_to_host): Delete, lives in sim-signal.c now.
5715 (engine_signal): Update.
5717 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
5718 (sim_state_free): Call SIM_STATE_FREE if defined.
5720 * sim-module.c (sim_module_install): Don't leave any modules
5721 installed if one fails to install.
5723 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
5725 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
5726 more, since alloca is not used in this file.
5728 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
5729 correctly set the carry and overflow bits for those types.
5730 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
5731 with carry, so carry is correct after doing both adds.
5732 (ALU*): Space out '\' to make it easier to read.
5734 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
5736 * sim-core.c (sim_core_signal): Use sim_stopped instead of
5739 * sim-signal.c, sim-signal.h: New files.
5740 * Make-common.in (sim-signal.o): Add rule for.
5741 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
5742 * sim-abort.c: Don't include <signal.h>.
5743 * sim-basics.h: #include "sim-signal.h".
5744 * sim-break.c: Don't include <signal.h>.
5745 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
5746 * sim-core.c: Don't include <signal.h>.
5747 (SIGBUS): Delete definition.
5748 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
5749 * sim-engine.c: Don't include <signal.h>.
5750 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
5751 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
5752 * sim-resume.c: Don't include <signal.h>.
5753 (SIGTRAP): Delete definition.
5754 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
5755 * sim-stop.c: Don't include <signal.h>.
5756 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
5757 * sim-watch.c: Don't include <signal.h>.
5758 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
5760 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
5762 * sim-base.h (CIA_ADDR): Provide default definition.
5763 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
5764 * sim-break.c (sim_handle_breakpoint): Likewise.
5766 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
5768 * Make-common.in (srccom): New variable.
5770 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
5771 (LIB_OBJS): Add syscall.o.
5772 (gentmap): Pass $(NL_TARGET) to $(CC).
5773 (syscall.o): Add rule for.
5774 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
5775 (sim-bits.o): Depend on $(sim-n-bits_h).
5776 (sim-load.o): Depend on callback.h.
5778 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
5779 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
5780 * cgen-mem.h, cgen-ops.h: New files.
5782 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
5784 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
5786 * callback.c: #include string.h or strings.h.
5787 #include sys/types.h and sys/stat.h.
5788 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
5789 (os_get_errno,os_open): Update.
5790 (os_stat,os_fstat): New functions.
5791 (os_init): Initialize syscall_map, errno_map, open_map.
5792 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
5793 errno_map, open_map, signal_map, stat_map.
5794 (cb_read_target_syscall_maps): New function.
5795 (cb_target_to_host_syscall): New function.
5796 (cb_host_to_target_errno): Renamed from host_to_target_errno.
5797 (cb_target_to_host_open): Renamed from target_to_host_open.
5798 (store): New function.
5799 (cb_host_to_target_stat): New function.
5800 * syscall.c: New file.
5801 * gentmap.c (sys_tdefs): New global.
5802 (gen_targ_vals_h): Output target syscall numbers.
5803 (gen_targ_map_c): Update. Output target syscall translation map.
5804 * gentvals.sh: New first argument `target'. Preface table with
5805 #ifdef NL_TARGET_$target if non-null target passed.
5806 * gennltvals.sh: New file.
5807 * nltvals.def: Regenerated.
5809 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5811 * sim-n-core.h (sim_core_read_unaligned_N): Return static
5813 (sim_core_dummy_M): Declare.
5815 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5817 * sim-core.c (sim_core_signal): Print the address of the
5820 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
5822 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5824 * sim-base.h (sim_state_base): Add member trace_data.
5825 (STATE_TRACE_DATA): New macro.
5826 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
5827 ({WITH_,}TRACE_DEBUG_P): New macros.
5828 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
5829 (_sim_cpu): Delete forward reference.
5830 (debug_printf): Update.
5831 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
5832 (trace_options): Add --trace-debug.
5833 (set_trace_options): Handle it.
5834 (trace_option_handler): Likewise.
5835 (trace_install): Init state trace_data struct.
5836 (trace_uninstall): Close state trace file.
5837 * sim-events.c (ETRACE): Only print source file and line number if
5839 * sim-n-core.h (sim_core_trace_M): Likewise.
5841 * sim-core.c (sim_core_signal): Add missing "\n" in message.
5843 1997-11-13 Felix Lee <flee@cygnus.com>
5845 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
5847 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
5849 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
5851 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
5853 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
5855 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
5856 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
5859 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5861 * sim-events.c (sim_events_process): Re-compute the time -
5862 update_time_from_event - as each event is processed. Reverses
5865 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5867 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
5869 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5871 * sim-events.c (sim_events_process): Delete redundant call to
5872 update_time_from_event.
5873 (sim_events_slip): Always decrement time_from_event.
5874 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5875 Delete assertion that time_from_event >=0 when work in queue, no
5878 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5880 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5881 (standard_option_handler): Update.
5883 * sim-options.h: Clarify documentation.
5884 (OPTION_LONG_ONLY_P): Delete definition.
5885 (OPTION_VALID_P): Define.
5887 * sim-options.c (sim_print_help): Allow short only options.
5888 (sim_parse_args): Ditto.
5889 (sim_args_command): Skip short only options.
5890 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
5891 separate entries for short and long options in the HANDLERS and
5893 (sim_parse_args): Disable argument permutation.
5895 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5897 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
5898 Add argument M, size of data type.
5899 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
5900 Declare, ditto for 5, 6 & 7 byte transfers.
5901 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
5904 * sim-n-core.h (sim_core_trace_M): Rename from
5905 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
5906 with transfer type. Print transfer direction. Handle 1 and 2 byte
5908 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
5910 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
5911 Update all functions.
5913 * sim-core.c: Generate functions starting with 16 not 1.
5914 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
5915 all 5, 6 & 7 byte transfers.
5917 * sim-n-core.h (sim_core_read_misaligned_N,
5918 sim_core_write_misaligned_N): Implement.
5920 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5922 * sim-endian.h (U16_8): Implement
5924 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
5926 * sim-endian.h (VL8_16, VH8_16): Implement.
5928 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
5930 (memory_option_handler): Only zalloc modulo bytes when non-zero.
5931 (memory_option_handler): Skip comma in alias address list
5933 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5935 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5937 (parse_size, parse_addr): New functions
5938 (memory_option_handler, memory_options): Parse address & size
5939 using new functions. Pass level, space, modulo to do_memopt_add &
5942 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5944 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5945 `attach_type attach' argument with `unsigned level' argument.
5948 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5949 sim_core_attach): Replace argument attach with level. Update
5950 verification of arguments.
5951 (sim_core_map_detach, sim_core_detach): Replace argument attach
5954 * sim-basics.h (enum _attach_type): Delete.
5956 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5958 * sim-core.h (sim_core_write_8): Define.
5960 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5962 * sim-bits.h: Document ROTn macro.
5964 * sim-endian.h (H2T): Handle 16 byte variables.
5966 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5969 * sim-core.c: Do not generate sim_core_*_word.
5971 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5972 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5974 * sim-core.h (sim_core_read_unaligned_word,
5975 sim_core_read_aligned_word, sim_core_read_word,
5976 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5977 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5979 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5981 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5983 * sim-endian.h: Disable 16 byte support.
5985 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5987 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5989 * sim-n-core.h (sim_core_trace_N): New function.
5990 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5991 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5993 * sim-endian.h: Add 128 bit variant.
5995 * sim-core.h, sim-core.c: Add 128 bit variant.
5997 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5999 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6001 * sim-events.c (sim_events_process): Clear events->work_pending.
6002 (sim_events_tickn, sim_events_tick): Accumulate, instead of
6003 setting, nr_ticks_to_process.
6004 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
6005 when the event queue isn't next.
6007 * sim-events.h, sim-events.c (sim_events_slip): New function.
6009 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6011 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
6013 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
6016 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
6018 * nrun.c (main): Remove useless test of name != NULL.
6019 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
6021 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6023 * sim-fpu.c (EXPMAX): Type is unsigned.
6024 (MIN_INT, MAX_INT): Type is signed64.
6025 (i2fpu): Type of val is signed64.
6027 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6029 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
6030 a bucket size of zero.
6032 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
6033 OPTION_PROFILE_PC): Define.
6034 (profile_option_handler): Add support for --profile-pc and
6035 --profile-pc-granularity options.
6036 (profile_pc_init): When possible, compute nr buckets from bucket
6039 * sim-profile.c (profile_pc_init): Align the profile-pc end
6040 address with the profile-pc bucket size.
6042 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
6043 something less ambiguous.
6044 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
6046 * sim-profile.c (profile_pc_cleanup): New function. Move
6047 profile_pc_uninstall code to here.
6048 (profile_pc_uninstall): Call.
6049 (profile_pc_init): Call.
6051 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6053 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
6054 file using BSD gprof format.
6056 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
6058 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
6059 MSBIT64): Force result to unsignedN.
6061 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
6063 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
6065 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
6066 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
6067 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
6068 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
6070 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
6072 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
6075 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
6076 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
6078 (sim_core_attach): Rename buffer_freed to free_buffer, type
6079 void*. Ensure that allocated buffer is alligned according to
6082 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
6084 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
6085 (ALU64_SUB): Define.
6087 * Make-common.in (all): Build SIM_EXTRA_ALL first.
6088 (.gdbinit): Remove dependencies, generate once per build.
6090 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
6092 * sim-n-core.h (sim_core_read_aligned_N,
6093 sim_core_write_aligned_N): Make xaddr param type address_word not
6096 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
6098 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
6099 unpacked floating point struct. Pass sim_fpu object by reference.
6100 Add preliminary support for rounding modes.
6102 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6104 * configure: Regenerated to track ../common/aclocal.m4 changes.
6106 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6108 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
6109 WITH_TARGET_BITSIZE.
6111 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
6113 * sim-profile.c (profile_print_core): label needs empty statement.
6115 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
6117 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
6118 and zfree instead of xmalloc and free. Prevents warnings.
6120 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
6122 * configure: Regenerated to track ../common/aclocal.m4 changes.
6124 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6126 * Make-common.in (SIM_BITSIZE): Assign from configured value.
6127 (CONFIG_CFLAGS): Add SIM_BITSIZE.
6129 * aclocal.m4 (--enable-sim-bitsize): Developer option for
6130 controling the bitsize/msb of the target.
6132 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
6134 * Make-common.in: New files sim-break.c, sim-break.h.
6135 * sim-base.h: Add point to breakpoint list to sim_state_base.
6136 * sim-break.c sim-break.h: New modules that implement intrinsic
6138 * sim-module.c: Add breakpoint module.
6140 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
6142 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
6144 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
6146 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
6147 (SIGBUS) define for Windows.
6148 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
6149 * sim-resume.c: define SIGTRAP for windows.
6150 * sim-xcat.h: use token pasting if ALMOST_STDC.
6152 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6154 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
6156 (CONFIG_CFLAGS): Add same.
6158 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
6160 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
6161 (SIGNED32): use ##i32.
6163 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6165 * configure: Regenerated to track ../common/aclocal.m4 changes.
6167 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
6169 * aclocal.m4 (sim-endian): Simplify logic determining [default]
6172 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
6173 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
6174 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
6175 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
6176 (CONFIG_CFLAGS): Add same.
6178 * aclocal.m4: Perform AC_SUBST on optional options.
6180 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6182 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
6184 * sim-options.c (standard_option_handler): Typo in warning message.
6186 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
6188 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
6189 insn count. Make count conditional on there being a valid
6191 (profile_pc_init): Make default PC profile frequency an arbitrary
6194 * sim-base.h: Ditto.
6196 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
6199 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
6202 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6204 * configure: Regenerated to track ../common/aclocal.m4 changes.
6206 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6208 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
6209 configured alignment.
6211 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
6213 * configure: Regenerated to track ../common/aclocal.m4 changes.
6215 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
6217 * sim-config.c (sim_config): Check for default alignment.
6219 * sim-options.c (standard_option_handler): Add alignment option.
6221 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
6222 default alignment requirements on memory accesses.
6224 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
6226 * sim-load.c (sim_load_file): Return failure if the executable
6227 had no loadable sections.
6229 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6231 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
6234 * sim-core.c (sim_core_signal): When bad access halt simulator
6235 SIGSEGV / SIGBUS instead of aborting.
6236 (signal.h): Include.
6238 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
6239 options was missing.
6241 * sim-bits.h (MOVED): Define
6243 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6245 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
6248 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
6250 * sim-bits.c: Add 8 bit versions of bit macros.
6252 * sim-bits.h: Ditto.
6254 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6256 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
6257 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
6259 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
6260 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
6262 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
6263 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
6265 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6267 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
6268 configure.in: Output to cconfig.h instead of config.h.
6270 * configure: Regenerated to track ../common/aclocal.m4 changes.
6272 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6274 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
6277 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6279 * callback.c (os_write): divert stdout and stderr to their
6282 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
6284 * sim-profile.c (profile_print_speed): Call
6285 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
6287 * sim-events.c (sim_events_elapsed_time): New function return nr
6288 host MS consumed by the simulator.
6289 (sim_watch_valid): Use.
6291 * sim-module.c (modules): Install sim_events very very early.
6293 * sim-profile.c (profile_print): Call profile_print_pc.
6295 (profile_pc_init): New function, set up processor for PC
6297 (profile_print_pc): New function, print a PC profile.
6298 (profile_pc_event): New function, sample PC.
6300 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
6301 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
6304 * sim-options.c (sim_print_help): Pacify GCC.
6306 * sim-n-core.h (sim_core_read_aligned_N,
6307 sim_core_write_aligned_N): Add un-conditional profile call.
6308 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
6309 profile call when aligned read/write isn't used.
6311 * sim-base.h: Include sim-profile, sim-model after sim-core &
6312 sim-events allow sim-core to define useful values.
6314 * sim-profile.c (OPTION_PROFILE_CORE): Define.
6315 (profile_option_handler, profile_options): Add support for
6316 --profile-core option.
6317 (print_bar): Include when core profiling.
6318 (profile_print_core): New function, print core profile.
6320 * sim-config.c (print_sim_config): Print profile status.
6322 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
6323 WITH_PROFILE_PC_P): Define.
6324 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
6325 (PROFILE_COUNT_CORE): Define.
6327 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6329 * sim-watch.c (handle_watchpoint): Pass a char** index into the
6330 interrupt_names array as the data.
6331 (sim-watch.h): Document.
6333 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6335 * sim-options.c (sim_print_help): When the doc string is to long
6338 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
6339 that only the first few the watch options are listed. Generate
6340 meanginful usage messages.
6342 * sim-options.h (struct OPTION): Clarify use of doc_name field
6344 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
6346 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
6347 (standard_option_handler): Handle --architecture-info.
6349 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6351 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
6352 illegal zero-sized array.
6353 * sim-core.c (sim_core_xor_read_buffer): same.
6355 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
6357 * nltvals.def: Regenerate.
6359 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6361 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
6363 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6365 * sim-bits.c (MASKED): Delete.
6366 (EXTRACTED): Delete.
6367 (LSEXTRACTED, MSEXTRACTED): New functions.
6369 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
6370 (MSMASKEDn, LSMASKEDn): Add last argument.
6373 * sim-bits.h (EXTEND8, EXTEND16): Define.
6374 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
6376 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
6378 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
6379 current instruction address.
6381 * sim-inline.h (*_ENGINE): Define.
6383 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
6385 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
6387 * sim-watch.c (delete_watchpoint): Delete by ident and type.
6388 (watch_option_handler): Call delete_watchpoint with ident or type.
6389 (sim_watchpoint_install): Create interrupt specific watchpoint
6390 commands on the fly.
6391 (do_watchpoint_create): New function, create a watch point using
6392 type/int-nr info encoded in the option nr.
6393 (do_watchpoint_info): New function. List active watchpoints.
6395 * sim-watch.h: Change data structure to a list.
6397 * sim-memopt.c (memory_option_handler): Require explicit "all"
6398 before deleting all memory regions.
6400 * sim-utils.c (sim_do_commandf): New function, printf version of
6403 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
6405 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
6407 (SIGNED64, UNSIGNED64): Delete.
6408 (ALU64_ADD): Don't rely on bit endianness.
6409 (ALU64_BEGIN): Define.
6411 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
6412 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
6414 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
6415 suffix - u64, LL - to 64 bit constants.
6417 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6419 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
6421 * sim-utils.h (NZALLOC): Define - zalloc * N.
6423 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
6424 implementation of read/write functions.
6426 * Make-common.in (sim-hrw.o): New target.
6428 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
6431 * sim-memopt.c (memory_option_handler): Implement memory-size
6432 command. Implement memory-alias command. Let memory-delete delete
6434 (add_memopt): New function. Add a memory region.
6435 (do_memopt_delete): New function. Delete a memory region.
6437 * sim-utils.c (sim_elapsed_time_get): Never return zero.
6439 * sim-core.c (sim_core_detach): New function.
6440 (sim_core_map_detach): New function. Perform the actual detach.
6441 (sim_core_init): Move initialization code from here.
6442 (sim_core_install): To here.
6443 (sim_core_uninstall): And here.
6445 * sim-module.c: Add memopt module.
6447 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
6448 simulator base type.
6450 * Make-common.in (sim_main_headers): Add sim-memopt.h
6451 (sim-memopt.o): New target.
6453 * sim-core.c (sim_core_install): Add core_options to the option
6456 * sim-watch.c (watch_options): Make --delete-watch a synonym for
6459 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
6462 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
6463 address_word, add mask member.
6465 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
6466 address_word, allow for 64bit targets in 32bit host. Add modulo
6468 (sim_core_map_attach): Ditto.
6469 (new_sim_core_mapping): Ditto.
6470 (sim_core_translate): Mask address when modulo memory.
6472 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
6474 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
6476 * gdbinit.in: New file.
6477 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
6478 * Make-common.in (distclean): Delete .gdbinit.
6479 (.gdbinit): Add rule for.
6480 * configure: Regenerated to track ../common/aclocal.m4 changes.
6482 * Make-common.in (cgen-run.o): Add rule for.
6484 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6486 * sim-resume.c (sim_resume): Suspend/resume the simulator.
6488 * sim-events.c (sim_watch_valid): Compute total elapsed time from
6489 both resumed and previous elapsed time.
6490 (sim_events_init): Set initial_wallclock and current_wallclock to
6492 (sim_events_install): Install sim_events_suspend and
6494 (sim_events_watch_clock): Allow for suspended simulator when
6495 computing the time of the clock event.
6497 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
6498 initial_wallclock to elapsed_wallclock, set both to zero.
6499 (sim_events_init, sim_events_uninstall): Delete prototypes.
6501 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
6503 * sim-module.c(sim_module_resume, sim_module_suspend): New
6506 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6508 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
6511 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
6513 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
6514 * Make-common.in (TAGS): Likewise.
6515 * sim-n-bits.h: Add TAGS comments for all functions.
6516 * sim-n-core.h: Likewise.
6517 * sim-n-endian.h: Likewise.
6519 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
6521 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
6524 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
6526 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
6529 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6531 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
6532 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
6534 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
6536 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
6537 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
6538 nr_transfered and nr_this_transfer unsigned.
6540 * sim-events.c (sim_events_tickn): N is signed, as limited to
6543 * sim-n-endian.h (offset_N): Change size to unsigned.
6545 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
6547 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
6549 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
6551 * sim-options.c (sim_parse_args): Use dupargv.
6553 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
6555 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
6557 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6559 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
6562 * sim-options.c (standard_options): Add --architecture=MACHINE and
6563 --target=TARGET options.
6564 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
6565 (standard_option_handler): Handle architecture and target options.
6568 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
6570 (sim_analyze_program): Set prog_bfd architecture from
6571 STATE_ARCHITECTURE if known.
6573 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6575 * configure: Regenerated to track ../common/aclocal.m4 changes.
6578 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6580 * aclocal.m4 (enable-sim-warnings): Remove comment stating
6581 that option does not apply to certain files.
6583 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6585 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
6586 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
6587 offset from MSB/LSB.
6589 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
6590 access address of sub word quantity of a hosts 16, 32, 64 bit word
6592 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
6593 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
6594 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
6595 return N*2 byte value with argument in Hi/Lo word. Renamed from
6596 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
6598 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
6599 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
6600 so that bit offset is explicit.
6602 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
6604 * sim-utils.c (sim_analyze_program): Add prog_name argument.
6605 Update STATE_PROG_BFD when needed with a dup'd copy of the
6608 * sim-config.c (sim_config): Delete ABFD argument, use
6609 STATE_PROG_BFD directly.
6611 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
6613 * run.c (main): Pass the open ABFD to sim_create_inferior.
6615 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
6619 * sim-hload.c (sim_load): New file. Implement generic sim_load for
6620 hardware only simulator targets.
6622 * Make-common.in (sim-hload.o): Add rule.
6624 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6626 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
6627 used by copyargv and freeargv.
6629 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
6630 STATE_PROG_ARGV, not just a pointer.
6632 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6634 * configure: Regenerated to track ../common/aclocal.m4 changes.
6637 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6639 * aclocal.m4 (sim-endian): Add second argument to
6640 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
6641 default endian when not hardwired.
6643 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
6644 else failes value for target byte order.
6646 * sim-config.c (sim_config): Add abfd arguments. Set
6647 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
6649 (sim_config): Return SIM_RC, don't abort.
6652 * run.c (main): Update call to sim_open - add ABFD argument.
6653 * nrun.c (main): Add NULL ABFD argument.
6655 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
6657 * callback.c (os_poll_quit): Make static.
6658 Call sim_cb_eprintf, not p->eprintf.
6659 (sim_cb_printf, sim_cb_eprintf): New functions.
6660 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
6662 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
6663 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
6664 sim-utils.h. #include sim-utils.h.
6665 * sim-utils.h: Above decls moved here.
6666 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
6668 * sim-watch.c (action_watchpoint): Fix thinkos.
6670 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
6672 * sim-types.h: Fix defs of 64 bit data types for MSVC.
6674 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
6676 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
6677 to FORCED_ALIGNMENT case.
6679 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6681 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
6683 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
6685 * Make-common.in (libsim.a): Fix typo.
6687 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6689 * nrun.c (main): Verify the structure returned before using it.
6691 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6693 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
6696 * sim-engine.c (sim_engine_install): New function. Install the
6697 engine init functions.
6698 (sim_engine_init): [Re]initialize the simulator engine.
6700 * sim-module.c: Add sim_engine to list of modules that always
6703 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6705 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
6706 to remove the old watchpoint, not delete_watchpoint.
6707 (watch_option_handler): Action the correct watchpoint, not just
6710 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
6712 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
6713 both low and high word.
6714 (sim_core_write_aligned_N): Ditto.
6716 * sim-trace.c (set_trace_options): Delete code explicitly setting
6719 * sim-options.c (sim_print_help): Call the list commands if not a
6720 standalone simulator.
6721 (sim_print_help): Advise that some options may not be applicable.
6723 * sim-trace.c (set_trace_options): Assume core present.
6725 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
6726 buffer when full not almost full.
6728 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6730 * sim-events.c (sim_events_process): Don't blat the event queue
6731 when processing watchpoints.
6733 * sim-watch.h: Make arg unsigned long - stop sign extension.
6735 * sim-events.c (sim_watch_valid): rewrite so debugable.
6737 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
6739 * sim-watch.c (schedule_watchpoint): Add is_within option so that
6740 inequality test is possible.
6741 (handle_watchpoint): Re-pass is_within arg.
6742 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
6743 0 to schedule_watchpoint's is_within arg.
6744 (sim_watchpoint_init): Re-pass is_within arg.
6746 * sim-options.c (sim_print_help): Add is_command argument. Don't
6747 include -- prefix when called from the command line interpreter.
6749 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
6751 * sim-events.c (sim_events_watch_sim): Add is_within argument,
6752 zero indicates that the test should be reversed.
6753 (sim_events_watch_core): Ditto.
6754 (WATCH_CORE): Compare range against is_within.
6757 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
6759 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
6760 sim_core_read_buffer. Check nr-bytes transfered.
6762 * sim-core.h (sim_core_common): Define a new struct that contains
6763 the common data. to sd and cpu structures.
6764 * sim-core.c (sim_core_attach): Update.
6765 (sim_core_init): Update. Remember to copy initialized data to each
6767 (sim_core_find_mapping): Ditto.
6769 * sim-core.c (sim_core_read_buffer): Add cpu argument.
6770 (sim_core_write_buffer): Ditto.
6772 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
6773 transfer use xor version of read buffer.
6774 (sim_core_write_unaligned_N): Ditto for write.
6776 * sim-core.c (sim_core_xor_read_buffer): New function implement
6777 xor-endian data read breaking transfer up into xor-endian sized
6779 (sim_core_xor_write_buffer): Ditto for write.
6780 (reverse_n): Reverse order of arbitrary number of bytes in buffer
6781 - needed for xor-endian transfers.
6783 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6785 * sim-inline.h: Review description.
6787 * sim-core.h, sim-core.c: Reduce number of functions being inlined
6788 to just those involved in data transfers and configuration.
6790 * sim-xcat.h (XSTRING): New macro, map macro definition onto
6792 * sim-n-core.h (sim_core_read_aligned_N): Use.
6793 (sim_core_read_unaligned_N): Ditto.
6794 (sim_core_read_unaligned_N): Ditto..
6795 (sim_core_write_unaligned_N): Ditto.
6797 * sim-core.h: Add xor endian bitmap to main structure. *
6799 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
6801 (sim_core_read_aligned_N): Ditto.
6803 * sim-core.c (sim_core_set_xor_endian): New function.
6804 (sim_core_attach): Don't overwrite the per-cpu xor map when
6805 cloning the global core.
6807 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
6809 * sim-engine.h: Update below so that it is using an enumerated
6812 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
6814 * sim-engine.c (sim_engine_restart):
6815 * sim-resume.c (sim_resume): Change longjmp param/setjmp
6816 return value used for simulator restart from 0 to 2.
6818 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6820 * cgen-scache.c (scache_option_handler): Add is_command arg.
6822 * sim-model.c (model_option_handler): Add is_command argument.
6824 * sim-profile.c (profile_option_handler): Add is_command arg.
6826 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
6829 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
6830 order that they are registered.
6832 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
6833 between option and command line processing.
6835 * sim-options.c: Include stdlib.h, ctype.h.
6837 * Make-common.in (sim-watch.o): Add rule.
6838 (sim_main_headers): Assume sim-assert.h included.
6839 (sim-*.o): Simplify make rule.
6841 * sim-module.c: Add sim_watch_install to module list.
6843 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6845 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
6848 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
6849 * sim-events.c (sim_events_install): Ditto.
6850 * sim-core.c (sim_core_install): Ditto.
6851 * sim-model.c (model_install): Ditto.
6852 * sim-options.c (standard_install): Ditto.
6853 * sim-profile.c (profile_install): Ditto.
6854 * sim-reason.c (sim_stop_reason): Ditto.
6855 * sim-run.c (sim_engine_run): Ditto.
6856 * sim-utils.c (sim_analyze_program): Ditto.
6858 * sim-module.c (modules): Make profile_install and trace_install
6861 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
6863 * sim-options.c (standard_option_handler): Set the byte order.
6865 * sim-events.c (sim_events_process): Allow multi tick processing.
6866 (sim_events_tickn): New function - multi cycle tick.
6868 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
6869 prototypes. Under development.
6870 (sim_events): Replace processing with nr_ticks_to_process.
6872 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6874 * nrun.c (main): Pass callbacks to sim_open instead of using
6877 * run.c (main): Ditto.
6879 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6881 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6882 stop tk interrupting malloc calls.
6883 (sim_events_zalloc): Converse.
6885 * Make-common.in (sim_main_headers): Add sim-events.h.
6887 * sim-events.c (sim_events_schedule_after_signal): Change return
6888 type to void - signal events are strictly internal.
6889 (sim_events_init): Allocate a finite buffer for signal events.
6890 (sim_events_schedule_after_signal): Enter signal events into the
6893 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
6894 (sim_engine_restart): Ditto.
6895 (sim_engine_abort): Ditto.
6896 * sim-stop.c (sim_stop): Ditto.
6897 (control_c_simulation): Ditto.
6898 * sim-resume.c (sim_resume): Ditto.
6899 (has_stepped): Ditto.
6900 * sim-abort.c (sim_engine_abort): Ditto.
6902 * sim-basics.h (transfer_type): New type.
6904 * sim-core.c (sim_core_signal): New function. Print core signal
6906 (sim_core_find_mapping): Add transfer argument.
6908 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
6909 SIM_CORE_SIGNAL if a recoverable abort.
6910 * sim-core.c (sim_core_find_mapping): Ditto.
6912 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6914 * sim-core.c (sim_core_find_mapping): Replace calls to
6915 sim_io_error to more resiliant sim_engine_abort.
6917 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
6918 (sim_core_write_unaligned_N): Ditto.
6920 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6922 * sim-module.c: Add sim_events_install to list.
6924 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
6926 (sim_events_init): Now returns SIG_RC.
6928 * sim-run.c: New file. Generic sim_engine_run.
6929 * sim-reason.c: New file. Generic sim_stop_reason.
6930 * sim-stop.c: New file. Generic sim_stop.
6931 * sim-resume.c: New file. Generic sim_resume.
6933 * Make-common.in (sim-engine.o): Add rule.
6934 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6936 * sim-engine.h, sim-engine.c: New file. Provide generic
6937 implementation of sim_engine_halt, sim_engine_error. et.al.
6939 * sim-base.h (sim_state_base): Add member halt.
6940 (sim-engine.h): Include.
6942 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6944 * sim-events.c (sim_events_poll): Update event handler.
6946 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6948 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6950 (sim_events_watch_sim): New function.
6951 (sim_events_watch_core): New function.
6952 (sim_watch_valid): New function.
6953 (sim_events_preprocess): New function.
6954 (sim_events_process): Process the watchpoints as well as the timer
6956 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6957 (sim_events_deschedule): Check all the queues when removing an
6959 (sim_events_init): Ditto for cleaning.
6961 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6963 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6965 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6967 * callback.c (os_open): Type of arg flags is int.
6969 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6971 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6972 just like normal numbers as per IEEE rules.
6974 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6976 * callback.c (os_close): Mark the descriptor as being
6977 available if the close succeeded.
6978 (os_open): Pass 0644 as the mode of the file being created.
6980 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6982 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6985 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6986 * sim-lnline.h: Update.
6988 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6989 conversion functions.
6990 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6992 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6993 compare functions. Replacing.
6994 (sim_fpu_cmp): This. Delete.
6996 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6998 * sim-core.c (sim_core_find_mapping): Call engine_error not
6999 sim_io_error when possible.
7001 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
7003 * sim-endian.h (V1_H2): Add macro's to insert a word into a
7004 high/low double word.
7006 * sim-trace.h: Remove definition of attribute - defined in
7009 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
7011 * sim-options.h (struct OPTION): Add doc_opt as the documenting
7012 name of the option - or family of options.
7014 * sim-options.c (sim_args_command): Match command `a-b c' with
7015 option `--a-b-c' from option table.
7017 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
7019 * sim-options.c (sim_print_help): For optional arguments, wrap
7022 * sim-trace.c (set_trace_options): New function, handle optional
7023 argument and multiple assignment.
7024 (trace_option_handler): Update.
7026 * sim-trace.c (trace_option_handler): Trace branch and not fpu
7027 when branch tracing selected.
7029 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
7031 * sim-trace.c (trace_one_insn): Make a va-args function.
7033 * sim-trace.c (trace_vprintf): New function, va-arg version of
7036 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
7038 * sim-trace.c (trace_uninstall): Don't close a file twice.
7039 * sim-profile.c (profile_uninstall): Likewise.
7041 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
7043 * sim-trace.c (toplevel): Include bfd.h.
7044 (trace_options): Note that --trace-linenum also turns on
7045 --trace-insn. Add --trace-{branch,semantics}.
7046 (trace_option_handler): If --trace-linenum, also turn on
7047 --trace-insn. Add --trace-branch support. If --trace-semantics,
7048 turn on ALU, FPU, branch, and memory tracing.
7049 (trace_one_insn): New function to trace an instruction. Support
7051 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
7053 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
7054 (MAX_TRACE_VALUES): Use 32, not 12 by default.
7055 (TRACE_branch): Add new mask.
7056 (TRACE_*_P): Define all possible trace_p macros.
7057 (trace_one_insn): Declare function.
7059 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
7061 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
7062 GNU C doesn't support __attributes__.
7063 ({trace,debug}_printf): Add attribute's so -Wformat can check the
7066 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
7068 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
7069 addresses are masked forcing them to be correctly aligned.
7070 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
7071 * sim-config.c (config_alignment_to_a): Update.
7073 * sim-core.h (sim_cpu_core): New data type contains cpu specific
7075 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
7077 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
7078 processor specific core maps.
7079 (sim_core_map_attach): Copy the core map data to each of the
7080 processor specific core data structures.
7081 * sim-core.c (sim_core_find_mapping): Update.
7083 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
7084 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
7085 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
7086 alternatives that handle unaligned addresses.
7087 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
7089 * cgen-utils.c (sim_disassemble_insn): Update.
7091 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
7093 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
7096 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
7099 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
7101 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
7103 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
7106 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
7109 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
7111 * cgen-trace.c: Prepend additional trace_printf argument.
7113 * cgen-utils.c (sim_disassemble_insn): Add additional core
7116 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
7118 * nrun.c (main): Catch/report errorenous simulator states.
7120 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
7121 * sim-trace.c: #include string.h/strings.h so that memset is
7123 * sim-utils.c: Ditto.
7124 * sim-profile.c: Ditto. And stdlib.h.
7125 (print_bar): Only define when used by instruction or memory profiler.
7127 * sim-options.c (standard_option_handler): Make ul more local.
7129 * sim-load.c (sim_load_file): Make the name constant.
7130 (sim_load_file): Passify gcc.
7132 * sim-utils.h: New file, pre-declare utilites in corresponding .c
7134 * sim-utils.c, sim-load.c: Include sim-utils.h.
7136 * sim-base.h (sim_cpu): Pre define here so available to all.
7138 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
7139 Restore the sim_cpu and instruction_address arguments so that full
7140 information is available to the abort function.
7141 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
7142 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
7144 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
7145 tracing support for sim-events and sim-core.
7146 (trace_option_handler): Convert #if to if where possible so always
7147 compiled/checked by C compiler.
7148 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
7150 * sim-base.h: Adjust comment documenting how to define the cpu
7152 (sim_state_base): Add sim_core and sim_events to simulator base
7155 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
7156 * sim-core.c (sim_core_init, sim_core_attach,
7157 sim_core_find_mapping): Update.
7158 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
7159 update_time_from_event, insert_sim_event,
7160 sim_events_schedule_after_signal, sim_events_deschedule,
7161 sim_events_tick): Ditto.
7163 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
7164 sim-model.h): Move #includes from here.
7165 * sim-base.h: To here.
7166 (sim-core.h, sim-events.h, sim-io.h): Include also
7168 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
7170 * callback.c (default_callback): Missing initialisers.
7172 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
7174 * sim-utils.c (sim_add_commas): New function.
7175 * sim-basics.h (sim_add_commas): Add prototype.
7176 * cgen-scache.c (scache_print_profile): Print commas in numbers.
7177 * sim-profile.c (COMMAS): New macro.
7178 (print_*): Use it to print commas in numbers.
7180 * configure: Regenerated.
7182 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
7183 (cgen_state): New member run_fast_p.
7184 (cgen_init): Add prototype.
7185 (sim_disassemble_insn): New arg `cpu'.
7186 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
7187 * cgen-utils.c (cgen_init): New function.
7188 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
7189 * genmloop.sh: Call engine_halt if loop exits.
7191 * Makefile.in (sim-options_h): Define.
7192 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
7193 (sim-model.o): Add new rule.
7194 (cgen-{scache,trace,utils}.o): Add new rules.
7195 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
7196 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
7197 Indent output by 2 spaces.
7198 * cgen-scache.h (scache_print_profile): Update.
7199 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
7200 Use trace_printf, not fprintf.
7201 (trace_extract): Use trace_printf, not cgen_trace_printf.
7202 * genmloop.sh (!FAST case): Increment `insn_count'.
7203 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
7204 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
7205 access macro's name.
7206 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
7207 Change return type to SIM_RC.
7208 (sim_core_{install,uninstall}): New functions.
7209 * sim-core.h (sim_core_{install,uninstall}): Declare.
7210 (sim_core_init): Use EXTERN_SIM_CORE to define it.
7211 Change return type to SIM_RC.
7212 * sim-model.h (models,machs,model_install): Declare.
7213 * sim-module.c (modules): Add scache_install, model_install.
7214 (sim_post_argv_init): Set cpu->state backlinks.
7215 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
7216 (standard_option_handler): Likewise.
7217 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
7220 (profile_options): Delete --profile-simcache.
7221 (profile_option_handler): Likewise.
7222 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
7224 (profile_print_{memory,model}): Likewise.
7225 (profile_print_simcache): Delete.
7226 (profile_print_speed): New function.
7227 (profile_print): Rewrite.
7228 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
7229 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
7230 (PROFILE_DATA): Delete members simcache_{hits,misses}.
7231 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
7232 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
7233 (profile_print): Update prototype.
7235 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
7237 * cgen-scache.[ch], cgen-sim.h: New files.
7238 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
7239 * sim-model.c: New file.
7241 * Make-common.in (clean targets): Undo patch of Apr. 22.
7243 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
7245 * sim-n-bits.h (signed): If we have a standard compiler, undef
7246 signed, so that signedN is defined correctly.
7248 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
7250 * sim-module.h, sim-model.h, sim-profile.h: New files.
7251 * sim-module.c, sim-profile.c: New files.
7252 * Make-common.in (SIM_PROFILE): Define
7253 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
7254 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
7255 (sim_module.o,sim-profile.o): Add rules for.
7256 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
7257 (--enable-sim-profile): Add.
7258 * configure: Regenerated.
7259 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
7260 model. Move trace and profile support to sim-{trace,profile}.h.
7261 New members trace_data, profile_data.
7262 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
7263 * sim-config.h: Provide default definition of WITH_PROFILE.
7264 (WITH_TRACE): Change default to -1.
7265 (MAX_NR_PROCESSORS): Always define.
7266 * sim-options.c: Move trace and profile support to
7267 sim-{trace,profile}.h.
7268 (sim_pre_argv_init): Moved to sim-model.c.
7269 (standard_install): New function.
7270 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
7271 (standard_install): Declare.
7272 * sim-trace.c: Tracing option handling moved here from sim-options.c.
7273 (trace_install, trace_uninstall): New functions.
7274 (trace_printf): Update reference to TRACE_FILE.
7275 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
7276 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
7277 (WITH_TRACE_FOO_P): Define.
7278 (trace_install): Declare.
7279 (TRACE_DATA): New struct.
7281 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
7283 * run.c: Undo last exec_bfd patch.
7284 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
7286 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
7288 * run.c (exec_bfd): Add back in.
7289 (main): Set exec_bfd.
7291 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
7293 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
7295 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
7297 * sim-events.c (insert_sim_event): Call sim_io_error instead of
7298 less well defined engine_error.
7299 * sim-core.c: Ditto.
7301 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
7303 * Make-common.in: Change clean targets to use :: so that other
7304 Makefiles can have their own clean targets.
7305 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
7306 __STDC__ to control use of stdarg vs. varargs syntax. Some
7307 systems can't use __STDC__, but require stdarg.
7309 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
7311 * sim-options.c (standard_options): Add --endian.
7312 (standard_option_handler): Likewise.
7314 * nrun.c: #include <signal.h>.
7315 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7316 handler that calls sim_stop ().
7318 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
7320 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7321 handler that calls sim_stop (). Simulators may still be
7322 establishing their own handler.
7324 * sim-events.c (sim_events_poll): Rename from
7325 sim_events_at_large_int. Poll IO.
7327 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
7330 * callback.c (os_poll_quit): New function poll for quit signal
7332 (default_callback): Include magic number.
7334 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
7336 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
7337 Check for functions getrusage, time.
7338 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
7339 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
7340 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
7341 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
7343 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
7345 * sim-options.c, sim-options.h: New files.
7346 * sim-config.h (WITH_DEBUG): Provide default value of zero.
7347 * Make-common.in (nrun.o): Add rules for.
7350 * run.c (main): Check return value of sim_open.
7352 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
7353 (sim_main_headers): Add sim-trace.h.
7354 * run.c (exec_bfd, target_byte_order): Delete.
7355 (main): Pass -E <endian> to sim_open. Delete code to load sections,
7356 call sim_load instead. Check return code of sim_create_inferior.
7357 * sim-base.h (CURRENT_STATE): Define.
7358 (sim_state_base): Make typedef. New members options, prog_argv,
7359 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
7360 mem_size, memory [+ corresponding access macros].
7361 (sim_cpu_base): New typedef.
7362 * sim-trace.h: New file.
7363 * sim-trace.c: New file.
7364 * sim-basics.h: #include it.
7365 * sim-load.c: New file.
7367 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
7369 * Make-common.in (INSTALL): Set to @INSTALL@.
7370 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7371 (install-common): Depend upon installdirs. Use
7372 $(program_transform_name) directly, rather than using
7374 (installdirs): New target.
7375 * Makefile.in (INSTALL): Set to @INSTALL@.
7376 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7377 (install-man): Depend upon installdirs. Use
7378 $(program_transform_name) directly, rather than using
7380 (installdirs): New target.
7382 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
7384 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
7387 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7389 * sim-basics.h: Only bring in config.h and tconfig.h if
7392 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7394 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
7395 numbering convention of the target.
7396 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
7397 and WITH_TARGET_WORD_MSB.
7398 (sim_config): When possible, check for consistency with bitsize
7401 * sim-bits.h: Allow MSB to be other than zero.
7402 * sim-bits.c: Ditto.
7403 * sim-n-bits.h: Ditto.
7405 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
7406 * sim-n-bits.h (MSMASKEDn): Ditto.
7408 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
7410 * Makefile.in (INSTALL): Change install.sh to install-sh.
7412 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
7414 * sim-base.h (sim_state_base): Move `magic' to end of struct.
7416 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7418 * run.c (main): Check that a program to run was specified.
7420 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7422 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
7424 * configure: Regenerated to track ../common/aclocal.m4 changes.
7427 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
7429 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
7430 * sim-config.h: To here.
7432 * Make-common.in (SIM_EXTRA_DEPS): New config var.
7433 (sim_main_headers): Define.
7434 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
7435 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
7437 (sim-utils.o): Add rule for.
7438 * sim-utils.o: New file.
7439 * sim-basics.h: #include sim-base.h.
7440 (zalloc): Make argument unsigned long.
7441 * sim-base.h: New file.
7442 * sim-inline.h (SIM_IO support): Delete.
7443 * sim-io.h: Delete inline support.
7444 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
7445 * sim-config.c: sim-state.h renamed to sim-main.h.
7446 * sim-core.c: Likewise.
7447 * sim-events.c: Likewise.
7449 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
7451 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
7452 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
7454 * configure: Regenerated to track ../common/aclocal.m4 changes.
7456 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7458 * configure: Regenerated to track ../common/aclocal.m4 changes.
7460 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7462 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
7463 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
7464 are defined by the configure.
7466 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
7468 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
7469 reserved-bits): Always define.
7471 * sim-config.h, sim-config.c (sim_config): New function - and new
7472 file - co-ordinate the setting/checking of the common simulator
7473 configuration options.
7475 * Make-common.in (sim-config.o): Add rule.
7477 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
7479 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
7480 va_list from void *, since va_list might not be a pointer type.
7482 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7484 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
7486 (offset_N): Correct computation of LE offset.
7488 * sim-io.c (sim_io_error): Include a new line when reporting
7491 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
7494 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
7496 * run.c: Include alloca-conf.h.
7498 * callback.c (os_evprintf_filtered): Fix typo.
7500 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7502 * run.c (string.h, strings.h, stdlib.h): Include.
7504 * sim-events.c (sim_events_tick): Recent cleanup failed to return
7505 0 when nothing pending.
7507 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
7508 will soon be going away.
7509 (getopt): Plicate GCC.
7511 * sim-endian.c (sim-io.h): Plicate GCC.
7512 * sim-bits.c (sim-io.h): Ditto.
7513 * sim-n-bits.h (ROTn): Ditto.
7515 * sim-io.c (sim_io_error): Correct check for NULL.
7517 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
7519 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
7522 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7524 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
7525 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
7527 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7529 * sim-alu.h: Include sim-xcat.h.
7531 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7533 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
7534 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
7537 * sim-events.c (sim_events_at_large_int): New function. Just
7538 schedules an event every large-int ticks.
7539 (sim_events_init): Call.
7540 (sim_events_tick, sim_events_process): Move async handing to
7541 sim_events_process. Move timer decrement so that it occures after
7542 events have been processed.
7544 * sim-basics.h (struct _engine): Remove declaration.
7546 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
7547 everything with same. Rename global struct to SIM_DESC.
7548 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
7549 * sim-io.h, sim-io.c: Ditto.
7551 * sim-assert.h: New file. Optional assertion checking macros.
7552 * sim-io.c (sim_io_error): Make just this function tolerant to
7555 * sim-xcat.h: New file. Define concatenate macros.
7556 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
7557 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
7561 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7563 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
7565 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7567 * sim-inline.h: Add definitions for sim-types.
7568 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
7571 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7573 * sim-events.h: Remove defunct reference to callback struct.
7575 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7577 * configure: Re-generate.
7579 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7581 * Make-common.in (CSEARCH): Do not include the gdb directory in
7584 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7586 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7587 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
7588 to explicitly incorporate these.
7590 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
7591 specify the alignment restrictions of the target architecture -
7592 without this option all alignment restrictions are accomodated.
7593 (--enable-sim-assert): New option. Conditionally compile in
7594 assertion statements.
7595 (--enable-sim-float): New option. Strongly specify the target's
7596 floating point support.
7597 (--enable-sim-hardware): New option. Specify the hardware devices
7598 included in the simulation.
7599 (--enable-sim-packages): New option. Specify the hardware
7600 packages included in the simulation.
7601 (--enable-sim-regparm): New option. Specify that parameters be
7602 passed in registers instead of on the stack.
7603 (--enable-sim-reserved-bits): New option. Specify that reserved
7604 bits within an instruction are are correctly set.
7605 (--enable-sim-smp): New option. Specify the level of SMP support
7606 to be included in the simulator.
7607 (--enable-sim-stdcall): New option. Specify an alternative
7608 function call convention.
7609 (--enable-sim-xor-endian): New option. Configure xor-endian
7610 support used by some targets to implement bi-endian support.
7612 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7614 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
7615 host endianness to be overridden.
7616 (--enable-sim-endian): Allow the target platform's byte order
7618 (--enable-sim-inline): Control the inlining of common components.
7619 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
7620 (--enable-sim-warnings): Enable additional GCC compiler checks.
7621 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7624 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
7625 sim-*-n.h so that the names are uniq on dos machines
7626 * sim-core.c, sim-bits.c, sim-endian.c: Update.
7628 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
7630 * run.c: #include "libiberty.h".
7631 (main): New locals sd,no_args,sim_argv.
7632 Run buildargv on -a option. Pass argv to sim_open, argv[0]
7633 is program name. Update call to sim_set_callbacks.
7634 Record result of sim_open, pass to other sim_foo routines.
7636 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
7638 * callback.c (os_printf_filtered): Do not call exit(1) or print a
7641 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7643 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
7644 Route stdout through buffered IO.
7646 * callback.c: Add os_flush_stderr, os_write_stderr,
7647 os_evprintf_filtered functions to route error output through
7650 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
7651 Correct return type - should be void.
7653 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7655 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
7657 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
7658 not provide a default value as undefined indicates disable code.
7660 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7662 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
7664 * sim-events.h, sim-events.c: Ditto.
7665 * sim-io.h, sim-io.c: Ditto.
7667 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7669 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
7671 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
7672 extract the tail or least signifiant bits from an integer of the
7675 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
7676 WITH_TARGET_BITSIZE so that the compilation will fail when an
7677 unsupported bitsize value is defined.
7679 (INSERTED*): Convert to functions.
7680 (EXTRACTED*): Ditto.
7682 (SIGN_EXTEND, SEXT): Change to more terse name.
7684 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7686 * sim-inline.h: Allow explicit control over which .c files will be
7687 included by their header.
7689 * sim-inline.h: Allow explicit control over which .c files use the
7690 alternative - REGPARM - parameter passing mechanism.
7692 * sim-inline.h, sim-inline.c: Don't attempt to include any of
7693 icache.c, idecode.c, semantics.c or support.c. Those names are
7694 not generally applicable.
7696 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7698 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
7699 in a fashion similar to sim-endian-n.
7701 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
7702 both value and address macro's.
7704 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7706 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
7708 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
7709 generic L_word, H_word macro's.
7711 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
7713 * sim-basics.h: Borrow code from ppc directory.
7714 * sim-bits.c: Ditto.
7715 * sim-bits.h: Ditto.
7716 * sim-config.h: Ditto.
7717 * sim-endian-n.h: Ditto.
7718 * sim-endian.c: Ditto.
7719 * sim-endian.h: Ditto.
7720 * sim-inline.c: Ditto.
7721 * sim-inline.h: Ditto.
7722 * sim-types.h: Ditto.
7724 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
7726 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
7727 all the ALU size alternatives and then auto-configure a default.
7729 * sim-alu.h: Copy ppc/idecode_expression.h.
7731 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
7733 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
7734 sign extend a bit within a value.
7736 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
7737 a pointer into the middle of a host word.
7738 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
7740 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
7742 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
7743 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
7744 appropriate definitions of read, write, etc. Add prototype for
7747 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
7749 * Makefile.in (libcommon.a): Delete.
7750 (callback.o,targ-map.o): Delete, moved to Make-common.in.
7751 (gentmap,targ-vals.h,targ-map.c): Likewise.
7752 (run-autoconf): Delete.
7753 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
7754 (common makefile fragment): Moved back into ...
7755 * Make-common.in: Resurrect.
7756 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
7757 * configure: Regenerated.
7759 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
7761 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
7762 (SIM_AC_OUTPUT): To here.
7764 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
7766 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
7767 comments and single quotes. Fixes a problem found on hpux.
7769 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
7771 * aclocal.m4: Remove Make-common.in from dependencies.
7772 * (distclean): Remove targ-vals.def.
7774 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
7775 into here. Makes insertion into makefiles easier. Also, change
7776 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
7777 targ-map.o, and run are built. They are now built in the
7778 individual simulator directories, taking sources from ../common as
7779 necessary. This replaces the merging of libcommon.a into
7780 linsim.a, which was problematic for the WinGDB build process.
7781 * run.c: Include config.h from . instead of ../common.
7782 * Make-common.in: Remove. It's no longer necessary.
7784 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
7786 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
7787 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
7789 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
7791 * run.c (main): Set target_byte_order before call to sim_open.
7793 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
7795 * callback.c: #include <stdlib.h>
7796 (os_error): New function.
7797 (default_callback): Add os_error.
7799 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
7801 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
7802 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
7804 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
7806 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
7808 * run.c: #include ../common/config.h, tconfig.h.
7809 (myname): New static global.
7810 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
7811 Only process -c ifdef SIM_HAVE_SIMCACHE.
7812 Only process -p/-s ifdef SIM_HAVE_PROFILE.
7813 Parse program name from argv[0] and use in error messages.
7814 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
7815 Add support for incomplete h8/300 termination indicators.
7816 (usage): Make more verbose.
7817 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
7818 * Makefile.in,Make-common.in,callback.c: New files.
7819 * nltvals.def,gentmap.c,gentvals.sh: New files.
7821 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
7823 * run.c: Include stdarg.h if __STDC__.
7825 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
7827 * run.c (main): Don't print out anything if the signal
7828 number is zero (ie no signal).
7830 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7832 * run.c (main): Print out if the program raised a signal.
7834 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7836 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
7839 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
7841 * run.c (main): Explicitly cast malloc() parameter.
7843 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7845 * run.c (sim_bfd): New global to hold the bfd pointer for the
7847 (main): Initialize sim_bfd.
7849 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
7851 * run.c (main): Use new bfd_big_endian macro.
7853 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7855 * run.c (main): Removed SH specific comments, so source is
7856 generic. Also updated to only load relevant sections. Moved
7857 sim_open() to after callback attach (to match GDB).
7859 * run.1: Removed SH specific comments.
7861 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7863 * run.c (main): Always return sigrc at end.
7865 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7867 * run.c (main): Print error diagnostic and exit if bfd_openr() or
7868 bfd_check_format() fails.
7870 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
7872 * run.c, run.1: From sh directory.