1 2021-05-01 Mike Frysinger <vapier@gentoo.org>
3 * sim-options.c (dup_arg_p): Call htab_empty.
5 2021-05-01 Mike Frysinger <vapier@gentoo.org>
7 * dv-sockser.c (dv_sockser_install): Rename to ...
8 (sim_install_dv_sockser): ... this.
9 * dv-sockser.h (dv_sockser_install): Delete.
10 * sim-module.c: Delete dv-sockser.h include.
11 (early_modules): Delete dv_sockser_install.
13 2021-05-01 Mike Frysinger <vapier@gentoo.org>
15 * Make-common.in (LIB_OBJS): Add modules.o.
16 (generated_files): Add modules.c.
17 (modules.c): New target.
18 * sim-module.c (modules): Rename to ...
19 (early_modules): ... this. Delete 0 sentinel.
20 (early_modules_len): Define.
21 (sim_modules_detected, sim_modules_detected_len): Declare.
22 (sim_pre_argv_init): Call sim_module_install_list.
23 (sim_module_install): New function.
24 (sim_module_install_list): New function.
25 * sim-module.h (sim_module_install_list): Declare.
27 2021-05-01 Mike Frysinger <vapier@gentoo.org>
29 * nrun.c (strsignal): New prototype.
31 2021-05-01 Mike Frysinger <vapier@gentoo.org>
33 * callback.c (wrap): Delete.
34 (os_close): Replace wrap call with direct call & setting last_errno.
35 (os_isatty, os_lseek, os_read_stdin, os_write, os_rename, os_system,
36 os_time, os_unlink, os_stat, os_fstat, os_lstat): Likewise.
38 2021-04-26 Mike Frysinger <vapier@gentoo.org>
40 * gennltvals.py (TARGETS): Delete. Update comment.
41 (gentvals): Unify common code paths.
42 (gen_targets): Change TARGETS to TARGETS_DIRS. Call gentvals without
44 * nltvals.def: Regenerate.
46 2021-04-25 Tom Tromey <tom@tromey.com>
48 * sim-options.c (compare_strings): New function.
49 (ARG_HASH_SIZE, ARG_HASH): Remove.
50 (dup_arg_p): Use htab_t.
51 (sim_parse_args): Remove assert.
53 2021-04-24 Mike Frysinger <vapier@gentoo.org>
55 * dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC.
57 2021-04-24 Mike Frysinger <vapier@gentoo.org>
59 * sim-options.c (ARG_HASH_SIZE): Increase to 256.
60 (sim_parse_args): Call SIM_ASSERT.
62 2021-04-22 Tom Tromey <tom@tromey.com>
64 * sim-utils.c: Update includes.
66 2021-04-22 Tom Tromey <tom@tromey.com>
68 * Make-common.in: Require GNU make.
70 2021-04-22 Tom Tromey <tom@tromey.com>
72 * Make-common.in (stamp-hw): New target.
73 (hw-config.h): Depend on stamp-hw.
74 (mostlyclean): Remove stamp-hw and hw-config.h.
76 2021-04-22 Tom Tromey <tom@tromey.com>
78 * Make-common.in (mostlyclean): Now an alias for clean, not
81 2021-04-22 Tom Tromey <tom@tromey.com>
83 * sim-events.c (sim_events_schedule): Use
84 sim_events_schedule_tracef.
86 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
88 * callback.c (os_printf_filtered, os_vprintf_filtered,
89 os_evprintf_filtered, os_error): Use ATTRIBUTE_PRINTF.
90 * sim-engine.h (sim_engine_abort, sim_engine_vabort): Likewise.
91 * sim-events.h (sim_events_schedule_tracef,
92 sim_events_schedule_vtracef): Use ATTRIBUTE_NULL_PRINTF.
94 2021-04-18 Mike Frysinger <vapier@gentoo.org>
96 * gennltvals.py (TARGETS): Add moxie.
97 * nltvals.def: Regenerate.
99 2021-04-18 Mike Frysinger <vapier@gentoo.org>
101 * gennltvals.py (TARGET_DIRS, TARGETS): Add sh.
102 * nltvals.def: Regenerate.
104 2021-04-18 Mike Frysinger <vapier@gentoo.org>
106 * gennltvals.py (TARGETS): Add rx.
107 * nltvals.def: Regenerate.
109 2021-04-18 Mike Frysinger <vapier@gentoo.org>
111 * gennltvals.py (TARGETS): Add m32c.
112 * nltvals.def: Regenerate.
114 2021-04-18 Mike Frysinger <vapier@gentoo.org>
116 * gennltvals.py (TARGETS): Add iq2000.
117 * nltvals.def: Regenerate.
119 2021-04-18 Mike Frysinger <vapier@gentoo.org>
121 * syscall.c (cb_syscall): Implement CB_SYS_getpid.
123 2021-04-15 John Baldwin <jhb@FreeBSD.org>
125 * Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS.
126 (ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after
129 2021-04-12 Mike Frysinger <vapier@gentoo.org>
131 * sim-cpu.c (sim_cpu_alloc_all): Delete 3rd arg. Delete 2nd arg to
133 (sim_cpu_alloc): Move extra_bytes to local var. Add result of
134 cgen_cpu_max_extra_bytes.
135 * sim-cpu.h (sim_cpu_alloc_all): Delete 3rd arg.
136 (sim_cpu_alloc): Delete 2nd arg.
138 2021-04-08 Tom Tromey <tom@tromey.com>
140 * cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use
141 new-style declaration.
143 2021-04-03 Mike Frysinger <vapier@gentoo.org>
145 * Make-common.in (install-common): Install as run-$arch and
146 libsim-$arch.a when not the primary arch.
148 2021-04-02 Mike Frysinger <vapier@gentoo.org>
150 * Make-common.in (CFLAGS_FOR_BUILD): Define.
151 (BUILD_CFLAGS): Replace -g -O with $(CFLAGS_FOR_BUILD).
153 2021-03-13 Mike Frysinger <vapier@gentoo.org>
155 * Make-common.in (LINK_FOR_BUILD): Change BUILD_LDFLAGS to
158 2021-03-13 Mike Frysinger <vapier@gentoo.org>
160 * Make-common.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
161 (gentmap.o): New rule.
162 (gentmap): Call LINK_FOR_BUILD.
164 2021-03-07 Mike Frysinger <vapier@gentoo.org>
166 * Make-common.in (check): Delete body.
168 2021-02-28 Mike Frysinger <vapier@gentoo.org>
170 * Make-common.in (SIM_EXTRA_LIBDEPS): Delete.
171 (LIBDEPS): Delete $(SIM_EXTRA_LIBDEPS).
173 2021-02-27 Mike Frysinger <vapier@gentoo.org>
175 * Make-common.in (SIM_EXTRA_ALL): Delete.
176 (all): Delete $(SIM_EXTRA_ALL).
178 2021-02-21 Mike Frysinger <vapier@gentoo.org>
180 * acinclude.m4: Removed.
182 2021-02-13 Mike Frysinger <vapier@gentoo.org>
184 * acinclude.m4: Delete all sinclude & m4_include calls.
186 2021-02-13 Mike Frysinger <vapier@gentoo.org>
188 * aclocal.m4: Delete.
190 2021-02-06 Mike Frysinger <vapier@gentoo.org>
192 * sim-events.c: Include sim-cpu.h.
193 (sim_event_watchpoints): Define watch_pc.
194 (sim_events_watch_pc): New function.
195 (WATCH_SIM): Handle watch_pc.
196 * sim-events.h (sim_events_watch_pc): New prototype.
197 * sim-watch.c (schedule_watchpoint): Replace sim_events_watch_sim with
199 * sim-watch.h (sim_watchpoints): Delete pc.
201 2021-02-06 Mike Frysinger <vapier@gentoo.org>
203 * acinclude.m4 (SIM_AC_COMMON): Replace AC_CONFIG_HEADER with
206 2021-02-06 Mike Frysinger <vapier@gentoo.org>
208 * Make-common.in (HDEFINES, TDEFINES): Delete.
209 (CONFIG_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
210 * acinclude.m4 (SIM_AC_COMMON): Delete AC_SUBST(HDEFINES) and
211 bfd/configure.host sourcing.
213 2021-02-04 Mike Frysinger <vapier@gentoo.org>
215 * gennltvals.py (TARGETS): Add riscv.
216 (TARGET_DIRS): Likewise.
217 * nltvals.def: Regenerate from the latest libgloss sources.
219 2021-01-31 Mike Frysinger <vapier@gentoo.org>
221 * cgen-trace.c (cgen_trace_insn): Add "%s" argument.
223 2021-01-31 Stafford Horne <shorne@gmail.com>
225 * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.
226 (fixdfsi): Change res from unsigned32 to signed32.
227 (fixdfdi): Change res from unsigned64 to signed64.
229 2021-01-30 Mike Frysinger <vapier@gentoo.org>
231 * gennltvals.sh: Replace shell script with ...
232 * gennltvals.py: ... this Python script.
233 * nltvals.def: Regenerate.
235 2021-01-30 Mike Frysinger <vapier@gentoo.org>
237 * sim-watch.c (schedule_watchpoint): Change sizeof_pc to sizeof
239 * sim-watch.h (struct _sim_watchpoints): Delete sizeof_pc.
241 2021-01-30 Mike Frysinger <vapier@gentoo.org>
243 * sim-profile.c (profile_pc_init): Change 1 in shifts to 1ULL.
245 2021-01-30 Mike Frysinger <vapier@gentoo.org>
247 * sim-hw.c (merge_device_file): Replace fgets with getline.
249 2021-01-30 Mike Frysinger <vapier@gentoo.org>
251 * gennltvals.sh (gen_arches): Sort calls by first arg.
252 * nltvals.def: Regenerate.
254 2021-01-18 Mike Frysinger <vapier@gentoo.org>
256 * Make-common.in (version.c): Simplifiy args and call move-if-change.
257 * create-version.sh: Delete host & target alias logic. Write to the
260 2021-01-18 Mike Frysinger <vapier@gentoo.org>
262 * configure, configure.ac, Makefile.in: Delete.
264 2021-01-13 Mike Frysinger <vapier@gentoo.org>
266 * sim-watch.c (default_interrupt_handler): Define.
267 (sim_watchpoint_install): Set default interrupt_handler to new
268 default_interrupt_handler.
270 2021-01-13 Mike Frysinger <vapier@gentoo.org>
272 * sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1.
274 2021-01-13 Mike Frysinger <vapier@gentoo.org>
276 * sim-events.c (sim_events_watch_sim): Change byte_order type to
278 (sim_events_watch_core): Likewise.
279 * sim-events.h (sim_events_watch_sim, sim_events_watch_core): Likewise.
280 * sim-watch.c (schedule_watchpoint): Change 0 to HOST_BYTE_ORDER in
281 call to sim_events_watch_sim.
283 2021-01-12 Mike Frysinger <vapier@gentoo.org>
285 * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
287 2021-01-11 Mike Frysinger <vapier@gentoo.org>
289 * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
291 2021-01-11 Mike Frysinger <vapier@gentoo.org>
293 * sim-core.c (sim_memory_map): Change %#x to PRIxTW.
295 2021-01-11 Mike Frysinger <vapier@gentoo.org>
297 * acinclude.m4 (SIM_AC_COMMON): Delete checks for stdlib.h, string.h,
298 strings.h, time.h, and errno.h.
299 * callback.c, cgen-scache.c, dv-glue.c, dv-pal.c, dv-sockser.c,
300 hw-alloc.c, hw-base.c, hw-device.c, hw-events.c, hw-handles.c,
301 hw-ports.c, hw-properties.c, hw-tree.c, nrun.c, sim-arange.c,
302 sim-events.c, sim-fpu.c, sim-hw.c, sim-load.c, sim-memopt.c,
303 sim-options.c, sim-profile.c, sim-trace.c, sim-utils.c,
304 sim-watch.c, syscall.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H,
305 HAVE_STRING_H, HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H,
306 and strings.h include.
308 2021-01-09 Mike Frysinger <vapier@gentoo.org>
310 * sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete.
311 * sim-core.c, sim-watch.c: Include libiberty.h.
313 2021-01-09 Mike Frysinger <vapier@gentoo.org>
315 * acinclude.m4: Replace duplicate text with pointer to README-HACKING.
317 2021-01-09 Mike Frysinger <vapier@gentoo.org>
319 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Document 1st argument.
320 Set WERROR_CFLAGS when first arg is not set or is "yes".
322 2021-01-09 Mike Frysinger <vapier@gentoo.org>
324 * hw-base.c (full_name_of_hw): Delete full_name. Replace
325 hw_strdup call with hw_malloc.
327 2021-01-09 Mike Frysinger <vapier@gentoo.org>
329 * cgen-par.c: Include stdlib.h.
330 * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
332 2021-01-08 Mike Frysinger <vapier@gentoo.org>
334 * Make-common.in (C_DIALECT): Define.
335 (COMPILE.pre): Append $(C_DIALECT).
336 * acinclude.m4 (SIM_AC_COMMON): Probe C11 to define C_DIALECT.
338 2021-01-07 Mike Frysinger <vapier@gentoo.org>
340 * sim-core.c (sim_memory_map): Define.
342 2021-01-04 Mike Frysinger <vapier@gentoo.org>
344 * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
345 * configure: Regenerate.
347 2021-01-04 Mike Frysinger <vapier@gentoo.org>
349 * sim-options.c (sim_print_version): Print out more details when
350 is_command is non-zero.
352 2021-01-04 Mike Frysinger <vapier@gentoo.org>
354 * sim-options.c (standard_option_handler): Call sim_print_version.
355 (sim_print_version): New function.
356 * sim-options.h (sim_print_version): New prototype.
358 2021-01-04 Mike Frysinger <vapier@gentoo.org>
360 * sim-config.c (print_sim_config): Rename to ...
361 (sim_config_print): ... this.
362 * sim-config.h: Likewise.
364 2021-01-02 Mike Frysinger <vapier@gentoo.org>
366 * sim-bits.h (_ALIGNa, _FLOORa, ALIGN_8, ALIGN_16, ALIGN_PAGE,
367 FLOOR_PAGE): Delete unused macros.
368 (align_up, align_down): Define.
370 2020-08-10 Tom de Vries <tdevries@suse.de>
372 * sim-cpu.c: Include stdlib.h for free.
374 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
376 * nrun.c: Include stdlib.h.
377 * sim-core.c: Likewise.
378 * sim-engine.c: Likewise.
379 * sim-io.c: Likewise.
380 * sim-module.c: Likewise.
381 * sim-reason.c: Likewise.
383 2019-12-19 Tom Tromey <tromey@adacore.com>
386 * Makefile.in (install-strip): New target.
388 2019-12-01 Pavel I. Kryukov <kryukov@frtk.ru>
390 * sim-utils.c: Prevent buffer overflow.
392 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
394 * gennltvals.sh: Add PRU libgloss target.
395 * nltvals.def: Regenerate from the latest libgloss sources.
397 2019-06-13 Stafford Horne <shorne@gmail.com>
399 * cgen-accfp.c (unorderedsf, unordereddf): New functions.
400 (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf.
401 * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
403 2019-06-13 Stafford Horne <shorne@gmail.com>
405 * cgen-accfp.c (floatdidf, fixdfdi): New functions.
406 (cgen_init_accurate_fpu): Add floatdidf and fixdfdi.
408 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
410 * cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not
411 CURRENT_TARGET_BYTE_ORDER.
412 (SUBWORDTFSI): Likewise.
413 (JOINSIDF): Likewise.
414 (JOINSIXF): Likewise.
415 (JOINSITF): Likewise.
417 2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
419 * sim-base.h: Add 'sim-assert.h' include.
420 * sim-basics.h: Add 'libiberty.h' include.
422 2019-03-28 Stafford Horne <shorne@gmail.com>
424 * sim-options.c: Include "config.h".
426 * sim-watch.c: Include "config.h".
428 * hw-device.c: Include <string.h>.
429 * hw-events.c: Include <string.h>.
430 * hw-handles.c: Include <stdlib.h>.
431 * sim-fpu.c: Include <stdlib.h>.
433 2019-03-28 Stafford Horne <shorne@gmail.com>
435 * Make-common.in (sim-arange_h): Remove sim-arange.c
436 * sim-arange.c: Remove SIM_ARANGE_C.
437 Add ifdef for _SIM_ARANGE_C_.
438 Include "sim-arange.h".
439 Remove include for unused "sim-assert.h".
440 Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
441 (sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
442 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
443 (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
445 * sim-arange.h (sim_addr_range_add): Declare as
447 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
448 (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
449 Remove definition of SIM_ARANGE_INLINE.
450 Remove [HAVE_INLINE].
451 Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
452 * sim-base.h: Include "sim-arange.h"
453 * sim-basics.h: Remove include of "sim-arange.h"
454 * sim-inline.c: Include "sim-arange.c"
455 * sim-inline.h: Define INLINE_SIM_ARANGE.
456 Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
457 Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
459 2019-01-26 Tom Tromey <tom@tromey.com>
461 * Make-common.in (version.c): Use sim's create-version.sh.
462 * create-version.sh: New file.
464 2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
466 * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
468 2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
470 * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
472 2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
474 * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
475 this point, it should have already been set in cb_syscall.
477 2018-10-05 Stafford Horne <shorne@gmail.com>
479 * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
480 (ADDOFDI): New function, add overflow flag DI variant.
481 (SUBCFDI): New function, subtract carry flag DI variant.
482 (SUBOFDI): New function, subtract overflow flag DI variant.
484 2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
486 * sim-core.h (sim_cpu_core): Rename cpu_core.xor to
488 * sim-core.c (sim_core_set_xor): Likewise.
489 (sim_core_xor_read_buffer): Likewise.
490 (sim_core_xor_write_buffer): Likewise.
492 2017-12-12 Peter Gavin <pgavin@gmail.com>
493 Stafford Horne <shorne@gmail.com>
495 * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
497 (MUL1OFSI): New function, 1's complement overflow flag.
499 2017-12-12 Peter Gavin <pgavin@gmail.com>
500 Stafford Horne <shorne@gmail.com>
502 * cgen-accfp.c (remsf, remdf): New function.
503 (cgen_init_accurate_fpu): Add remsf and remdf.
504 * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
505 * sim-fpu.c (sim_fpu_rem): New function.
506 * sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
507 (sim_fpu_rem): New function.
508 (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
510 2017-09-06 John Baldwin <jhb@FreeBSD.org>
512 * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
515 2017-05-24 Yao Qi <yao.qi@linaro.org>
517 * sim-trace.c (trace_disasm): Caller update.
519 2016-08-15 Mike Frysinger <vapier@gentoo.org>
521 * sim-base.h (sim_state_base): Add prog_syms_count.
522 (STATE_PROG_SYMS_COUNT): Define.
523 * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
524 (trace_load_symbols): New function.
525 (trace_sym_value): Likewise.
526 (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
527 loading logic with a call to trace_load_symbols.
528 * sim-trace.h (trace_load_symbols, trace_sym_value): New
531 2016-08-13 Mike Frysinger <vapier@gentoo.org>
533 * cgen-types.h (mode_names): Mark const.
534 * cgen-utils.c (mode_names): Likewise.
536 2016-08-13 Mike Frysinger <vapier@gentoo.org>
538 * cgen-defs.h (struct cgen_state): Delete argv and envp.
539 (STATE_ARGV, STATE_ENVP): Delete.
541 2016-02-04 Nick Clifton <nickc@redhat.com>
543 * cgen-scache.c (scache_option_handler): Prevent possible
544 undefined behaviour computing the size of the scache by using
545 unsigned integers instead of signed integers.
547 2016-01-17 Joel Brobecker <brobecker@adacore.com>
549 * sim-fpu.c: Minor comment fixes throughout.
551 2016-01-17 Joel Brobecker <brobecker@adacore.com>
553 * sim-fpu.c (print_bits): Minor reformatting (no code change).
554 (sim_fpu_map): Likewise.
556 2016-01-11 Mike Frysinger <vapier@gentoo.org>
558 * sim-config.c (print_sim_config): Drop extra whitespace before =
559 in output for byte order, stdio, and msb settings.
561 2016-01-10 Mike Frysinger <vapier@gentoo.org>
563 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
564 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
565 sim-stdio, sim-trace, and sim-profile.
566 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
567 (SIM_AC_OPTION_ASSERT): Likewise.
568 (SIM_AC_OPTION_SMP): Likewise.
569 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
570 * configure: Regenerate.
571 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
572 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
573 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
574 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
575 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
576 WITH_ENVIRONMENT & USER_ENVIRONMENT.
577 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
578 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
579 WITH_ASSERT, WITH_STDIO): Delete.
580 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
583 2016-01-10 Mike Frysinger <vapier@gentoo.org>
585 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
586 * configure: Regenerate.
587 * Make-common.in (SIM_PACKAGES): Delete.
588 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
590 2016-01-10 Mike Frysinger <vapier@gentoo.org>
592 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
594 2016-01-10 Mike Frysinger <vapier@gentoo.org>
596 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
598 2016-01-10 Mike Frysinger <vapier@gentoo.org>
600 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
602 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
603 * gentmap.c: Change targ-vals.def include to nltvals.def.
604 * Make-common.in (gentmap): Change targ-vals.def to
605 $(srccom)/nltvals.def.
606 (distclean): Delete rm -f targ-vals.def.
607 * Makefile.in: Update comment.
609 2016-01-10 Mike Frysinger <vapier@gentoo.org>
611 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
612 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
613 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
615 2016-01-10 Mike Frysinger <vapier@gentoo.org>
617 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
618 and --enable-sim-stdcall and sim_stdcall.
619 * configure: Regenerate.
620 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
621 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
622 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
623 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
624 (REGPARM_*): Delete all regparm defines and their use.
626 2016-01-10 Mike Frysinger <vapier@gentoo.org>
628 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
629 * Make-common.in (SIM_CFLAGS): Delete.
630 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
631 * Makefile.in: Likewise.
633 2016-01-09 Mike Frysinger <vapier@gentoo.org>
635 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
636 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
637 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
638 * acinclude.m4 (SIM_AC_COMMON): ... here.
639 * aclocal.m4, configure: Regenerate.
640 * config.in: Delete file.
641 * callback.c: Change cconfig.h include to config.h.
642 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
644 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
645 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
647 2016-01-06 Mike Frysinger <vapier@gentoo.org>
649 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
650 date, and time information.
652 2016-01-06 Mike Frysinger <vapier@gentoo.org>
654 * sim-options.c (sim_parse_args): Mark argv array const.
655 * sim-options.h (sim_parse_args): Likewise.
657 2016-01-05 Mike Frysinger <vapier@gentoo.org>
659 * sim-trace.c: Include dis-asm.h.
660 (OPTION_TRACE_DISASM): New enum.
661 (trace_options): Add trace-disasm flag.
662 (trace_option_handler): Handle OPTION_TRACE_DISASM.
663 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
664 (dis_read, dis_printf, trace_disasm): New functions.
665 * sim-trace.h: Include dis-asm.h.
666 (TRACE_INSN_IDX): Clarify comment.
667 (TRACE_DISASM_IDX): New enum.
668 (TRACE_disasm): New define.
669 (WITH_TRACE_DISASM_P): New define.
670 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
671 (STRACE_DISASM_P): New define.
672 (TRACE_DISASM_P): Likewise.
673 (TRACE_DISASM_P): Likewise.
674 (TRACE_DISASM): Likewise.
675 (trace_disasm): New function.
677 2016-01-04 Mike Frysinger <vapier@gentoo.org>
679 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
681 2016-01-04 Mike Frysinger <vapier@gentoo.org>
683 * cgen-scache.c (MAX): Delete.
684 (scache_init): Change MAX to max.
685 * cgen-trace.c (min): Delete.
686 * cgen-utils.c (min): Delete.
687 * sim-basics.h [!min] (min): Define.
688 [!max] (max): Define.
690 2016-01-04 Mike Frysinger <vapier@gentoo.org>
692 * sim-options.c (sim_parse_args): Tweak getopt error message.
694 2016-01-04 Mike Frysinger <vapier@gentoo.org>
696 * acinclude.m4 (sim-bswap): Delete.
697 * configure: Regenerate.
698 * Make-common.in (SIM_BSWAP): Delete.
699 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
700 * sim-config.h (htonl, ntohl): Delete.
701 (WITH_BSWAP): Delete.
703 2016-01-03 Mike Frysinger <vapier@gentoo.org>
705 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
706 opterr state to it before calling getopt_long and restore afterwards.
707 Set opterr to 0. When optc is '?', call sim_io_eprintf.
709 2016-01-03 Mike Frysinger <vapier@gentoo.org>
711 * hw-device.h (device): Delete commented typedef.
712 * sim-basics.h (device): Delete typedef.
714 2016-01-03 Mike Frysinger <vapier@gentoo.org>
716 * sim-options.c (sim_parse_args): Replace for loop with a call
719 2016-01-03 Mike Frysinger <vapier@gentoo.org>
721 * nrun.c (myname): Mark const.
722 (main): Mark name const. Replace myname parsing loop with a
725 2016-01-03 Mike Frysinger <vapier@gentoo.org>
727 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
728 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
729 (SIM_AC_OPTION_HOSTENDIAN): Delete.
730 * config.in, configure: Regenerate.
731 * Make-common.in (SIM_HOSTENDIAN): Delete.
732 * sim-config.c (current_host_byte_order): Delete.
733 (sim_config): Delete current_host_byte_order assignments and
734 CURRENT_HOST_BYTE_ORDER checks.
735 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
736 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
737 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
738 (current_host_byte_order): Delete.
739 (CURRENT_HOST_BYTE_ORDER): Likewise.
740 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
741 (HOST_BYTE_ORDER): ... this.
742 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
744 (sim_endian_join_16): Likewise.
745 * sim-n-core.h (sim_core_read_misaligned_N): Change
746 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
747 (sim_core_write_misaligned_N): Likewise.
748 * sim-n-endian.h (endian_t2h_N): Likewise.
749 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
750 endian_le2h_N): Likewise.
751 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
753 2016-01-02 Mike Frysinger <vapier@gentoo.org>
755 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
756 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
758 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
759 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
760 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
761 * nrun.c (main): Likewise.
762 * sim-config.c (current_host_byte_order): Change type to enum
763 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
764 (current_target_byte_order): Likewise.
765 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
766 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
768 (sim_config): Change prefered_target_byte_order type to enum
769 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
770 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
771 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
772 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
773 Delete all the various arch/OS endian includes & defines.
774 (current_host_byte_order): Change type to enum bfd_endian.
775 (current_target_byte_order): Likewise.
776 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
777 (CURRENT_TARGET_BYTE_ORDER): Likewise.
778 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
779 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
780 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
782 (sim_events_watch_core): Likewise.
783 * sim-events.h: Likewise.
784 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
786 (sim_core_write_misaligned_N): Likewise.
787 * sim-n-endian.h (endian_h2be_N): Likewise.
788 (endian_be2h_N): Likewise.
789 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
790 (offset_N): Likewise.
791 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
792 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
794 2016-01-02 Mike Frysinger <vapier@gentoo.org>
796 * cgen-defs.h (current_state): Delete.
797 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
798 * sim-utils.c (current_state): Delete.
800 2015-12-30 Mike Frysinger <vapier@gentoo.org>
802 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
805 2015-12-27 Mike Frysinger <vapier@gentoo.org>
807 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
809 2015-12-26 Mike Frysinger <vapier@gentoo.org>
811 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
812 * config.in, configure: Regenerate.
813 * Make-common.in (sim-basics_h): Delete tconfig.h.
814 (distclean): Likewise.
815 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
816 (new_sim_core_mapping): Delete WITH_HW and device *device.
817 (sim_core_map_attach, sim_core_attach): Likewise.
818 (sim_core_read_buffer): Delete WITH_DEVICES logic.
819 (sim_core_write_buffer): Likewise.
820 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
822 (sim_core_attach): Likewise.
823 (device_io_read_buffer, device_io_write_buffer): Delete.
824 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
825 (sim_core_write_aligned_N): Likewise.
826 * tconfig.h: Delete file.
828 2015-12-26 Mike Frysinger <vapier@gentoo.org>
830 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
831 Call sim_cpu_hw_io_read_buffer if cpu is valid.
832 (sim_core_write_buffer): Move cia decl to top of func. Call
833 sim_cpu_hw_io_write_buffer if cpu is valid.
835 2015-12-25 Mike Frysinger <vapier@gentoo.org>
837 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
839 (hw_find_integer_property): Likewise.
840 (hw_find_integer_array_property): Likewise.
841 (hw_add_duplicate_property): Likewise.
843 2015-12-25 Mike Frysinger <vapier@gentoo.org>
845 * sim-config.h (WITH_ENGINE): Delete.
846 * sim-module.c (modules): Always include sim_engine_install.
848 2015-12-25 Mike Frysinger <vapier@gentoo.org>
850 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
851 * cgen-types.h (SIM_HAVE_MODEL): Delete.
852 * sim-base.h: Always include sim-model.h.
853 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
854 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
855 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
856 [!WITH_MODEL_P] (sim_machs): Define.
857 * sim-model.h: Add some developer docs.
858 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
859 (WITH_MODEL_P): Define.
860 * sim-module.c (modules): Always include sim_model_install.
861 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
863 2015-12-25 Mike Frysinger <vapier@gentoo.org>
865 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
866 * sim-model.c: Likewise.
867 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
868 SIM_MACH_IMP_PROPERTIES
870 2015-12-25 Mike Frysinger <vapier@gentoo.org>
872 * sim-core.c (device_error): Delete.
873 (sim_core_map_attach): Delete calls to device_error.
874 (sim_core_attach): Likewise.
875 * sim-core.h (device_error): Delete.
876 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
878 (sim_core_write_aligned_N): Likewise.
880 2015-12-25 Mike Frysinger <vapier@gentoo.org>
882 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
883 * sim-core.c (sim_core_write_buffer): Likewise.
884 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
885 (sim_core_write_aligned_N): Likewise.
887 2015-12-25 Mike Frysinger <vapier@gentoo.org>
889 * dv-pal.c: Include config.h and sim-main.h.
890 (hw_pal_io_read_buffer): Always call CPU_INDEX.
892 2015-12-24 Mike Frysinger <vapier@gentoo.org>
894 * sim-options.c (standard_options): Always enable load-lma and
896 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
898 2015-12-24 Mike Frysinger <vapier@gentoo.org>
900 * sim-module.c (MODULE_LIST): Delete.
902 2015-12-24 Mike Frysinger <vapier@gentoo.org>
904 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
905 Move to h8300/compile.c.
906 [SIM_H8300] (standard_options): Likewise.
907 (standard_option_handler): Likewise.
909 2015-12-24 Mike Frysinger <vapier@gentoo.org>
911 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
912 sim_watchpoint_install.
914 2015-12-24 Mike Frysinger <vapier@gentoo.org>
916 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
917 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
919 * sim-options.c (OPTION_MEM_SIZE): Delete.
920 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
921 (standard_option_handler): Likewise.
923 2015-12-24 Mike Frysinger <vapier@gentoo.org>
925 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
927 2015-11-21 Mike Frysinger <vapier@gentoo.org>
930 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
932 2015-11-21 Mike Frysinger <vapier@gentoo.org>
935 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
936 vasprintf, and va_end together. Check ret after va_end call.
938 2015-11-21 Mike Frysinger <vapier@gentoo.org>
940 * sim-types.h (SIM_PRI_TB): Define.
941 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
942 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
943 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
944 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
946 2015-11-17 Mike Frysinger <vapier@gentoo.org>
948 * sim-main.h (WITH_MODULO_MEMORY): Delete.
949 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
950 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
951 (sim_core_translate): Likewise.
952 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
954 2015-11-16 Mike Frysinger <vapier@gentoo.org>
956 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
957 (cgen_cpu_close): Change to XCONCAT2.
959 2015-11-15 Mike Frysinger <vapier@gentoo.org>
961 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
964 2015-11-14 Mike Frysinger <vapier@gentoo.org>
966 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
967 * sim-close.c: New file.
969 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
970 Ali Lown <ali.lown@imgtec.com>
972 * sim-bits.h (EXTEND6): New macro.
973 (EXTEND12): New macro.
974 (EXTEND25): New macro.
976 2015-06-24 Mike Frysinger <vapier@gentoo.org>
978 * sim-trace.c (trace_one_insn): Delete.
979 * sim-trace.h (trace_one_insn): Delete.
981 2015-06-24 Mike Frysinger <vapier@gentoo.org>
983 * sim-trace.c (debug_printf): Rename to ...
984 (sim_debug_printf): ... this.
985 * sim-trace.h (debug_printf): Delete define.
986 (debug_printf): Rename to ...
987 (sim_debug_printf): ... this.
989 2015-06-24 Mike Frysinger <vapier@gentoo.org>
991 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
992 (trace_options): Add trace-register option.
993 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
994 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
995 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
996 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
997 TRACE_REGISTER_P, TRACE_REGISTER): Define.
999 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1001 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
1002 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
1003 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
1004 STRACE_DEBUG): Define.
1006 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1008 * sim-trace.c (trace_options): Update help text for trace-alu,
1009 trace-fpu, trace-vpu, and trace-semantics.
1010 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
1011 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
1013 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1015 * sim-assert.h (SIM_FILTER_PATH): Delete.
1016 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
1017 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
1018 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
1019 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
1020 * sim-events.c: Include libiberty.h.
1021 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
1023 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1025 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
1026 (AC_ARG_ENABLE(sim-cflags)): Likewise.
1027 (AC_ARG_ENABLE(sim-debug)): Likewise.
1028 (AC_ARG_ENABLE(sim-stdio)): Likewise.
1029 (AC_ARG_ENABLE(sim-trace)): Likewise.
1030 (AC_ARG_ENABLE(sim-profile)): Likewise.
1031 (AC_ARG_ENABLE(sim-environment)): Likewise.
1032 (AC_ARG_ENABLE(sim-alignment)): Likewise.
1033 (AC_ARG_ENABLE(sim-assert)): Likewise.
1034 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
1035 (AC_ARG_ENABLE(sim-endian)): Likewise.
1036 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
1037 (AC_ARG_ENABLE(sim-float)): Likewise.
1038 (AC_ARG_ENABLE(sim-scache)): Likewise.
1039 (AC_ARG_ENABLE(sim-default-model)): Likewise.
1040 (AC_ARG_ENABLE(sim-inline)): Likewise.
1041 (AC_ARG_ENABLE(sim-packages)): Likewise.
1042 (AC_ARG_ENABLE(sim-regparm)): Likewise.
1043 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
1044 (AC_ARG_ENABLE(sim-smp)): Likewise.
1045 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
1046 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
1047 (AC_ARG_ENABLE(cgen-maint)): Likewise.
1048 * configure: Regenerate.
1050 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1052 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
1054 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1056 * cgen-trace.c [!__STDC__]: Delete.
1057 * sim-trace.h [!__STDC__]: Likewise.
1059 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1061 * sim-model.c (sim_model_init): Assert model is not NULL.
1063 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1065 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
1066 stdint.h. Replace all signed/unsigned typedefs with int#_t and
1069 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1071 * sim-alu.h (_SIM_ALU_H_): Rename to ...
1072 (SIM_ALU_H): ... this.
1073 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
1074 (SIM_ASSERT_H): ... this.
1075 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
1076 (SIM_BASICS_H): ... this.
1077 * sim-bits.h (_SIM_BITS_H_): Rename to ...
1078 (SIM_BITS_H): ... this.
1079 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
1080 (SIM_ENDIAN_H): ... this.
1082 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1084 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
1087 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1089 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
1090 m for sentinel testing.
1092 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1094 * sim-syscall.c: Include errno.h and targ-vals.h.
1095 (sim_syscall_multi, sim_syscall): Define.
1096 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
1097 * syscall.c (cb_syscall): Extend comment.
1099 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1101 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
1102 * sim-syscall.c: New file.
1103 * sim-syscall.h: New file.
1105 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1107 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
1108 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
1109 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
1110 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
1111 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
1113 * gentmap.c (gen_targ_map_c): Output name field.
1115 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1117 * acinclude.m4: Change configure.in to configure.ac.
1118 * sim-config.h: Likewise.
1120 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1122 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
1123 * configure: Regenerate.
1125 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1127 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
1128 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
1129 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
1130 TRACE_DEBUG): Define.
1132 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1134 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
1135 * sim-trace.c (trace_option_handler): Likewise.
1136 * sim-trace.h (WITH_TRACE_ANY_P): Define.
1137 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
1138 (TRACE_ANY_P): Likewise.
1140 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1142 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
1143 CGEN_TRACE_INSN_FINI.
1144 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
1145 trace_result to cgen_trace_result, trace_insn_fini to
1146 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
1147 and trace_extract to cgen_trace_extract.
1148 * cgen-trace.h (trace_insn_init): Rename to ...
1149 (cgen_trace_insn_init): ... this.
1150 (trace_insn_fini): Rename to ...
1151 (cgen_trace_insn_fini): ... this.
1152 (trace_insn): Rename to ...
1153 (cgen_trace_insn): ... this.
1154 (trace_extract): Rename to ...
1155 (cgen_trace_extract): ... this.
1156 (trace_result): Rename to ...
1157 (cgen_trace_result): ... this.
1158 (TRACE_RESULT_P): Rename to ...
1159 (CGEN_TRACE_RESULT_P): ... this.
1160 (TRACE_INSN_INIT): Rename to ...
1161 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
1162 cgen_trace_insn_init.
1163 (TRACE_INSN_FINI): Rename to ...
1164 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
1165 cgen_trace_insn_fini.
1166 (TRACE_PRINTF): Rename to ...
1167 (CGEN_TRACE_PRINTF): ... this.
1168 (TRACE_INSN): Rename to ...
1169 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
1170 (TRACE_EXTRACT): Rename to ...
1171 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
1173 (TRACE_RESULT): Rename to ...
1174 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
1175 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
1176 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
1177 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
1178 TRACE_INSN to CGEN_TRACE_INSN.
1179 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
1181 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1183 * sim-events.c (ETRACE_P): Delete.
1184 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
1185 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
1186 * sim-events.h (struct _sim_events): Delete trace member.
1187 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
1188 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
1190 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1192 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
1193 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
1194 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
1195 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
1197 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1199 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
1201 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1203 * sim-trace.h (WITH_TRACE_P): New define.
1204 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
1205 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
1206 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
1207 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
1208 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
1209 Redefine to use WITH_TRACE_P.
1211 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
1213 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
1214 mistake in call to sim_engine_abort.
1216 2015-04-29 Nick Clifton <nickc@redhat.com>
1219 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
1220 increasing parenthesis around casts to signed values.
1222 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1224 * gennltvals.sh: Add mcore support.
1225 * nltvals.def: Regenerate.
1227 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1229 * cgen.sh: Add +x permissions.
1230 * genmloop.sh: Likewise.
1231 * gentvals.sh: Likewise.
1232 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
1233 Change all uses of srcroot for newlib to newlibroot.
1235 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1237 * sim-base.h (SIM_CPU): New typedef.
1239 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1241 * cgen-engine.h (CIA_ADDR): Delete.
1242 * sim-base.h: Update sim_cia example.
1243 [!CIA_ADDR] (sim_cia): New typedef.
1245 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1247 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
1248 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
1249 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
1250 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
1251 CIA_SET to CPU_PC_SET.
1253 2015-04-15 Mike Frysinger <vapier@gentoo.org>
1255 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
1256 * sim-main.h (STATE_CPU): Remove from comment and define.
1258 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1260 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
1261 * configure: Regenerate.
1263 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1265 * sim-options.c: Include version.h.
1266 (OPTIONS_VERSION): New enum.
1267 (standard_options): Add "version".
1268 (standard_option_handler): Handle OPTIONS_VERSION.
1270 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1272 * Makefile.in (version.o): Change to using create-version.sh from gdb.
1273 (create-version.sh): Delete.
1275 2015-04-06 Mike Frysinger <vapier@gentoo.org>
1277 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
1279 2015-04-01 Mike Frysinger <vapier@gentoo.org>
1281 * run-sim.h, run.c: Delete.
1282 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
1284 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1286 * config.in, configure: Regenerate.
1287 * Make-common.in (CSEARCH): Add $(ZLIBINC).
1288 (ZLIB, ZLIBINC): Define.
1289 (BFD_LIB): Add $(ZLIB).
1291 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1293 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
1294 * cgen-ops.h (SEMOPS_INLINE): Likewise.
1296 2015-03-29 Mike Frysinger <vapier@gentoo.org>
1298 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
1299 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
1300 * sim-inline.h (INLINE2): Define to gnu_inline when available.
1302 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1304 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
1305 usage of STATE_WATCHPOINTS.
1306 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
1307 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
1309 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1311 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
1313 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1315 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
1317 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1319 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
1320 of enable_sim_hardware to AC_ARG_ENABLE.
1322 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1324 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
1325 Add dv-sockser.o to sim_hw_objs.
1327 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1329 * dv-sockser.c: Include config.h.
1330 * dv-sockser.h: Include sim-inline.h.
1331 [HAVE_DV_SOCKSER]: Move all prototypes here.
1332 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
1333 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
1335 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1337 * gentmap.c, run.c: Convert old style prototypes.
1339 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1341 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
1342 symlinking tconfig.h to tconfig.in.
1343 * config.in, configure: Regenerate.
1344 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
1345 * tconfig.in: Rename file ...
1346 * tconfig.h: ... here.
1348 2015-03-15 Mike Frysinger <vapier@gentoo.org>
1350 * dv-socker.h (dv_sockser_install): Declare.
1351 * sim-module.c: Include config.h.
1352 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
1353 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
1354 * sim-module.h: Include gdb/remote-sim.h.
1356 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1358 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
1359 (sim-inline.c): Delete rule.
1361 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1363 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
1364 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
1365 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
1367 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1369 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
1370 [!ASSERT, WITH_ASSERT]: Likewise.
1371 * sim-endian.c: Delete sim-io.h include.
1373 2015-02-19 Mike Frysinger <vapier@gentoo.org>
1375 * run-sim.h (sim_kill): Delete unused prototype.
1377 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
1379 * gentmap.c: Include "string.h".
1381 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
1383 * sim-options.c (sim_args_command): Call freeargv() when failure
1386 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1388 * aclocal.m4, configure: Regenerate using automake 1.11.1.
1390 2014-12-03 Joel Brobecker <brobecker@adacore.com>
1392 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
1393 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
1394 callbacks following renaming in callback.h.
1395 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
1396 callback by call to "to_lstat" callback
1398 2014-08-28 Gary Benson <gbenson@redhat.com>
1400 * sim-trace.h (debug_printf): New define.
1402 2014-08-19 Alan Modra <amodra@gmail.com>
1404 * configure: Regenerate.
1406 2014-08-15 Roland McGrath <mcgrathr@google.com>
1408 * configure: Regenerate.
1409 * config.in: Regenerate.
1411 2014-03-10 Mike Frysinger <vapier@gentoo.org>
1413 * sim-command.c (sim_do_command): Add const to cmd.
1414 * sim-options.c (sim_args_command): Add const to cmd.
1415 * sim-options.h (sim_args_command): Add const to cmd.
1417 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1419 * sim-hload.c (sim_load): Add const to prog.
1420 * sim-load.c (sim_load_file): Likewise.
1421 * sim-utils.c (sim_analyze_program): Likewise.
1422 * sim-utils.h (sim_analyze_program): Likewise.
1423 (sim_load_file): Likewise.
1425 2014-03-04 Mike Frysinger <vapier@gentoo.org>
1427 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
1428 * callback.c (system): Delete unused prototype.
1429 (os_init): Likewise.
1430 (os_shutdown): Likewise.
1431 (os_unlink): Likewise.
1432 (os_time): Likewise.
1433 (os_system): Likewise.
1434 (os_rename): Likewise.
1435 (os_write_stdout): Likewise.
1436 (os_flush_stdout): Likewise.
1437 (os_write_stderr): Likewise.
1438 (os_flush_stderr): Likewise.
1439 (os_write): Likewise.
1440 (os_read_stdin): Likewise.
1441 (os_read): Likewise.
1442 (os_open): Likewise.
1443 (os_lseek): Likewise.
1444 (os_isatty): Likewise.
1445 (os_get_errno): Likewise.
1446 (os_close): Likewise.
1447 (os_vprintf_filtered): Likewise.
1448 (os_evprintf_filtered): Likewise.
1449 (os_error): Likewise.
1453 (wrap): Change to new style prototype.
1456 (os_close): Likewise.
1457 (os_poll_quit): Likewise.
1458 (os_get_errno): Likewise.
1459 (os_isatty): Likewise.
1460 (os_lseek): Likewise.
1461 (os_open): Likewise.
1462 (os_read): Likewise.
1463 (os_read_stdin): Likewise.
1464 (os_write): Likewise.
1465 (os_write_stdout): Likewise.
1466 (os_flush_stdout): Likewise.
1467 (os_write_stderr): Likewise.
1468 (os_flush_stderr): Likewise.
1469 (os_rename): Likewise.
1470 (os_system): Likewise.
1471 (os_time): Likewise.
1472 (os_unlink): Likewise.
1473 (os_stat): Likewise.
1474 (os_fstat): Likewise.
1475 (os_lstat): Likewise.
1476 (os_ftruncate): Likewise.
1477 (os_truncate): Likewise.
1478 (os_pipe): Likewise.
1479 (os_pipe_empty): Likewise.
1480 (os_pipe_nonempty): Likewise.
1481 (os_shutdown): Likewise.
1482 (os_init): Likewise.
1483 (cb_read_target_syscall_maps): Likewise.
1484 (cb_target_to_host_syscall): Likewise.
1485 (cb_host_to_target_errno): Likewise.
1486 (cb_target_to_host_open): Likewise.
1487 (cb_store_target_endian): Likewise.
1488 (cb_host_to_target_stat): Likewise.
1489 * sim-hload.c (sim_load): Change to new style prototype.
1490 * sim-load.c (sim_load_file): Change to new style prototype.
1491 (report_transfer_performance): Likewise.
1492 (xprintf_bfd_vma): Likewise.
1493 * syscall.c (cb_get_string): Change to new style prototype.
1494 (get_path): Likewise.
1495 (cb_syscall): Likewise.
1497 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
1499 * create-version.sh: Align parameters to match those of
1500 ../../gdb/common/create-version.sh.
1501 * Make-common.in (srcsim): New variable.
1502 (version.c): Adjust call to create-version.sh as per above.
1504 2013-09-23 Alan Modra <amodra@gmail.com>
1506 * configure: Regenerate.
1508 2013-09-03 Mike Stump <mikestump@comcast.net>
1510 * sim-options.c (complete_option_list): Mark text and word const.
1512 2013-06-28 Tom Tromey <tromey@redhat.com>
1514 * Make-common.in (version.c): Use version.in, not
1516 * create-version.sh: Likewise.
1518 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1520 * create-version.sh: New script. Adapted from
1521 gdb/commong/create-version.sh.
1522 * Make-common.in (version.c): Update rule dependencies,
1523 and re-implement using create-version.sh.
1525 2013-06-21 Nick Clifton <nickc@redhat.com>
1527 * gennltvals.sh: Add msp430 support.
1528 * nltvals.def: Regenerate.
1530 2013-06-03 Mike Frysinger <vapier@gentoo.org>
1532 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
1533 * aclocal.m4, configure: Regenerate.
1535 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1538 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
1539 -Wformat-nonliteral with -Wno-format.
1541 2013-03-26 Mike Frysinger <vapier@gentoo.org>
1543 * acinclude.m4: Regenerate.
1545 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
1547 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
1548 which do not support dv-sockser.o. Add always as option to
1549 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
1550 is always required to be enabled by simulator.
1552 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1554 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1555 * nltvals.def: Regenerate.
1557 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1559 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1560 * config.in, configure: Regenerate.
1562 2012-05-24 Pedro Alves <palves@redhat.com>
1564 * sim-signal.h (sim_signal_to_target): Rename to ...
1565 (sim_signal_to_gdb_signal): ... this.
1566 * sim-signal.c (sim_signal_to_target): Rename to ...
1567 (sim_signal_to_gdb_signal): ... this.
1568 * sim-reason.c (sim_stop_reason): Adjust to rename.
1570 2012-05-24 Pedro Alves <palves@redhat.com>
1574 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1576 2012-05-24 Pedro Alves <palves@redhat.com>
1580 Replace target_signal with gdb_signal throughout.
1582 2012-05-18 Nick Clifton <nickc@redhat.com>
1585 * callback.c: Include config.h before system header files.
1586 * cgen-trace.c: Likewise.
1587 * cgen-utils.c: Likewise.
1588 * gentmap.c: Likewise.
1590 2012-04-02 Mike Frysinger <vapier@gentoo.org>
1592 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
1594 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1596 * sim-trace.c: Update the function prototype of save_data_size.
1597 Move the enum data_fmt from here...
1598 * sim-trace.h: ...to here.
1599 Add function prototype of save_data.
1601 2012-03-25 Mike Frysinger <vapier@gentoo.org>
1603 * sim-core.h (sim_core_trans_addr): Add prototype.
1605 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
1607 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
1608 missing in last change.
1610 2012-03-24 Mike Frysinger <vapier@gentoo.org>
1612 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
1613 * nrun.c: Include string.h/strings.h.
1614 * aclocal.m4, config.in, configure: Regenerate.
1616 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1618 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1619 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1620 out -Werror initialization.
1622 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1624 * Make-common.in (TAGS): Change a-z to [:lower:].
1625 * acinclude.m4 (sim-trace): Likewise.
1626 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1627 Change A-Za-z0-9 to [:alnum:].
1629 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1631 * nrun.c (main): Display strsignal of sigrc.
1633 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1635 * Makefile.in (abs_srcdir): Declare.
1636 (srcroot): Define in terms of abs_srcdir.
1637 (headers): Change srcdir to abs_srcdir.
1639 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1641 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1644 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1646 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1647 system bourne shell.
1649 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1651 * syscall.c (cb_get_string): Rename from "get_string".
1652 (get_path): Rename get_string call to cb_get_string.
1654 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1656 * Make-common.in (VPATH): Add $(srccom).
1658 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1659 POSTCOMPILE): New variables.
1660 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1661 Include dependency files, when using GNU Make. Delete all
1662 dependency-only rules.
1663 * aclocal.m4: Include ../../config/depstand.m4. Call
1664 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1665 (MAKE, GMAKE): New substs.
1667 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1670 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1671 * configure, config.in: Regenerate.
1672 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1674 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1676 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1678 2011-10-18 John Wehle <john@feith.com> (tiny patch)
1680 * sim-profile.c (profile_info): Only print the title once.
1682 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1684 * acinclude.m4: Rename from aclocal.m4.
1685 * aclocal.m4: Regenerate.
1687 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1689 * aclocal.m4: Change AC_PREREQ comment to 2.64.
1690 * common.m4: Delete.
1691 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
1692 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
1693 * configure: Regenerate.
1695 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
1697 * sim-alu.h (ALU32_AND): Clear carry flag.
1698 (ALU32_AND): Clear carry flag.
1700 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1702 * dv-cfi.c: Include stdbool.h.
1704 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1706 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
1708 2011-10-04 Mike Frysinger <vapier@gentoo.org>
1710 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
1711 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
1713 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1715 * sim-command.c: Include sim-options.h.
1717 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1719 * aclocal.m4: Move sinclude comment after AC_INIT comment.
1721 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1723 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
1724 Delete direct call to AC_PROG_CC.
1726 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1728 * sim-command.c: New file.
1729 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
1730 (sim-command.o): New rule.
1732 2011-05-27 Mike Frysinger <vapier@gentoo.org>
1734 * sim-options.c (standard_option_handler): Remove arg[0] check
1735 when freeing simulator_sysroot. Only strdup arg when arg[0] is
1736 not an empty string, otherwise assign "" back to it.
1738 2011-05-26 Mike Frysinger <vapier@gentoo.org>
1740 * nltvals.def: Regenerate to include Blackfin syscalls again.
1742 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1744 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
1745 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
1746 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
1747 (trace_idx_to_str): Likewise.
1748 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
1749 (TRACE_syscall): Define.
1750 (WITH_TRACE_SYSCALL_P): Likewise.
1751 (TRACE_SYSCALL_P): Likewise.
1753 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1755 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
1756 remove now-unnecessary sub-scope for glue->type setting.
1757 Check to see if the "reg" property exists before we use it, and
1758 if it doesn't exist, error out for "glue" devices.
1760 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1762 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
1763 glue-or, and set type to glue_xor when name is glue-xor.
1764 (hw_glue_port_event): Return immediately when type is glue_io
1765 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
1766 and hw_port_event calls from glue_and to end of function.
1768 2011-05-11 Mike Frysinger <vapier@gentoo.org>
1770 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
1771 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
1772 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
1773 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
1774 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
1775 around function arguments.
1777 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1779 * sim-options.c (complete_option_list, sim_complete_command):
1782 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1784 * dv-glue.c: Fix up style.
1786 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1788 * hw-alloc.c (hw_alloc_data): Adjust brace.
1789 * hw-base.c (hw_base_data): Likewise.
1790 (generic_hw_unit_decode): Fix indentation.
1791 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
1792 * hw-events.c (hw_event, hw_event_data): Likewise.
1793 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
1794 * hw-instances.c (hw_instance_data): Likewise.
1795 * hw-instances.h (hw_instance): Likewise.
1796 * hw-main.h (hw_descriptor, enum): Likewise.
1797 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
1798 * hw-ports.h (hw_port_descriptor): Likewise.
1799 * hw-properties.c (hw_property_data): Likewise.
1800 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
1801 _range_property_spec, _reg_property_spec): Likewise.
1802 * hw-tree.c (_name_specifier, printer): Likewise.
1803 (split_device_specifier, parse_string_property, hw_tree_traverse,
1804 print_size, print_reg_property, print_string, print_properties):
1807 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1809 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
1810 * Make-common.in (dv-cfi.o): New rule.
1811 * dv-cfi.c, dv-cfi.h: New files.
1813 2011-03-21 Kevin Buettner <kevinb@redhat.com>
1815 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
1816 fcntl.h and sys/fcntl.h, for constants.
1817 * nltvals.def: Regenerate.
1818 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
1819 * sim-io.h (sys/types.h, sys/stat.h): Include.
1820 (sim_io_stat, sim_io_fstat): Declare.
1822 2011-03-14 Mike Frysinger <vapier@gentoo.org>
1824 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
1825 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
1826 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
1827 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
1828 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
1829 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
1830 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
1831 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
1832 syscall.c: Trim trailing whitespace.
1834 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1836 * gennltvals.sh: Handle bfin targets.
1837 * nltvals.def: Regenerate.
1839 2011-02-25 Kevin Buettner <kevinb@redhat.com>
1841 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
1844 2011-02-14 Mike Frysinger <vapier@gentoo.org>
1846 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
1847 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
1848 (hw_free): Drop zfree logic and always call free.
1849 * hw-base.c (hw_delete): Change zfree to free.
1850 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
1851 (hw_handle_remove_phandle): Likewise.
1852 * hw-instances.c (hw_instance_delete): Likewise.
1853 * hw-tree.c (parse_reg_property): Likewise.
1854 (parse_ranges_property): Likewise.
1855 (parse_string_property): Likewise.
1856 * sim-core.c (sim_core_uninstall): Likewise.
1857 * sim-cpu.c (sim_cpu_free_all): Likewise.
1858 * sim-hw.c (sim_hw_uninstall): Likewise.
1859 * sim-memopt.c (do_memopt_delete): Likewise.
1860 (sim_memory_uninstall): Likewise.
1861 * sim-module.c (sim_module_uninstall): Likewise.
1862 * sim-options.c (sim_parse_args): Likewise.
1863 * sim-profile.c (profile_pc_cleanup): Likewise.
1864 (profile_uninstall): Likewise.
1865 * sim-watch.c (do_watchpoint_delete): Likewise.
1866 * sim-utils.c (zfree): Delete.
1867 (sim_state_free): Change zfree to free.
1868 * sim-utils.h (zfree): Delete.
1870 2011-02-13 Mike Frysinger <vapier@gentoo.org>
1872 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
1874 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1876 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
1878 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1880 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
1882 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
1883 when asprintf fails.
1884 * sim-utils.c (sim_do_commandf): Issue an error and return when
1886 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
1889 2011-01-11 Mike Frysinger <vapier@gentoo.org>
1891 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
1892 bytes has been calculated and when mmap_next_fd is valid and
1894 (memory_option_handler): Allow missing size when mmap_next_fd is
1897 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1899 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
1900 not empty, and always append $3 to $hardware.
1902 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1904 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
1905 * sim-hw.h (sim_hw_abort): Likewise.
1907 2011-01-05 Mike Frysinger <vapier@gentoo.org>
1909 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
1911 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1913 * run.1: Copyright year update.
1915 2010-12-28 Mike Frysinger <vapier@gentoo.org>
1917 * hw-alloc.h (HW_NALLOC): Define.
1919 010-12-28 Mike Frysinger <vapier@gentoo.org>
1921 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
1923 2010-12-15 Mike Frysinger <vapier@gentoo.org>
1925 * sim-memopt.c (OPTION_MAP_INFO): Define.
1926 (memory_options): Handle --map-info.
1927 (memory_option_handler): Handle OPTION_MAP_INFO.
1929 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1931 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
1932 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
1933 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
1935 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1937 * sim-core.c (WITH_HW): Add device casts to device_error,
1938 device_io_read_buffer, and device_io_write_buffer.
1940 2010-11-16 Mike Frysinger <vapier@gentoo.org>
1942 * dv-sockser.c (dv_sockser_write_buffer): New function.
1943 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
1944 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
1946 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
1948 * callback.c (os_lseek): Call wrap on lseek result.
1950 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1952 * dv-sockser.c (dv_sockser_init): Check error return from socket()
1953 call by its equality to -1 not by it being negative.
1954 (connected_p): Likewise for accept() call.
1956 2010-04-23 Mike Frysinger <vapier@gentoo.org>
1958 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
1960 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1962 * profile.c (sim_profile_print_bar): Add cpu argument.
1964 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1966 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
1968 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1970 * sim-profile.c (profile_vprintf, profile_printf): New functions.
1971 (profile_print_pc): Convert sim_io_printf to profile_printf.
1972 (profile_print_insn): Likewise.
1973 (profile_print_memory): Likewise.
1974 (profile_print_core): Likewise.
1975 (profile_print_model): Likewise.
1976 (sim_profile_print_bar): Likewise.
1977 (profile_print_speed): Likewise.
1978 (profile_print_addr_ranges): Likewise.
1979 (profile_info): Likewise.
1980 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
1982 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1984 * sim-model.c (OPTION_MODEL): Convert to enum.
1985 (OPTION_MODEL_INFO): New enum.
1986 (model_options): Add model-info/info-model entries.
1987 (model_option_handler): Handle OPTION_MODEL_INFO.
1989 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1991 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
1992 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
1995 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1997 * sim-hrw.c (sim_write): Add const to buf arg.
1998 * sim-utils.h (sim_write_fn): Likewise.
2000 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2002 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
2005 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2007 * dv-core.c (dv_core_descriptor): Add NULL initializer.
2008 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
2009 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
2010 * dv-sockser.c (sockser_options): Likewise.
2011 * hw-ports.c (empty_hw_ports): Likewise.
2012 * sim-hw.c (hw_options): Likewise.
2013 * sim-model.c (model_options): Likewise.
2014 * sim-options.c (standard_options): Likewise.
2015 * sim-profile.c (profile_options): Likewise.
2016 * sim-trace.c (trace_options): Likewise.
2017 * sim-watch.c (watchpoint_options): Likewise.
2019 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2021 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
2022 the local "arg_table" variable, and the xmalloc cast.
2024 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2026 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
2028 (sim_fpu_print_func): Add const markings to format buffer.
2030 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2032 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
2034 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2036 * sim-trace.c (save_data): Add const markings to "buf" argument.
2038 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2040 * sim-options.c (standard_option_handler): Add const markings to
2043 2010-04-02 Mike Frysinger <vapier@gentoo.org>
2045 * hw-ports.h: Fix spelling typos.
2047 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2049 * configure.ac: Check for socklen_t.
2050 * configure, config.in: Regenerated.
2051 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
2053 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2055 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
2056 * sim-hw.c (hw_option_handler): Likewise.
2058 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2060 * sim-watch.c (watchpoint_type_to_str): Add const to return.
2061 (interrupt_nr_to_str): Likewise.
2062 (default_interrupt_names): Add const to pointer type.
2063 (sim_watchpoint_install): Add const to prefix.
2064 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
2066 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2068 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
2069 (sim_core_write_buffer): Likewise.
2071 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2073 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
2074 the SIM_HAVE_ADDR_RANGE define.
2076 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2078 * sim-core.h (device_error): Add const to message, and add printf
2081 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2083 * sim-profile.c (profile_print_addr_ranges): Wrap with the
2084 SIM_HAVE_ADDR_RANGE define.
2086 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2088 * dv-glue.c (hw_glue_ports): Swap static and const.
2090 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2092 * nrun.c (usage): Use void in definition.
2093 * sim-options.c (dup_arg_p): Convert old-style function definition.
2094 (sim_parse_args): Likewise.
2095 (sim_print_help): Likewise.
2096 * sim-trace.c (set_trace_option_mask): Likewise.
2097 (set_trace_option): Likewise.
2098 * sim-utils.c (sim_analyze_program): Likewise.
2099 (sim_elapsed_time_get): Likewise.
2100 (sim_elapsed_time_since): Likewise.
2102 2010-03-22 Mike Frysinger <vapier@gentoo.org>
2104 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
2105 (standard_options): Likewise.
2106 (standard_option_handler): Likewise.
2108 2010-03-16 Mike Frysinger <vapier@gentoo.org>
2110 * hw-ports.c (TRACE): Delete.
2111 * hw-properties.c (TRACE): Delete.
2112 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
2113 (hw_find_integer_property): Likewise.
2114 (hw_find_integer_array_property): Likewise.
2115 (hw_add_duplicate_property): Likewise.
2117 2010-03-15 Mike Frysinger <vapier@gentoo.org>
2119 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
2122 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2124 * sim-model.c: Include sim-model.h
2126 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2128 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
2129 & from the STATE_CPU() examples.
2131 2010-01-24 Doug Evans <dje@sebabeach.org>
2133 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
2134 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
2136 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
2137 (struct cgen_fp_ops): Update signatures of floating point conversion
2140 * Make-common.in (CGEN_SIM_DEPS): Define.
2141 (CGEN_INCLUDE_DEPS): Use it.
2142 (CGEN_MAIN_CPU_DEPS): Simplify.
2144 2010-01-22 Doug Evans <dje@sebabeach.org>
2146 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
2147 (SUBWORDTFSI, JOINSIDI): Ditto.
2149 2010-01-05 Doug Evans <dje@sebabeach.org>
2151 * cgen-types.h (SETDI): Delete, unused.
2153 2009-12-02 Doug Evans <dje@sebabeach.org>
2155 * cgen-engine.h: Remove duplicated comment.
2157 2009-11-23 Doug Evans <dje@sebabeach.org>
2159 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
2160 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
2162 2009-11-22 Doug Evans <dje@sebabeach.org>
2164 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
2165 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
2166 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
2167 instead of CGEN_INSN_INT.
2169 * cgen-trace.h (trace_extract): Add cast to fix warning.
2171 2009-11-05 Doug Evans <dje@sebabeach.org>
2173 * cgen-mem.h (DECLARE_GETT): Don't inline.
2174 (DECLARE_SETT): Ditto.
2176 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
2178 * sim-inline.h: Fix spelling error.
2180 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
2182 * Make-common.in: Add datarootdir.
2184 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2186 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
2187 (SIM_CHECK_MEMBERS_1): Remove.
2188 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
2189 AC_CHECK_MEMBERS one.
2190 * configure: Regenerate.
2192 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
2193 * configure: Regenerate.
2195 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2197 * config.in: Regenerate.
2198 * configure: Likewise.
2200 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
2201 definition of AC_CHECK_MEMBER.
2203 * aclocal.m4: m4_include toplevel config/override.m4.
2204 * configure: Regenerate.
2206 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2208 * Makefile.in (datarootdir): New variable.
2210 2009-07-07 Doug Evans <dje@sebabeach.org>
2212 * Make-common.in (CPU_DIR): Define.
2214 2009-07-06 Doug Evans <dje@sebabeach.org>
2216 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
2217 identifiers for file types rather than encoding internal
2218 implementation details of cgen.sh.
2219 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
2220 * cgen.sh: Add support for parallel makes.
2221 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2223 2009-05-18 Jon Beniston <jon@beniston.com>
2225 * gennltvals.sh: Add lm32 target.
2226 * nltvals.def: Add lm32 syscall definitions.
2228 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
2230 Speed up simulator startup:
2231 * sim-utils.c (zalloc): Use xcalloc.
2233 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
2235 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
2236 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
2237 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
2238 variant; UQI, UHI, USI, UDI, and cast the result to the signed
2239 type, QI, HI, SI, DI.
2241 * callback.c (os_error): Mark as being a noreturn function.
2242 * sim-io.h (sim_io_error): Similar for sim_io_error.
2244 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2246 * aclocal.m4: Fix underquoting of function names.
2248 2008-10-21 Julian Brown <julian@codesourcery.com>
2250 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
2252 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
2254 * common.m4: Add test for libz and zlib.h.
2255 * configure: Regenerate to track ../common/common.m4 changes.
2258 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
2259 Daniel Jacobowitz <dan@codesourcery.com>
2260 Joseph Myers <joseph@codesourcery.com>
2262 * aclocal.m4: Include ../../config/acx.m4.
2263 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
2264 * configure, config.in: Regenerate.
2265 * Make-common.in (LIB_OBJS): Add version.o.
2266 (version.c, version.o): New rules.
2267 * run.c: Include version.h.
2268 (usage): Add help parameter. Print output either to stdout or
2269 stderr depending on that parameter.
2270 (print_version): New.
2271 (main): Check for --help and --version.
2272 * run-sim.h (sim_target_display_usage): Add help parameter.
2275 2008-04-14 Hans Kester <kester.hans@gmail.com>
2277 * sim-signal.c: Define missing signals for _WIN32.
2279 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
2281 * gennltvals.sh: Add cr16.
2282 * nltvals.def: Rebuild.
2284 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
2286 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
2287 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2289 2007-08-10 Nick Clifton <nickc@redhat.com>
2291 * sim-memopt.c (memory_options): Mention that the
2292 --memory-size switch accepts suffixes.
2293 (parse_size): Handle a suffix on the size value.
2294 * sim-options.c (standard_options): Mention that the mem-size
2295 switch accepts suffixes.
2296 (standard_option_handler): Handle a suffix on the size value.
2298 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
2300 * acconfig.h: Remove.
2301 * config.in: Regenerate.
2303 2006-11-07 Thiemo Seufer <ths@mips.com>
2305 * gentmap.c: Fix compile time warning.
2307 2006-11-07 Thiemo Seufer <ths@mips.com>
2309 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
2310 for bfd text addresses.
2312 2006-08-29 Thiemo Seufer <ths@mips.com>
2313 Nigel Stephens <nigel@mips.com>
2315 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
2316 SIM_QUIET_NAN_NEGATED.
2318 2006-08-29 Nigel Stephens <nigel@mips.com>
2320 * sim-profile.c (profile_pc_init): Initialise default profiling
2321 frequency to a prime number.
2322 (profile_print_pc): Convert gmon.out sample data into target
2325 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
2327 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
2328 * common.m4: Likewise.
2329 * configure: Regenerated.
2331 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2333 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
2334 * configure: Regenerated.
2336 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2338 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
2339 and LIBINTL_DEP everywhere.
2340 (CSEARCH): Use INCINTL.
2341 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
2343 * configure: Regenerated.
2345 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
2347 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
2348 option-contents test.
2350 2005-11-28 Mark Mitchell <mark@codesourcery.com>
2352 * sim-signal.c (sim_signal_to_target): Fix typos.
2354 * sim-reason.c (sim_stop_reason): Use
2355 sim_signal_to_target, not sim_signal_to_host.
2356 * sim-signal.c (sim_signal_to_host): Fix typo.
2357 (sim_signal_to_target): New function.
2359 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
2361 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
2364 2005-07-08 Ian Lance Taylor <ian@airs.com>
2366 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
2368 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
2369 different fraction for a quiet NaN.
2370 (unpack_fpu): Likewise.
2372 2005-07-08 Ben Elliston <bje@au.ibm.com>
2374 * callback.c: Remove ANSI_PROTOTYPES conditional code.
2375 * sim-load.c: Likewise.
2376 * syscall.c: Likewise.
2378 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
2380 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
2383 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2385 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
2387 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
2389 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
2390 and signed64 for __ALPHA__.
2392 2005-03-23 Mark Kettenis <kettenis@gnu.org>
2394 * aclocal.m4 Include ../../gettext.m4.
2395 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
2396 (AM_LC_MESSAGES): Remove.
2397 * configure: Regenerate.
2399 2005-02-28 Jim Blandy <jimb@redhat.com>
2401 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
2402 -Wuninitialized in the default list of build warnings if CFLAGS is
2403 set, and doesn't include -O. (Using -Wuninitialized without
2404 optimization produces a warning, which interferes with compilation
2407 2005-02-21 Jim Blandy <jimb@redhat.com>
2409 * callback.c (os_fstat): Don't declare 't' unless it's used.
2411 2005-02-09 Jim Blandy <jimb@redhat.com>
2413 * Make-common.in (CGEN): Load guile.scm, and include a trailing
2415 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
2416 to $(CGEN), to ensure that the command substitution happens where
2417 the variable is referenced in the submake, not when the submake's
2418 arguments are expanded.
2419 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
2420 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
2421 application Scheme script directly after ${cgen}; don't precede it
2424 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
2426 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
2427 * callback.c [HAVE_LIMITS_H]: Include limits.h.
2428 Include libiberty.h.
2429 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
2430 being either end of a pipe.
2431 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
2432 (os_shutdown): Clear pipe state.
2433 (default_callback): Initialize new members.
2435 * callback.c (default_callback): Initialize target_endian.
2436 (cb_store_target_endian): Renamed from store, new first parameter
2437 host_callback *cb, drop last parameter big_p. Take endianness
2439 (cb_host_to_target_stat): Change to use cb_store_target_endian.
2440 Remove variable big_p.
2441 * nrun.c (main): Initialize default_callback.target_endian.
2443 2005-01-14 Andrew Cagney <cagney@gnu.org>
2445 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
2446 Add explicit call to AC_CONFIG_HEADER.
2447 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
2448 * configure: Re-generate.
2450 2005-01-12 Andrew Cagney <cagney@gnu.org>
2452 * common.m4: New file, based on of aclocal.m4.
2454 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
2456 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
2457 * configure: Regenerated to track ../common/aclocal.m4 changes.
2459 2005-01-07 Andrew Cagney <cagney@gnu.org>
2461 * configure.ac: Rename configure.in, require autoconf 2.59.
2462 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
2463 * configure: Re-generate.
2465 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
2467 * syscall.c (cb_syscall) <case CB_SYS_truncate>
2468 <case CB_SYS_ftruncate>: New cases.
2470 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
2472 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
2473 (cb_syscall) <case CB_SYS_rename>: New case.
2474 * callback.c (os_lstat): New function.
2476 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
2478 * run.1: Document --sysroot=filepath.
2479 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
2480 (standard_options): Support --sysroot=<path>.
2481 (standard_option_handler): Handle OPTION_SYSROOT.
2482 * syscall.c (simulator_sysroot): Define, initialized empty.
2483 (get_path): Prepend simulator_sysroot to absolute file path.
2484 [HAVE_STRING_H]: Include string.h.
2485 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
2486 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
2487 (main): If simulator_sysroot is not empty, chdir there.
2488 * sim-config.h (simulator_sysroot): Declare.
2490 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
2491 cgen_rtx_error" in a CGEN-generated simulator.
2492 * gdbinit.in: Break on sim_core_signal too. Have autoconf
2493 replacement for CGEN-related breakpoints.
2495 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
2497 * Make-common.in (sim-basics_h): Add $(callback_h).
2499 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
2501 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
2502 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
2503 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
2504 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
2505 (SIM_CHECK_MEMBERS): New macros.
2506 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
2507 for struct stat member test and write. Add ST_x calls for each
2508 struct stat member tested in configure.in. Wrap each ST_x call in
2509 #ifdef of configure macro for that member.
2510 * configure, config.in: Regenerate.
2512 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
2514 * cgen.sh: New thirteenth parameter opcfile, defaulting to
2516 <case desc>: Pass -OPC opcfile.
2517 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
2518 parameter to cgen.sh.
2520 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
2522 * Make-common.in (sim-basics_h): Correct dependencies on
2523 cconfig.h and tconfig.h
2524 (sim-load.o): Correct typo in sim-basics_h dependency.
2526 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
2528 * Make-common.in (sim-*_h): Add macros for all sim headers listing
2529 sub-dependencies for other sim files that they include.
2530 (sim_main_headers): Use sim-*_h macros.
2531 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2533 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
2535 * sim-config.c (sim_config): Recognize when a bfd has unspecified
2538 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
2539 $(remote_sim_h) too.
2540 (sim_main_headers): Add sim-utils.h.
2542 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2544 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2546 2004-07-26 Andrew Cagney <cagney@gnu.org>
2548 Problem from Olaf Hering <olh@suse.de>.
2549 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2551 2004-07-10 Ben Elliston <bje@au.ibm.com>
2553 * hw-tree.c (parse_integer_property): Typo fix in comments.
2554 * sim-options.c (sim_args_command): Likewise.
2556 2004-06-28 Andrew Cagney <cagney@gnu.org>
2558 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2560 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2562 * callback.c (os_shutdown): Fix bug in last change: actually
2563 mark file descriptors as available on startup.
2565 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
2567 [ include/gdb: * callback.h (host_callback_struct): Replace
2568 members fdopen and alwaysopen with fd_buddy. ]
2569 * callback.c: Changed all users.
2571 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2573 * sim-load.c (sim_load_file): Use bfd_get_section_size
2574 instead of bfd_get_section_size_before_reloc.
2576 2004-05-18 Daniel Jacobowitz <dan@debian.org>
2578 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
2579 passing it to printf.
2581 2004-05-10 Daniel Jacobowitz <dan@debian.org>
2583 * callback.c: Update copyright dates.
2585 * sim-basics.h: Likewise.
2586 * sim-load.c: Likewise.
2587 * syscall.c: Likewise.
2589 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2591 * callback.c: Include cconfig.h instead of config.h.
2593 * sim-basics.h: Likewise.
2594 * sim-load.c: Likewise.
2595 * syscall.c: Likewise.
2597 2004-01-16 Ben Elliston <bje@wasabisystems.com>
2599 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2601 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2603 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2605 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2607 * sim-options.c (standard_options): Fix the names of H8
2610 2003-10-30 Andrew Cagney <cagney@redhat.com>
2612 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
2613 with "struct bfd_symbol".
2615 2003-10-21 Andrew Cagney <cagney@redhat.com>
2617 * callback.c (os_truncate): Call "truncate", and not "stat".
2619 2003-10-20 Andrew Cagney <cagney@redhat.com>
2621 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2623 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2625 * callback.c (os_ftruncate, os_truncate): New functions.
2626 (default_callback): Initialize ftruncate and truncate members.
2628 2003-09-08 Dave Brolley <brolley@redhat.com>
2630 On behalf of Doug Evans <dje@sebabeach.org>
2631 * cgen.sh: New arg archfile.
2632 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2633 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2635 2003-08-28 Andrew Cagney <cagney@redhat.com>
2637 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2638 * sim-options.c (print_help): Cast the format with specifier to
2641 2003-08-20 Michael Snyder <msnyder@redhat.com>
2642 Dave Brolley <brolley@redhat.com>
2644 * cgen-par.h (flags, word1): New target-specific
2645 fields of CGEN_WRITE_QUEUE_ELEMENT.
2646 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2647 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2648 * gennltvals.sh: Add frv target.
2649 * nltvals.def: Add frv target.
2651 2003-06-23 Michael Snyder <msnyder@redhat.com>
2653 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2654 * sim-reg.c: Fix cut-and-paste bug in comment.
2656 2003-06-22 Andrew Cagney <cagney@redhat.com>
2658 From matthew green <mrg@redhat.com>:
2659 * sim-fpu.h: Update copyright.
2660 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2661 * sim-fpu.c: Update copyright.
2662 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2664 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2666 From Doug Evans <dje@sebabeach.org>:
2667 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2668 with disassemble_info:read_memory_func.
2669 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2671 2003-06-04 Michael Snyder <msnyder@redhat.com>
2673 * common/run.c (main): Remove SIM_H8300 ifdef.
2675 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2676 (standard_options): Add '-x' for h8/300sx.
2677 (standard_option_handler): Add case for SIM_H8300SX.
2679 2003-04-13 Michael Snyder <msnyder@redhat.com>
2681 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2683 2003-03-01 Andrew Cagney <cagney@redhat.com>
2685 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
2686 (sim_engine_vabort): Ditto.
2688 2003-02-27 Andrew Cagney <cagney@redhat.com>
2690 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
2691 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
2692 * nrun.c (main): Ditto.
2694 2003-02-26 Andrew Cagney <cagney@redhat.com>
2696 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
2697 (sim_engine_vabort): Ditto.
2698 (sim_engine_halt, sim_engine_restart): Ditto.
2700 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2702 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
2703 (sim-break_h): Delete macro.
2704 (sim-break.o): Delete rule.
2705 * sim-break.c: Delete file.
2706 * sim-break.h: Delete file.
2707 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
2708 (STATE_BREAKPOINTS): Delete macro.
2709 (sim_state_base): Delete field breakpoints.
2710 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
2711 sim_break_install to array.
2713 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2715 * run.c (usage): Fix typos.
2717 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
2719 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2721 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2723 * dv-core.c: Update copyright. sim/common contributed to the FSF.
2724 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
2725 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
2726 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
2727 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
2728 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
2729 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
2730 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
2731 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
2732 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2734 2002-11-13 Andrew Cagney <cagney@redhat.com>
2736 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2738 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
2740 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
2741 (distclean): Depend on it.
2743 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2745 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2747 2002-08-29 Dave Brolley <brolley@redhat.com>
2749 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2751 2002-07-17 Andrew Cagney <cagney@redhat.com>
2753 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
2754 (sim_set_callbacks, sim_size, sim_trace)
2755 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
2756 to here from "gdb/remote-sim.h".
2758 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2760 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
2761 avoid possible longjmp problems with automatic variable siggnal.
2763 2002-07-14 Andrew Cagney <ac131313@redhat.com>
2765 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
2766 * Make-common.in (installdirs): Make $(libdir) too, needed when
2767 installing libsim.a.
2769 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2771 * gennltvals.sh (dir): Mark d30v as obsolete.
2772 * nltvals.def: Remove d30v.
2774 2002-06-17 Andrew Cagney <cagney@redhat.com>
2776 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2778 * sim-memopt.c: Include <unistd.h>.
2779 (do_memopt_add): Fix printf format.
2780 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2782 2002-06-16 Andrew Cagney <ac131313@redhat.com>
2784 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
2785 --enable-gdb-build-warnings.
2786 * configure: Regenerated to track ../common/aclocal.m4 changes.
2788 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2790 * sim-fpu.c (unpack_fpu): Initialize exponent for
2793 (sim_fpu_sqrt): Same.
2795 2002-06-08 Andrew Cagney <cagney@redhat.com>
2797 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
2798 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
2800 * sim-load.c: Ditto.
2801 * callback.c: Ditto.
2803 * Make-common.in (callback_h): Define.
2804 (remote_sim_h): Define.
2806 (callback.o): Update.
2807 (syscall.o): Update.
2810 (sim-hload.o): Update.
2812 (sim-reason.o): Update.
2813 (sim-reg.o): Update.
2814 (sim-resume.o): Update.
2816 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2818 * run.c: Fix formatting.
2820 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2822 * run-sim.h: New header. Provide prototypes for functions used
2823 between run() and libsim.a which are not used by GDB.
2824 * run.c: Include run-sim.h.
2825 (main): If SIM_TARGET_SWITCHES is defined call
2826 sim_target_parse_command_line.
2827 (usage): If SIM_TARGET_SWITCHES is defined call
2828 sim_target_display_usage.
2830 2002-05-17 Andrey Volkov <avolkov@transas.com>
2832 * run.c: Made h8300s as new target, not h8300h alias.
2833 Added new option -S (h8300s target)
2834 * sim-options.c: Ditto.
2836 2002-05-01 Chris Demetriou <cgd@broadcom.com>
2838 * callback.c: Use 'deprecated' rather than 'depreciated.'
2840 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2842 From wiz at danbala:
2843 * sim-fpu.h: Fix grammar and typos.
2846 2002-02-10 Chris Demetriou <cgd@broadcom.com>
2848 * callback.c: Fix some spelling errors.
2849 * hw-device.h: Likewise.
2850 * hw-tree.c: Likewise.
2851 * sim-abort.c: Likewise.
2852 * sim-alu.h: Likewise.
2853 * sim-core.h: Likewise.
2854 * sim-events.c: Likewise.
2855 * sim-events.h: Likewise.
2856 * sim-fpu.h: Likewise.
2857 * sim-profile.h: Likewise.
2858 * sim-utils.c: Likewise.
2860 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2862 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
2865 2002-01-20 Ben Elliston <bje@redhat.com>
2867 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
2868 the comment for this enumerator.
2870 2002-01-14 Ben Elliston <bje@redhat.com>
2872 * sim-fpu.h: Fix comment about sim_fpu_* constants.
2874 2001-12-20 Kazu Hirata <kazu@hxi.com>
2876 * run.c (usage): Fix a typo.
2878 2001-07-05 Ben Elliston <bje@redhat.com>
2880 * Make-common.in (srccgen): Remove.
2881 (CGEN_CPU_DIR): Define.
2882 (CGEN_READ_SCM): Redefine without $(srccgen).
2883 (CGEN_ARCH_SCM): Ditto.
2884 (CGEN_CPU_SCM): Ditto.
2885 (CGEN_DECODE_SCM): Ditto.
2886 (CGEN_DESC_SCM): Ditto.
2888 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2890 * sim-load.c (sim_load_file): Put it back: external now.
2891 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
2893 2001-04-21 Andrew Cagney <ac131313@redhat.com>
2895 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
2897 * sim-utils.c (sim_analyze_program): Ditto.
2899 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
2901 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
2902 we're finished with its immediate use.
2903 * sim-load.c (sim_load_file): Ditto.
2905 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
2907 Add support for mmap-based memory regions.
2908 * sim-memopt.c (mmap_next_fd): New global.
2909 (sim_memory_init): Reinitialize it.
2910 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
2911 "--memory-mapfile FILE" option. Check for some errors.
2912 (do_memopt_add): Conditionally do mmap instead of malloc for
2913 backing store of simulated memory. Check for more errors.
2914 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
2915 * sim-memopt.h (munmap_length): New member of _sim_memopt.
2916 * configure.in: Look for mmap/fstat related functions and headers.
2917 * config.in, configure: Regenerated.
2919 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
2921 * sim-core.c (sim_core_map_attach): Correct overlap-related
2924 2001-03-07 Michael Meissner <meissner@redhat.com>
2926 * run.c (alloca-conf.h): Delete, no longer provided.
2928 2001-02-22 Ben Elliston <bje@redhat.com>
2930 * sim-trace.h (TRACE_VPU_IDX): Add.
2931 (TRACE_vpu): Define.
2932 (WITH_TRACE_VPU_P): Likewise.
2933 (TRACE_VPU_P): Likewise.
2934 * sim-trace.c (OPTION_TRACE_VPU): Define.
2935 (trace_options): Add --trace-vpu.
2936 (trace_option_handler): Handle OPTION_TRACE_VPU.
2937 (trace_option_handler): Include VPU tracing in --trace-semantics.
2938 (trace_idx_to_str): Handle TRACE_VPU_IDX.
2940 2001-02-21 Ben Elliston <bje@redhat.com>
2942 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
2943 (TRACE_BRANCH_INPUT2): Likewise.
2945 2001-02-09 Ben Elliston <bje@redhat.com>
2947 * (profile_print_pc): Write header out in target byte order.
2949 2001-02-09 Ben Elliston <bje@redhat.com>
2951 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
2952 adjusting the pc shift value.
2954 2001-01-12 Chris Demetriou <cgd@sibyte.com>
2956 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
2957 where a numeric value is supplied.
2959 2001-01-06 Ben Elliston <bje@redhat.com>
2961 * cgen.sh: Allow extrafiles to include the semantics files when
2962 generating an ISA-specific decoder.
2964 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2966 * Make-common.in (sim-io.o): Depend on targ-vals.h.
2968 2000-12-23 Ben Elliston <bje@redhat.com>
2970 * cgen-trace.c (trace_result): Handle 'f' type operands; output
2971 them to the trace stream using sim_fpu_printn_fpu. Include
2974 2000-12-15 Ben Elliston <bje@redhat.com>
2976 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
2977 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
2978 trailing digits as specified (-1 to print all digits).
2979 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
2980 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
2983 2000-12-13 Ben Elliston <bje@redhat.com>
2985 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
2986 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
2989 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2991 * sim-endian.h: Don't have parameters on macro definitions which
2992 are simply renaming functions, to permit use of XCONCAT2 in both
2993 the macro name and the arguments in a use of such a definition.
2995 2000-12-11 Ben Elliston <bje@redhat.com>
2997 * cgen-ops.h (SUBWORDDFDI): New function.
2999 2000-12-05 Ben Elliston <bje@redhat.com>
3001 * Make-common.in (cgen-defs): New target.
3002 (cgen-decode): Pass $(EXTRAFILES).
3004 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
3005 -outfile-suffix options.
3007 2000-12-04 Ben Elliston <bje@redhat.com>
3009 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
3010 (SUBWORDSIUQI): Likewise.
3011 (SUBWORDDIHI): Likewise.
3012 (SUBWORDDIQI): New function.
3014 * cgen-trace.c (disassemble_insn): Remove unused declaration.
3015 * cgen-scache.c (scache_option_handler): Remove unused local var.
3017 2000-12-03 Ben Elliston <bje@redhat.com>
3019 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
3021 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3023 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
3025 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3027 * dv-core.c (dv_core_attach_address_callback): Don't abort if
3030 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3032 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
3033 (set_hw_delete): Moved the macro as a function.
3034 * hw-base.h (set_hw_delete): Declare as external function.
3035 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
3036 allocated using hw_malloc.
3038 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3040 * sim-options.c (sim_parse_args): Free the memory used for
3041 long_options, short_options, handlers, opt_cpu, orig_val.
3043 2000-11-20 Ben Elliston <bje@redhat.com>
3045 * cgen-ops.h (SUBBI): New macro.
3046 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
3047 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
3049 2000-11-16 Ben Elliston <bje@redhat.com>
3051 * cgen-types.h (VOID): New type.
3053 2000-11-09 Ben Elliston <bje@redhat.com>
3055 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
3056 (sim_fpu_two): Set exponent to 1.
3058 2000-10-26 Ben Elliston <bje@redhat.com>
3060 * cgen.sh: Handle an isa argument between cpu and mach. Default to
3061 `all'. Pass `-i' options to cgen applications.
3062 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
3063 cgen-desc): Pass $(isa) to cgen.sh.
3065 2000-10-08 Ben Elliston <bje@redhat.com>
3067 * cgen-utils.c (cgen_rtx_error): New function.
3069 2000-10-07 Ben Elliston <bje@redhat.com>
3071 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
3072 conditions for sim_core_read_buffer().
3074 2000-09-26 Dave Brolley <brolley@redhat.com>
3076 * cgen-utils.c (RORQI): New function.
3077 (ROLQI): New function.
3078 (RORHI): New function.
3079 (ROLHI): New function.
3081 2000-08-28 Dave Brolley <brolley@redhat.com>
3083 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
3084 in insn_value if it will fit.
3086 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
3088 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
3090 2000-08-15 Dave Brolley <brolley@redhat.com>
3092 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
3094 2000-08-15 Dave Brolley <brolley@redhat.com>
3096 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
3097 (PROFILE_CPU_FREQ): New macro.
3098 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
3099 (profile-options): Add profile-cpu-frequency.
3100 (parse_frequency): New function.
3101 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
3102 (profile_print_speed): Print cpu frequency and simulated execution time.
3103 Re-indent other items to match.
3105 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
3107 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
3109 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
3111 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3112 * Makefile.in (install): Install run.1 man page.
3114 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
3116 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
3117 * Makefile.in (headers,nltvals.def): Merge.
3119 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
3121 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3122 * nrun.c (main): Print the simulator statistics only in
3124 * hw-properties.h (hw_find_integer_array_property): Fix
3125 prototype (use signed_cell).
3127 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3128 * sim-events.c (sim_events_remain_time): New function returning
3129 the time that remains before the event is raised.
3130 * hw-events.c (hw_event_remain_time): Likewise.
3131 * sim-events.h (sim_events_remain_time): Declare.
3132 * hw-events.h (hw_event_remain_time): Declare.
3134 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3135 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
3136 (OPTION_HW_LIST): New option --hw-list to list the devices.
3137 (hw_option_handler): List the device tree with 'sim_hw_print'.
3139 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3140 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
3141 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
3142 (EXTENDED): Define for 16-bit word size.
3143 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
3144 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
3145 * sim-types.h: Added support for 16-bit targets.
3147 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
3149 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
3151 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
3153 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
3154 * Makefile.in (distclean): Clean cconfig.h also.
3156 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
3158 * configure: Regenerated to track ../common/aclocal.m4 changes.
3160 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
3162 * aclocal.m4 (sim-profile): Enable the profiler by default.
3164 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
3166 * run.c (main): Initialize sigrc.
3168 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
3170 * sim-events.c (update_time_from_event): Add more detailed event
3173 2000-03-30 Dave Brolley <brolley@redhat.com>
3175 * aclocal.m4 (cgen): Use guile to run cgen.
3177 2000-03-23 Dave Brolley <brolley@redhat.com>
3179 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
3181 * cgen-accfp.c (fextsfdf): New function.
3182 (ftruncdfsf): New function.
3183 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
3185 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
3187 * cgen-ops.h: Added TRUNCSISI.
3189 2000-03-08 Dave Brolley <brolley@redhat.com>
3191 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
3192 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
3193 (sim_queue_fn_si_write): Last argument is has type USI.
3194 (sim_queue_fn_sf_write): New function.
3195 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
3196 (sim_queue_fn_sf_write): New function.
3197 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
3199 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
3201 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
3202 sim_set_trace and run simulator using sim_resume.
3203 (main): Add option ``-o'' - operating environment. Only continue
3204 after a signal when operating environment.
3205 (main): Always set REASON and SIGRC using sim_stop_reason.
3206 (sim_trace): Delete extern declaration.
3208 2000-02-08 Nick Clifton <nickc@cygnus.com>
3210 * callback.c: Fix compile time warning messages.
3211 * run.c: Fix compile time warning messages.
3213 1999-12-17 Dave Brolley <brolley@cygnus.com>
3215 * sim-profile.h: (set_profile_option_mask): Add prototype.
3216 * sim-profile.c (set_profile_option_mask): No longer static.
3218 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3220 * sim-arange.c: Include <string.h>
3222 1999-12-07 Dave Brolley <brolley@cygnus.com>
3224 * sim-options.c (print_help): '=' required before optional argument.
3225 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
3226 (CGEN_FN_MEM_HI_WRITE): New enumerator.
3227 (CGEN_FN_MEM_SI_WRITE): New enumerator.
3228 (CGEN_FN_MEM_DI_WRITE): New enumerator.
3229 (CGEN_FN_MEM_DF_WRITE): New enumerator.
3230 (CGEN_FN_MEM_XI_WRITE): New enumerator.
3231 (fn_mem_qi_write): New union members.
3232 (fn_mem_hi_write): New union members.
3233 (fn_mem_si_write): New union members.
3234 (fn_mem_di_write): New union members.
3235 (fn_mem_df_write): New union members.
3236 (fn_mem_xi_write): New union members.
3237 (sim_queue_fn_mem_qi_write): New function.
3238 (sim_queue_fn_mem_hi_write): New function.
3239 (sim_queue_fn_mem_si_write): New function.
3240 (sim_queue_fn_mem_di_write): New function.
3241 (sim_queue_fn_mem_df_write): New function.
3242 (sim_queue_fn_mem_xi_write): New function.
3243 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
3244 (sim_queue_fn_mem_hi_write): New function.
3245 (sim_queue_fn_mem_si_write): New function.
3246 (sim_queue_fn_mem_di_write): New function.
3247 (sim_queue_fn_mem_df_write): New function.
3248 (sim_queue_fn_mem_xi_write): New function.
3249 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
3250 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
3251 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
3253 1999-12-01 Dave Brolley <brolley@cygnus.com>
3255 * cgen-accfp.c (subsf): Check status code.
3273 1999-11-26 Dave Brolley <brolley@cygnus.com>
3275 * cgen-par.h (fn_df_write): Mode of data is DF.
3276 (sim_queue_fn_df_write): Mode of data is DF.
3277 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
3279 1999-11-22 Dave Brolley <brolley@cygnus.com>
3281 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
3282 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
3284 1999-11-04 Dave Brolley <brolley@cygnus.com>
3286 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
3287 CGEN_MEM_XI_WRITE members.
3288 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
3289 (sim_queue_fn_xi_write): New function.
3290 (sim_queue_mem_xi_write): New function.
3292 * cgen-par.c (sim_queue_fn_xi_write): New function.
3293 (sim_queue_mem_xi_write): New function.
3294 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
3297 1999-10-22 Dave Brolley <brolley@cygnus.com>
3299 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
3300 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
3301 * cgen-par.c: Set insn_address for each queued write. Get pc from
3302 cpu when executing queued writes.
3304 1999-10-19 Dave Brolley <brolley@cygnus.com>
3306 * cgen-par.h (sim_queue_fn_pc_write): New function.
3307 (CGEN_FN_PC_WRITE): New enumerator.
3308 (fn_pc_write): New union member.
3309 * cgen-par.c (sim_queue_fn_pc_write): New function.
3310 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
3312 1999-10-18 Dave Brolley <brolley@cygnus.com>
3314 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
3315 (CGEN_MEM_DF_WRITE): New enumerator.
3316 (mem_di_write): New union member.
3317 (mem_df_write): New union member.
3318 * cgen-par.c (sim_queue_mem_di_write): New function.
3319 (sim_queue_mem_df_write): New function.
3320 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
3322 * cgen-accfp.c (divsf): Check for division errors.
3324 1999-10-14 Doug Evans <devans@casey.cygnus.com>
3326 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
3328 1999-10-07 Dave Brolley <brolley@cygnus.com>
3330 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
3331 (fn_hi_write): New union member.
3332 (sim_queue_fn_hi_write): New function.
3333 * cgen-par.c (sim_queue_fn_hi_write): New function.
3334 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
3336 1999-09-29 Doug Evans <devans@casey.cygnus.com>
3338 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
3339 Change type of result to SEM_PC.
3341 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
3343 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
3345 1999-09-25 Doug Evans <devans@casey.cygnus.com>
3347 * cgen-ops.h (SUBWORD*): Delete cpu arg.
3348 (JOIN*): Delete cpu arg.
3350 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
3352 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
3354 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
3356 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
3358 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
3361 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
3363 * run.c (main): Check the sim_stop_reason and only halt simulation
3364 when a valid stop condition is identified.
3366 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3368 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
3370 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
3372 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
3373 (bi_write): New union element.
3374 (sim_queue_bi_write): New function.
3375 * cgen-par.c (sim_queue_bi_write): New function.
3376 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
3378 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3380 * configure: Regenerated to track ../common/aclocal.m4 changes.
3382 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
3383 ../gdb/configure.in.
3384 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
3385 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
3386 (SIM_WARNINGS): Delete
3387 (CONFIG_CFLAGS): Update.
3389 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
3391 * cgen-par.c: New file.
3392 * cgen-par.h: New file.
3393 * cgen-sim.h (cgen-par.h): #include it.
3394 * cgen-cpu.h (write_queue): New field.
3395 (CPU_WRITE_QUEUE): New access macro.
3396 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
3397 (cgen-par.o): New target.
3399 1999-08-28 Doug Evans <devans@casey.cygnus.com>
3401 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
3402 * cgen-utils.c (mode_names): Update.
3404 1999-08-20 Doug Evans <devans@casey.cygnus.com>
3406 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
3407 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
3408 buffer arg if WITH_PARALLEL_GENWRITE.
3409 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
3410 (struct idesc): Ditto.
3412 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
3414 * sim-model.c (model_option_handler): Add \n to error message.
3416 1999-08-08 Doug Evans <devans@casey.cygnus.com>
3418 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
3419 (insn_sem): Rewrite.
3420 (sem_fn_desc): New struct.
3422 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
3424 (scache case): Split into non-parallel/parallel versions.
3425 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
3426 if not use semantic switch version.
3428 1999-08-04 Doug Evans <devans@casey.cygnus.com>
3430 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
3431 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
3432 (SEM_BRANCH_INIT_EXTRACT): Delete.
3433 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
3434 (SEM_BRANCH_FINI): Ditto.
3435 (SEM_BRANCH_VIA_ADDR): Ditto.
3436 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
3437 (SEM_BRANCH_ADDR_CACHE): Delete.
3438 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
3439 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
3441 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
3442 (@cpu@_pbb_begin): Initialize branch_target.
3443 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
3444 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
3446 (@cpu@_engine_run_fast): Ditto.
3448 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
3450 * cgen-utils.c (RORSI): New function.
3451 (ROLSI): New function.
3453 1999-07-14 Doug Evans <devans@casey.cygnus.com>
3455 * Makefile.in (TAGS): Tweak TAGS regex.
3456 * cgen-mem.h (*): Add TAGS markers.
3458 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
3460 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
3461 passed in when sim_resume is first entered - don't re-pass it
3464 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3466 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
3467 OPTION_LOAD_LMA but only when is defined.
3468 (standard_options): When SIM_HANDLES_LMA is defined include
3469 options --load-lma and --load-vma.
3470 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
3472 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
3473 (struct sim_state_base): Add load_at_lma_p.
3474 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
3475 STATE_LOAD_AT_LMA_P.
3477 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3479 * nrun.c (main): Re-format loop gnu style.
3481 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
3483 * dv-sockser.c (connected_p): Initialize addrlen.
3485 1999-07-06 Dave Brolley <brolley@cygnus.com>
3487 * cgen-accfp.c (floatsidf): New function.
3488 (fixdfsi): New function.
3490 1999-07-06 Doug Evans <devans@casey.cygnus.com>
3492 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
3494 1999-07-05 Doug Evans <devans@casey.cygnus.com>
3496 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
3497 (cgen-fpu.o,cgen-accfp.o): Add rules for.
3498 * cgen-fpu.c: New file.
3499 * cgen-fpu.h: New file.
3500 * cgen-accfp.c: New file.
3501 * cgen-cpu.h (CGEN_CPU): New member fpu.
3502 * cgen-mem.h: Redo fp support.
3503 * cgen-ops.h: Delete k&r support. Redo fp support.
3504 * cgen-sim.h: Include cgen-fpu.h.
3505 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
3507 1999-06-23 Doug Evans <devans@casey.cygnus.com>
3509 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
3511 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
3512 (@cpu@_pbb_cti_chain): Minor clean up.
3514 1999-05-08 Felix Lee <flee@cygnus.com>
3516 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
3517 AM_CYGWIN32 and AM_EXEEXT.
3518 * configure: Regenerate.
3520 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
3522 * sim-core.c (device_error,device_io_read_buffer,
3523 device_io_write_buffer): Delete decls.
3524 * sim-core.h: Put them here.
3526 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
3527 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
3528 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
3529 (sim_core_write_aligned_N): Ditto.
3531 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
3533 * sim-memopt.c (sim_memory_uninstall): Don't look into
3536 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3538 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
3540 1999-04-13 Doug Evans <devans@casey.cygnus.com>
3542 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
3543 (sim_core_write_buffer): Ditto.
3545 1999-04-02 Keith Seitz <keiths@cygnus.com>
3547 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
3548 after the interval counter has expired.
3549 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
3550 poll_quit callbacks. May be overridden by Makefile.
3551 (poll_quit_counter): New global.
3552 * sim-events.c: Remove all mentions of ui_loop_hook. The
3553 host callback "poll_quit" will serve the purpose.
3554 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3556 * nrun.c: Remove declaration of ui_loop_hook.
3558 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3560 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3561 if being used by gdb.
3563 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3565 * cgen-types.h (XF,TF): Tweak.
3566 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
3568 (SUBWORD*,JOIN*): Define.
3569 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
3570 moved into cpu descriptor.
3571 * sim-model.h (MACH): New member `num'.
3573 1999-02-09 Doug Evans <devans@casey.cygnus.com>
3575 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
3576 (CGEN_CPU): Member opcode renamed to cpu_desc.
3577 New members get_idata,disassembler.
3578 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
3579 CGEN_INSN_ATTR_VALUE.
3580 (CGEN_STATE): Delete member opcode_table.
3581 (sim_disassemble_insn): Delete decl.
3582 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
3583 (struct idesc): Moved to here from <cpu>-decode.h.
3584 * cgen-run.c (prime_cpu): Call prepare_run callback.
3585 * cgen-trace.h (SFILE): New type.
3586 (sim_disasm_sprintf): Declare.
3587 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
3588 (sim_cgen_disassemble_insn): Declare.
3589 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
3590 (insn_fields): Delete.
3591 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
3593 (trace_insn): Call CPU_DISASSEMBLER hook.
3594 (sim_disasm_sprintf): New function.
3595 (sim_disasm_read_memory): New function.
3596 (sim_disasm_perror_memory): New function.
3597 (sim_cgen_disassemble_insn): New function.
3598 * cgen-utils.c: Don't include cpu-opc.h.
3599 (virtual_insn_entries): New static local.
3600 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
3601 (cgen_insn_name): Rewrite.
3602 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
3603 * cgen.sh (desc): New file generator handler.
3604 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
3605 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
3606 Don't include cpu-opc.h,cpu-sim.h.
3607 * sim-model.c (model_set): Delete SIM_DESC arg.
3608 (sim_model_set): Update.
3609 * sim-model.h (MACH): New member prepare_run.
3611 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
3613 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3614 if redundant with allocator functions.
3616 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3618 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3620 * sim-profile.h: Make like sim-trace.h.
3621 (PROFILE_USEFUL_MASK): New macro.
3622 * sim-profile.c (profile_options): Make like trace_options, allow
3623 optional on|off arg where applicable.
3624 (set_profile_option_mask): New function.
3625 (sim_profile_set_option): New function.
3626 (profile_option_handler): Simplify.
3627 Have -p only enable selected things, not everything.
3628 Add missing break to OPTION_PROFILE_PC_RANGE.
3629 * cgen-scache.c (scache_options): Allow optional on|off arg to
3631 (scache_option_handler): Use sim_profile_set_option.
3633 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3635 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3636 (memory_option_handler): Implement MEMORY_FILL option. Make
3637 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3638 (parse_ulong_value): New function.
3639 (do_memopt_add): Allocate all buffers. Optionally fill them.
3641 1999-01-15 Richard Henderson <rth@cygnus.com>
3643 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3644 va_list, not an integer.
3645 * sim-events.c (sim_events_schedule): Likewise.
3647 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3648 the appropriate type.
3650 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3652 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3653 (sim_disassemble_insn): Update prototype.
3654 (sim_engine_invalid_insn): Ditto.
3655 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3656 (SEM_BRANCH_INIT): PCADDR->IADDR.
3657 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3658 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3659 * cgen-scache.h (*): Ditto.
3660 * cgen-trace.c (*): Ditto.
3661 * cgen-trace.h (*): Ditto.
3662 * cgen-utils.c (*): Ditto.
3663 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3665 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3666 (simple engine framework): Rewrite.
3667 * sim-module.c (modules): Install model module sooner (and in
3668 particular before the profile module).
3670 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3672 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3673 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3674 (sim_model_init): Call it.
3676 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3678 1999-01-05 Doug Evans <devans@casey.cygnus.com>
3680 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
3681 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
3682 (SEM_BRANCH_INIT_EXTRACT): New macro.
3683 (SEM_BRANCH_INIT): Add taken_p.
3684 (TARGET_SEM_BRANCH_FINI): Provide default definition.
3685 (SEM_BRANCH_FINI): Use it.
3687 * cgen-run.c (sim_resume): Handle tracing of last insn.
3688 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
3689 * cgen-trace.c (current_abuf): New static global.
3690 (trace_insn_init): Initialize it.
3691 (trace_insn_fini): Use it.
3692 (trace_insn): Set it.
3693 * cgen.sh (arch case): Pass -m ${mach} to cgen.
3694 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
3695 (@cpu@_emit_after): Ditto.
3696 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
3697 labels if WITH_SEM_SWITCH_FULL.
3698 * sim-model.c: Include bfd.h.
3699 (sim_model_init): New function.
3700 (sim_model_install): Record init fn.
3701 * sim-model.h (MACH): New member bfd_name.
3702 * sim-module.c (modules): Initialize model before scache.
3704 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
3706 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
3708 * nrun.c (main): Remain in simulation loop for traps and
3709 exceptions when in operating environment mode.
3710 (ui_loop_hook): New stub hook for standalone use.
3711 * sim-events.c (sim_events_process): Call ui_loop_hook
3712 periodically on CYGWIN host.
3714 * sim-reason.c (sim_stop_reason): Return host signal numbers
3715 to gdb on sim_stopped and sim_signalled cases.
3716 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
3717 hook just before longjmp.
3718 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
3719 hook just before sim_engine_run.
3721 * sim-n-core.h (sim_core_trace_M): Allay const warning.
3722 * sim-trace.h (trace_generic): Ditto.
3723 * sim-trace.c (trace_generic): Ditto.
3725 1998-12-14 Doug Evans <devans@casey.cygnus.com>
3727 * Make-common.in (SIM_MAIN_DEPS): New var.
3728 (CGEN_MAIN_CPU_DEPS): New var.
3729 * aclocal.m4: Add --enable-cgen-maint option.
3730 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
3732 (GETIMEM*): Pass pc value to sim_core routine.
3734 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
3736 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
3737 Compare with ZERO not NULL.
3739 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3741 * hw-properties.c, hw-instances.c, hw-tree.c: Include
3744 1998-12-09 Doug Evans <devans@casey.cygnus.com>
3746 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
3747 * sim-trace.c: Include stdlib.h if present.
3748 * dv-sockser.c: Include unistd.h if present.
3749 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
3750 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
3752 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3754 * gennltvals.sh: Add i960.
3755 * nltvals.def: Rebuild.
3757 1998-12-04 Doug Evans <devans@casey.cygnus.com>
3759 * cgen-defs.h: New file, old cgen-sim.h.
3760 * cgen-sim.h: Simple header that includes others.
3761 * sim-arange.c: New file.
3762 * sim-arange.h: New file.
3763 * sim-basics.h: Include it.
3764 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
3765 (sim-arange.o): Add rule for.
3766 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
3767 (sim_io_eprintf_cpu): Add prototype.
3768 * sim-inline.h (HAVE_INLINE): Define if GNUC.
3769 (INLINE2): New macro.
3770 (EXTERN_INLINE): New macro.
3771 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
3772 before calling module init fns.
3773 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
3774 (profile_init): New function.
3775 (profile_options): New option --profile-range.
3776 (profile_option_handler): Handle --profile-range.
3777 (profile_print_insn): Qualify address range specific section titles.
3778 (profile_print_addr_ranges): New function.
3779 (profile_info): Print address ranges if specified.
3780 (profile_install): Set profile_init init fn.
3781 * sim-profile.h (PROFILE_DATA): New member `range'.
3782 * sim-trace.c (trace_init): New function.
3783 (trace_options): New option --trace-range.
3784 (trace_option_handler): Handle --trace-range.
3785 (trace_install): Set trace_init init fn.
3786 * sim-trace.h (TRACE_DATA): New member `range'.
3787 * sim-utils.c (sim_cpu_msg_prefix): New function.
3788 (sim_io_eprintf_cpu): New function.
3789 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
3790 (PC_IN_PROFILE_RANGE_P): New macro.
3791 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
3792 (trace_insn_fini): New arg abuf. All callers updated.
3793 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
3794 printing cycle counts.
3795 * cgen-trace.h (trace_insn_fini): Update prototype.
3796 (TRACE_RESULT_P): New macro.
3797 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
3798 (TRACE_INSN): Check ARGBUF_TRACE_P.
3799 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
3800 * cgen-types.h (SIM_INLINE): Delete.
3801 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
3802 * cgen-utils.c: Don't include cgen-engine.h
3803 * genmloop.sh (@cpu@_fill_argbuf): New function.
3804 (@cpu@_fill_argbuf_tp): New function.
3805 (@cpu@_emit_before,@cpu@_emit_after): New functions.
3806 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
3807 (SET_CTI_VPC,SET_INSN_COUNT): Update.
3808 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
3809 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
3810 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
3811 doing profiling. Update call to TRACE_INSN_FINI.
3813 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
3815 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
3817 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
3820 1998-12-01 Doug Evans <devans@casey.cygnus.com>
3822 * sim-inline.c (SIM_INLINE_P): Fix typo.
3824 1998-11-30 Doug Evans <devans@casey.cygnus.com>
3826 * cgen-utils.c (cgen_virtual_opcode_table): Update.
3828 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
3830 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
3831 * nltvals.def: Re-generate.
3833 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3835 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
3836 sim_core_map_attach, sim_core_map_detach, next_event_queue,
3837 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
3839 * sim-events.c (sim_events_uninstall, sim_events_suspend,
3840 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
3842 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
3844 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
3845 (${cpu}_pbb_cti_chain): Ditto.
3847 1998-11-18 Doug Evans <devans@casey.cygnus.com>
3849 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
3850 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
3851 (EXTRACT_INT,EXTRACT_UINT): New macros.
3852 (SEM_SEM_ARG): New macro.
3853 (SEM_NEXT_VPC): New arg `pc'.
3854 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
3855 (sim_disassemble_insn): Update prototype.
3856 * cgen-trace.c (current_insn,insn_fields): New static locals.
3857 (trace_insn): Set them.
3858 * cgen-utils.c: #include cgen-engine.h.
3859 (sim_disassemble_insn): New arg insn_fields.
3860 Handle variable length insns.
3861 * genmloop.sh: Only emit pbb decls if -pbb.
3862 (${cpu}_scache_lookup): New arg `vpc'.
3863 (scache support): Fetch pc before entering loop.
3865 * gennltvals.sh: Add fr30 support.
3866 * nltvals.def: Rebuild.
3868 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3870 * sim-types.h: Re-do type system so that GCC's attribute and mode
3871 are used to specify types. Handle case of ALPHA.
3873 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
3875 * aclocal.m4: Add tests for dlopen family.
3876 * config.in: Regenerated.
3878 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
3880 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
3882 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
3884 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
3885 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
3886 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
3887 * cgen-sim.h: ... to here.
3889 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3891 * aclocal.m4 (enable-build-warnings): Replace
3892 enable-sim-warnings. Extend =LIST syntax so that prepend and
3893 append of options is possible. Drop -Werror, add
3894 -Wstrict-prototypes for GDB compatibility.
3895 * Make-common.in (SIM_WARNINGS): Update.
3897 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
3899 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
3900 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
3901 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
3902 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
3903 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
3905 * cgen-cpu.h: New file.
3906 * cgen-engine.h: New file.
3907 * cgen-scache.h: New file.
3908 * cgen-sim.h: Delete portions moved to new files.
3909 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
3910 rather than sending result to stdout.
3912 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
3914 * Make-common.in (sim-reg.o): New rule.
3915 (cgen-run.o): New rule.
3916 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
3917 * cgen-run.c (prime_cpu): New function.
3918 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
3919 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
3921 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
3922 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
3923 (CGEN_INSN_VIRTUAL_P): New macro.
3924 (SEM_PC): New typedef.
3925 (SEMANTIC_FN): Change type of result to SEM_PC.
3926 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
3927 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
3928 (SCACHE_MAP): New typedef.
3929 (CPU_SCACHE): Add pbb support.
3930 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
3931 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
3932 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
3934 (INSN_NAME): Delete.
3935 (cgen_insn_name): Declare.
3936 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
3937 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
3938 (first_insn_p): Make static.
3939 (trace_insn): Handle virtual insns specially.
3940 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
3941 * cgen-types.h (UBI): Delete.
3942 (MODE_TYPE): New enum.
3943 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
3944 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
3945 (cgen_virtual_opcode_table): New global.
3946 (cgen_insn_name): New function.
3947 (sim_disassemble_insn): Ignore virtual insns.
3948 * genmloop.sh: Delete top level loop generation. Add pbb support.
3949 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
3950 (sim_cpu_base): New members max_insns,insn_name,model_data.
3951 (CPU_PC_GET,CPU_PC_SET): New macros.
3952 (sim_pc_get,sim_pc_set): Declare.
3953 * sim-model.c (model_set): Call model init fn.
3954 * sim-model.h (MODEL_FN): New typedef.
3955 (INSN_TIMING): New member model_fn.
3956 (MODEL): New members num,init.
3957 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
3958 All callers updated.
3959 (profile_insn_init): New fn.
3960 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
3961 Exit early if insn profiling not supported.
3962 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
3963 (profile_install): Record profile_insn_init as init fn.
3964 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
3965 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
3966 (PROFILE_DATA): Delete member exec_time.
3967 Change insn_count to pointer to array, rather than the array.
3968 (sim_profile_print_bar): Declare.
3970 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
3972 * cgen-run.c: New file.
3973 * sim-reg.c: New file.
3975 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
3977 * aclocal.m4: Add checks for -lsocket and -lnsl.
3979 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
3980 allow local port reuse on listening socket.
3982 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
3984 * sim-config.h: Remove reference to linux kernel header.
3986 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
3988 * dv-sockser.c (sockser_addr): Make variable non-static.
3990 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
3992 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
3994 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
3996 * sim-events.c (sim_events_elapsed_time): Fix calculation.
3998 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
4000 * Make-common.in (install-common): Add $(EXEEXT) when installing
4003 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
4005 * cgen-sim.h (cgen_state): New member opcode_table.
4006 * cgen-utils.c (sim_disassemble_insn): Use it.
4008 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
4010 * cgen-mem.h (DECLARE_SETT): Fix return type.
4011 * cgen-sim.h (sim_engine_illegal_insn): Declare.
4012 * cgen-scache.c: Include stdlib.h.
4013 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
4014 * sim-model.c (model_option_handler): Remove unused variable `n'.
4016 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
4018 * cgen-utils.c: Include bfd.h.
4019 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
4021 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
4023 * sim-bits.h (EXTEND24): Fix typo.
4025 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4027 * sim-events.c (ETRACE_P): New macro.
4028 (struct _sim_event): Add member trace.
4029 (sim_events_free): Reclaim trace message.
4031 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
4032 sim_events_schedule_tracef): New functions, include printf trace
4033 information in argument list. If tracing, store asprintf'd trace
4034 message in sim_event.
4036 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
4037 hw_event_queue_schedule_vtracef): New functions, mimic
4040 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
4042 * sim-bits.h (EXTEND24): Define.
4044 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
4046 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
4047 (CPU_SCACHE_HASH_MASK): New macro.
4048 (SCACHE_HASH_PC): Rewrite.
4049 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
4050 computation out of main loop.
4052 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
4054 * cgen-sim.h (RECORD_IADDR): Delete.
4055 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
4056 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
4058 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
4060 * gennltvals.def (mn10200): Add entry.
4061 * nltvals.def: Regenerate with MN10200 additions.
4063 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
4065 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
4066 documentation on how it works.
4068 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
4069 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
4070 sim_core_set_xor, sim_core_xor_read_buffer,
4071 sim_core_xor_write_buffer): Update.
4073 * sim-events.h, sim-events.c (sim_events_install,
4074 sim_events_watch_clock, sim_events_schedule_after_signal,
4075 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
4076 sim_events_deschedule): Update.
4078 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
4079 sim_fpu_max32, sim_fpu_max64): Update.
4081 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
4083 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
4084 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
4085 * sim-profile.c (profile_print_model): Update.
4087 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
4089 * gennltvals.def (m32r): Use common syscall.h now.
4090 (mn10300): Add entry.
4091 * nltvals.def: Regenerate.
4093 * sim-engine.c (sim_engine_get_run_state): New function.
4094 * sim-engine.h (sim_engine_get_run_state): Declare it.
4096 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
4098 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
4099 * sim-core.c (sim_core_signal): Make extern, always define.
4101 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
4103 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
4104 * cgen-ops.h (ANDIF): New macro.
4105 (ANDIF[BQHSD]I): Delete.
4107 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4109 * hw-events.c (create_hw_event, delete_hw_event): Delete.
4110 (hw_event_queue_schedule, hw_event_queue_deschedule,
4111 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
4114 * hw-alloc.h (HW_NZALLOC): Define.
4116 * Make-common.in (test-hw-events): Add target for testing the
4119 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
4121 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
4123 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
4125 * hw-main.h: Include hw-handles.h, hw-instances.h.
4126 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
4127 * hw-base.c (hw_create, hw_delete): Call same.
4129 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4131 * dv-core.c: Include hw-main.h and sim-main.h.
4132 * dv-pal.c: Include hw-main.h and sim-io.h.
4133 * dv-glue.c: Include hw-main.h.
4135 * hw-main.h: New file. Move list of includes to here.
4136 * hw-base.h: From here.
4137 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
4138 (hw-*.o, dv-*.o): Update.
4139 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
4140 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
4143 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
4144 do_hw_poll_read): Move declarations from here.
4145 * hw-main.h: To here.
4147 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
4149 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
4151 * Make-common.in (hw-config.h): Update
4152 * hw-base.c, dv-pal.c, dv-glue.c: Update
4154 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
4155 `*_callback' to `*_method.
4157 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
4159 * hw-base.h (set_*): Move set method macros from here.
4160 * hw-device.h: To here.
4162 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4164 * hw-base.h (create_hw_property_data, delete_hw_property_data):
4167 * hw-base.c (hw_create, hw_delete): Call
4168 * hw-properties.c (create_hw_property_data,
4169 delete_hw_property_data): Define.
4171 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4173 * hw-device.c, hw-properties.c: Include hw-base.h
4175 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
4176 * hw-device.c: From here.
4177 * hw-base.h: Include "hw-events.h".
4179 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
4180 * hw-base.c (hw_create, hw_delete): Call.
4181 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
4183 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
4184 (hw-alloc.o): New target.
4186 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4188 * hw-events.h, hw-events.c: New files. Move event code to here.
4189 * sim-hw.c: From here.
4190 * hw-base.h: Include "hw-events.h".
4191 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
4192 (hw-events.o): New target.
4194 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
4195 * hw-events.h (struct hw_event): Replace typedef hw_event.
4197 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
4198 * hw-base.c (hw_create, hw_delete): Call.
4199 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
4203 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4205 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
4206 * hw-ports.c: To here.
4208 * hw-base.h, hw-ports.c (create_hw_port_data,
4209 delete_hw_port_data): New functions.
4210 * hw-base.c (hw_delete, hw_create): Call same.
4212 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
4214 * hw-ports.h: To here.
4216 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
4218 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
4219 PROCESSOR and CIA arguments.
4221 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4223 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
4224 Move common object files from here.
4225 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
4227 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4229 * sim-hw.c: Include ctype.h.
4230 (do_hw_poll_read): Do not assume EAGAIN.
4232 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
4234 * cgen-trace.c (first_insn_p): New static local.
4235 (trace_insn_init): Set it.
4236 (trace_insn_fini): Use TRACE_PREFIX.
4237 (trace_insn): Rewrite to use trace_prefix.
4238 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
4239 Adjust width accordingly.
4241 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
4242 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
4243 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
4244 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
4245 (PROFILE_COUNT_CORE): Simplify.
4246 * sim-profile.c (profile_option_handler): Compute profile_any_p.
4248 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
4250 * cgen-ops.h (ADDCFSI): Fix typo.
4252 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
4254 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
4255 * genmloop.sh: Use them rather than static locals.
4257 * sim-engine.c (sim_engine_set_run_state): New function.
4258 * sim-engine.h (sim_engine_set_run_state): Declare.
4259 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
4260 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
4261 (engine_resume): Reorganize. Allow synchronous exit from main loop.
4263 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
4265 * cgen-trace.c (trace_insn_init): New arg first_p.
4266 All callers updated.
4267 (trace_insn_fini): New arg last_p. All callers updated.
4268 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
4269 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
4270 * genmloop.sh (engine_resume): Update.
4272 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4274 * Make-common.in (install-common): Run ranlib on installed copy of
4277 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4279 * Make-common.in (install-common): Rename and install libsim.a.
4281 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4283 * sim-io.c (unistd.h): Include.
4285 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
4287 * Make-common (sim_main_headers): Sort.
4288 (cgen-*.o): Add cgen-sim.h dependency.
4290 * cgen-scache.c (scache_init): Only allocate space if scache element
4292 (scache_flush,scache_print_profile): Check if scache in use first.
4294 * cgen-sim.h (IDESC): Provide forward declaration.
4296 (CGEN_CPU): Always define scache member. New members idesc,opcode.
4297 (cgen_cpu_max_extra_bytes): Declare.
4298 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
4300 * sim-cpu.h: New file. sim_cpu_base moved here.
4301 Move sim_cpu_lookup decl here.
4302 * sim-base.h: #include "sim-cpu.h".
4303 * sim-cpu.c: New file.
4304 * Make-common (sim_main_headers): Add sim-cpu.h.
4305 (sim-cpu.o): Add rule for.
4307 * sim-model.c (set_model): Delete.
4308 (sim_model_set,model_set): New functions.
4309 (sim_model_install): Renamed from model_install.
4310 Don't set default model here.
4311 (model_option_handler): Rewrite --model processing.
4312 (sim_model_lookup,sim_mach_lookup): New functions.
4313 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
4314 (insn_timing): Delete.
4315 (INSN_TIMING): New member `num'.
4316 (IMP_PROPERTIES): Always define scache_elm_size member.
4317 (MACH): New member init_cpu.
4318 (sim_machs): Renamed from machs.
4319 (sim_model_install): Renamed from model_install.
4320 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
4321 * sim-module.c (modules): Update.
4323 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
4325 * sim-io.c: #include <errno.h>.
4327 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4329 * dv-pal.c (struct hw_pal_device): Add reader.
4330 (hw_pal_finish): Initialize reader.
4331 (scan_hw_pal): Use reader.
4333 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
4334 (HW_IO_EOF, HW_IO_NOT_READY): Define.
4337 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
4338 ../ppc/main.c sim_io_read_stdin.
4340 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4342 * hw-tree.h (hw_tree_print): Paramaterize with print and file
4344 * hw-tree.c: Update.
4346 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
4347 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
4349 * hw-ports.h (hw_port_event): Ditto.
4350 * hw-ports.c (hw_port_event): Update.
4351 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
4353 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
4355 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
4356 (do_counter_event): Update.
4357 * dv-glue.c (hw_glue_io_read_buffer): Update.
4358 (hw_glue_port_event): Update.
4360 * hw-device.h (SIM_DESC): Replace with struct sim_state.
4361 * hw-base.h (hw_create): Ditto.
4362 * hw-base.c (hw_create): Ditto.
4364 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
4365 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
4368 * hw-device.h (hw_system_cpu): Declare.
4369 * sim-hw.c (hw_system_cpu): New function.
4371 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
4372 sim_hw_abort not hw_abort.
4373 (sim-hw.h): Include.
4374 (sim_core_read_buffer, sim_core_write_buffer): Call
4375 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
4377 (sim_core_set_xor): Do not pass CPU when aborting.
4379 * sim-n-core.h (sim_core_read_aligned_N,
4380 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
4381 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
4382 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
4385 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
4387 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
4388 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
4390 (sim_hw_print): New function.
4392 * sim-engine.h (sim_engine_vabort): Declare.
4393 * sim-engine.c (sim_engine_vabort): New function.
4395 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4397 * sim-trace.c (print_data): For floating-point numbers trace raw
4399 (trace_result_fp2): New function.
4400 * sim-trace.h (trace_result_fp2): New declaration.
4401 (TRACE_FP_RESULT2): New macro.
4403 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
4405 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
4406 AM_CYGWIN32 and AM_EXEEXT.
4407 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
4408 to run and install-common rules.
4409 * common/configure: regenerate
4411 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
4413 * sim-types.h (cell_word): New type.
4414 (natural_cell): Delete type.
4416 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
4418 * configure: Regenerated to track ../common/aclocal.m4 changes.
4421 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
4423 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
4425 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
4427 * configure: Regenerated to track ../common/aclocal.m4 changes.
4430 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
4432 * acconfig.h: New file.
4433 * Make-common.in (top_builddir): New macro.
4434 (INTL_LIB): Removed.
4435 (INTLLIBS): New macro.
4436 (INTLDEPS): Likewise.
4437 (LIBDEPS): Use INTLDEPS.
4438 (EXTRA_LIBS): Use INTLLIBS.
4439 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
4440 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
4441 AM_LC_MESSAGES): New macros from GNU gettext.
4443 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
4445 * sim-config.h: Discard leading _ from macros.
4446 * sim-types.h: Ditto.
4448 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
4450 * Make-common.in (CSEARCH): Add -I to intl directories.
4451 (INTL_LIB): Point to libintl.a.
4452 (LIBDEPS): Add $(INTL_LIB).
4453 (EXTRA_LIBS): Ditto.
4455 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
4457 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
4459 * cgen-ops.h (ADDCFSI): Fix.
4462 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4464 * sim-types.h (signed_address, unsigned_address): Define.
4466 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4468 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
4471 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
4473 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
4474 New functions, pack / unpack sim_fpu struct using raw values.
4475 (sim_fpu_is): Differentiate between negative and positive
4478 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4480 * sim-bits.h (EXTEND4): Define.
4481 (EXTEND4, EXTEND15, EXTEND11): Ditto.
4483 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
4485 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
4486 declared so we need this cast to prevent long long addresses
4487 from being misconfigures. Results in access to unmapped memory.
4489 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
4491 * Make-common.in (RUNTESTFLAGS): Define.
4492 (check): Pass RUNTESTFLAGS to recursive make.
4494 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
4496 * sim-info.c (sim_info): Be verbose when either VERBOSE or
4499 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4501 * aclocal.m4 (sim-inline): By default, disable sim-inline when
4504 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
4506 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
4507 (sim-inline): Update to match sim-inline.[hc]
4508 * configure: Regenerated to track ../common/aclocal.m4 changes.
4510 * Make-common.in (sim_main_headers): Add sim-inline.h
4512 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
4514 * sim-endian.h (sim-endian.c): Ditto.
4516 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
4517 (sim_events_set_trace): Delete unused prototype.
4519 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
4520 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
4522 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
4523 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
4524 Comment out, not yet implemented in sim-fpu.c.
4525 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
4526 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
4528 * sim-inline.h: Rewrite description.
4529 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
4530 (SIM_MAIN_INLINE): Add inline option.
4532 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
4533 include generated files. Handled by generator directly.
4535 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4537 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
4540 * sim-trace.h (TRACE_ANY_P): Define.
4541 (struct _trace_data): Add trace_any_p.
4543 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4545 * run.c (main): Handle all alternatives of enum sim_stop.
4546 (main): Delete unused `asection *s'.
4548 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4550 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
4552 * configure: Regenerated to track ../common/aclocal.m4 changes.
4554 * sim-hw.c: New file.
4555 * sim-hw.h (sim_hw_parse): Declare function.
4556 (hw-tree.h): Do not include.
4558 * sim-base.h (STATE_HW): Define.
4559 (struct sim_state_base): Add member struct *hw.
4561 * sim-module.c (sim-hw.h): Include.
4562 (modules): Add sim_hw_install.
4564 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
4566 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4568 * sim-base.h (CPU_INDEX): Define.
4570 * sim-utils.c (sim_state_alloc): Initialize.
4571 * sim-module.c (sim_post_argv_init): Ditto.
4573 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4575 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
4576 properly formatted lists.
4578 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4580 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
4581 0x2f needs to be 0x3f.
4583 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4585 * hw-tree.c (hw_tree_find_property): Return NULL when device is
4587 (hw_tree_find_*_property): Clean up error message when property is
4590 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
4591 present before looking for it.
4593 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
4595 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
4596 (AC_CHECK_FUNCS): Add check for __setfpucw.
4597 * configure: Regenerated.
4599 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
4601 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4602 hw_pal_timer, hw_pal_timer_value): Define.
4603 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
4604 (do_counter_event, do_counter_read, do_counter_value,
4605 do_counter_write): new functions.
4607 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4609 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
4612 * hw-base.c (hw_create): Stop searching for a device when one is
4615 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4617 * configure: Regenerated to track ../common/aclocal.m4 changes.
4619 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4621 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4622 appends extra devices.
4623 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4626 * Make-common.in (hw-config.h): New target, create hw-config.h
4628 (SIM_HW): Definition from @sim_hw@.
4629 (hw-base.o): Depend on hw-config.h
4631 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4633 * Make-common.in: Get SHELL from configure.
4634 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4635 move-if-change. Fixes NT native build problem.
4636 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4637 move-if-change. Fixes NT native build problem.
4638 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4641 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4643 * hw-device.h, hw-device.c (hw_strdup): New function.
4645 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4646 strings name, family and args.
4647 (full_name_of_hw): Use hw_strdup when returning the full path.
4649 * hw-properties.c: Clean up property not found / wrong type error
4652 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4653 before attaching any ports.
4655 * hw-base.c (hw-config.): Include. Replace hardwired table.
4657 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4659 * Make-common.in: Add rule for dv-glue.o.
4661 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4663 * hw-base.c (hw_finish): Move setting of trace level to here.
4664 (hw_create): From here.
4666 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4667 ../ppc/device_table.c.
4669 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4671 * hw-tree.c (print_properties): Supress path when printing
4672 properties of root node.
4674 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4676 * hw-device.h (HW_TRACE): Define.
4677 (hw_trace): Declare.
4678 * hw-device.c (hw_trace): Implement function.
4680 * hw-base.c (hw_create): Set hw trace level from "trace?"
4683 * dv-core.c (dv_core_attach_address_callback): Add trace.
4685 * dv-pal.c: Replace DTRACE with HW_TRACE.
4687 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4689 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
4690 (hw_alloc_data): Delcare.
4691 (struct hw): Add member alloc_of_hw.
4693 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
4694 functions. Assocate memory with a device.
4695 (stdlib.h): Include.
4697 * hw-base.h (set_hw_delete): Define.
4698 (hw_delete_callback): Declare.
4699 (hw_delete): Declare.
4701 * hw-base.c (hw_delete): Implement function.
4702 (struct hw_base_data): Add member to_delete.
4703 (ignore_hw_delete): New function, does nothing.
4704 (hw_create): Set the hw_delete method.
4705 (hw_create): Allocate the base type using HW_ZALLOC before setting
4708 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
4710 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4712 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4713 (attach_hw_port_edge): Add struct hw argument
4715 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
4718 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4720 * hw-device.h (hw_attach_address_callback,
4721 hw_detach_address_callback): Attach to a single space not a space
4722 mask. Clarify interpretation of SPACE:ADDR parameters.
4724 * hw-base.c (passthrough_hw_attach_address,
4725 passthrough_hw_detach_address): Update.
4726 * dv-core.c (dv_core_attach_address_callback): Ditto.
4727 * dv-pal.c (hw_pal_attach_address): Ditto.
4729 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4731 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
4733 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4735 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
4736 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
4737 hw-properties_h, hw-tree_h): Define, point at corresponding
4739 (hw_base_headers): Define list of headers included by hw-base.h
4740 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
4741 hw-properties.o, hw-tree.o): Specify dependencies.
4742 (dv-core.o, dv-pal.o): Ditto.
4744 * sim-hw.h: New file.
4746 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
4747 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
4749 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
4751 * hw-base.h, hw-base.c: new files. Copied from
4752 ../ppc/device_table.[hc].
4754 * dv-core.c, dv-pal.c: New files. Copied from
4755 ../ppc/hw_{core,pal}.c
4757 * sim-basics.h (struct hw): Declare.
4758 (enum port_direction, enum object_disposition): Declare.
4760 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
4762 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
4763 sim_dv_src in Makefile. Take list of devices as parameter to m4
4766 * configure: Regenerated to track ../common/aclocal.m4 changes.
4768 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4770 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
4771 trace_prefix can abort cleanly.
4773 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
4775 * dv-sockser.c, dv-sockser.h: New files.
4776 * Make-common.in (dv-sockser.o): Add rule for.
4777 * aclocal.m4: Check for fcntl.h.
4778 * config.h: Add HAVE_FCNTL_H.
4780 * sim-break.c (remove_breakpoint): Fix thinko.
4782 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
4783 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
4785 1998-03-13 Fred Fish <fnf@cygnus.com>
4787 * sim-base.h (struct sim_state_base): Add prog_syms and
4788 define macro STATE_PROG_SYMS.
4789 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
4790 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
4791 and bfd_canonicalize_symtab, to get symbol table on first use
4792 and preserve it via STATE_PROG_SYMS for future calls to
4793 bfd_find_nearest_line.
4795 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4797 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
4799 * sim-core.c (sim_core_attach): Handle a generic number of maps -
4800 up to nr_maps, not just access_* maps.
4802 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
4805 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
4806 over nr_maps not sim_core_nr_maps.
4808 * sim-events.h, sim-events.c (sim_events_watch_core): Change
4809 core_map argument to unsigned.
4810 (struct _sim_core): Ditto for struct member core_map.
4812 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
4814 * sim-basics.h (access_io, access_*_io): Define.
4815 (map_read, map_write, map_exec, map_io): Define.
4817 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
4818 attach with more generic mapmask.
4819 (sim_core_{read,write}_*): Change map argument to unsigned.
4821 * sim-core.c (sim_core_uninstall, sim_core_attach,
4822 sim_core_detach): Iterate over nr_maps instead of
4825 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
4826 instead of the write_map.
4827 (remove_breakpoint): Ditto.
4829 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
4830 with read_map, write_map, exec_map resp.
4832 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
4835 * cgen-utils.c (sim_disassemble_insn): Ditto.
4837 * sim-hrw.c (sim_write, sim_write): Ditto.
4839 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
4840 transfer_to_str): New functions.
4842 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
4844 * sim-base.h (sim_state_base): New member environment.
4845 (STATE_ENVIRONMENT): New macro.
4846 * sim-config.c (current_environment): Delete.
4847 (sim_config_default): New function.
4848 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
4849 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
4850 (sim_config_default): Add prototype.
4851 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
4852 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
4853 Set STATE_ENVIRONMENT, not current_environment.
4855 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
4857 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
4859 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
4861 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
4863 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
4865 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
4867 * Make-common.in (TAGS): Make smarter.
4868 * Makefile.in (TAGS): Ditto.
4870 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
4872 * sim-module.c (*): Fix typos in assertion tests.
4874 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
4876 * sim-module.c (sim_pre_argv_init): String passed to asprintf
4879 * sim-options.c (sim_parse_args): Ditto.
4880 (sim_args_command): Return OK, instead of nothing, for an empty
4883 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
4885 * sim-profile.c (profile_info): Rename from profile_print. Drop
4886 misc and misc_cpu callback arguments. Use
4887 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
4888 (profile_install): Install profile_info function.
4890 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
4891 STATE_PROFILE_INFO_CALLBACK): Define.
4892 (struct PROFILE_DATA): Add field info_cpu_callback.
4893 (profile_print): Delete function.
4895 * sim-base.h (STATE_MODULES): Define. Replace individual
4896 STATE_*_LIST with single struct module_list.
4898 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
4899 (struct module_list): Declare.
4901 * sim-module.h, sim-module.c (sim_module_add_info_fn,
4902 sim_module_info): New functions.
4903 (sim_module_install): Clean up module data structures.
4905 * sim-info.c (sim_info): New file. New function. Call
4908 * Make-common.in (sim-info.o): Define rule.
4909 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
4912 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
4914 * sim-base.h (sim_cpu_base): New members name, options.
4915 (sim_cpu_lookup): Add prototype.
4916 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
4917 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
4918 (sim_add_option_table): Update prototype.
4919 * sim-options.c (sim_add_option_table): New argument `cpu'.
4920 (standard_option_handler,standard_install): Update.
4921 (sim_parse_args): Handle cpu specific options.
4922 (print_help): New static function.
4923 (sim_print_help): Call it. Print cpu specific options.
4924 (find_match): New static function.
4925 (sim_args_command): Call it. Handle cpu specific options.
4926 * sim-utils.c (sim_cpu_lookup): New function.
4927 * sim-memopt.c (memory_option_handler): Update.
4928 (sim_memopt_install): Update.
4929 * sim-model.c (model_option_handler): Update.
4930 (model_install): Update.
4931 * sim-profile.c (profile_option_handler): Update.
4932 (profile_install): Update.
4933 * sim-trace.c (trace_option_handler): Update.
4934 (trace_install): Update.
4935 * sim-watch.c (watchpoint_option_handler): Update.
4936 (sim_watchpoint_install): Update.
4937 * cgen-scache.c (scache_option_handler): Update.
4938 (scache_install): Update.
4940 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
4942 * Make-common.in (check): Run `make check' in testsuite dir.
4944 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4946 * sim-trace.c (trace_result0): New function.
4948 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
4949 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
4950 tracing sim_fpu variables.
4951 (TRACE_ALU_RESULT0): Define.
4952 (TRACE_FP_RESULT_WORD): Define.
4953 (TRACE_FP_INPUT_WORD1): Define.
4955 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
4956 sim_fpu_two): New constants.
4957 (sim_fpu_op1, sim_fpu_op2): New types.
4958 (struct _sim_fpu): Delete member result. Re-order other members.
4959 (sim_fpu_sign, sim_fpu_exp): New functions.
4960 (sim_fpu_max, sim_fpu_min): new functions.
4961 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
4962 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
4964 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
4966 * sim-profile.c (profile_print): Delete duplicate test of
4968 (profile_print_pc): Exit early if data collection not set up.
4969 (profile_print_core): Simplify by calling sim_core_map_to_str.
4970 * sim-core.h (sim_core_map_to_str): Declare.
4971 * sim-core.c (sim_core_map_to_str): Make non-static.
4973 * genmloop.sh (engine_resume): Update insn_count before exiting.
4974 (engine_resume_full): Keep accurate core profile data.
4976 * cgen-utils.c (sim_disassemble_insn): Don't use
4977 sim_core_read_aligned_N, it messes up profiling results.
4979 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
4981 * nltvals.def: Regenerate with MN10300 additions.
4983 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
4985 * sim-trace.h (TRACE_ALU_RESULT2): Define.
4987 * sim-trace.h, sim-trace.c (trace_result_word2,
4988 trace_input_word4, trace_result_word4): New function.
4990 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
4992 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
4994 * sim-xcat.h: Delete.
4995 * cgen-mem.h: Delete inclusion of sim-xcat.h.
4996 * cgen-sim.h: Ditto.
4997 * sim-alu.h: Replace sim-xcat.h with symcat.h.
4998 * sim-n-bits.h: Ditto.
4999 * sim-n-core.h: Ditto.
5000 * sim-n-endian.h: Ditto.
5002 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
5004 * syscall.c (cb_syscall): Handle short reads, and EOF.
5006 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5008 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
5009 sim_fpu to safely print fp_word values.
5010 (print_data): Add trace_fmt_bool and trace_fmt_addr.
5011 (trace_result_bool1, trace_result_addr1): New functions.
5012 (trace_input_bool1, trace_input_addr1): New functions.
5014 * sim-trace.h (TRACE_FPU_*): Define.
5016 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
5018 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
5019 (sim_fpu_fpto, sim_fpu_tofp): Define.
5021 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5023 * sim-fpu.c (sim_fpu_cmp): New function.
5025 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
5027 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
5028 instead of abuf->length.
5029 * sim-trace.c (trace_options): Have -t only trace a few useful things.
5030 (set_trace_option_mask): Renamed from set_trace_options.
5031 (set_trace_option): New function.
5032 (trace_option_handler): Update calls to set_trace_option{,_mask}.
5033 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
5035 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
5037 * sim-basics.h: Declare struct _sim_fpu.
5039 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
5041 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
5042 (trace_prefix, trace_input*, trace_result*): Declare.
5043 (trace_one_insn): Change declaration, assume trace_prefix called.
5044 (trace_generic): Like trace_one_insn.
5045 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
5046 (TRACE_alu, TRACE_[a-z]*): Update.
5048 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
5049 trace_insn, save_data, trace_idx_to_str, print_data): New
5051 (trace_one_insn): Rewrite.
5052 (trace_generic): New function.
5054 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
5056 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
5058 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
5059 (SEMANTIC_FN): Rewrite declaration.
5060 (DECODE): Update type of semantic_fast member.
5061 ({EX,SEM}_FN_NAME): Have only one version.
5062 * sim-base.h (sim_state_base): Delete conditionals surrounding
5065 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
5067 * sim-load.c (sim_load_file): Print LMA/VMA according to value
5070 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
5072 * sim-core.c: Add missing prototypes for WITH_DEVICES.
5073 Add missing parameters to device_io calls.
5074 * sim-core.h: Add missing parameters to device_io calls.
5076 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
5078 * cgen-sim.h (DECODE): Always use switch for `read' for now.
5079 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
5080 (SEMANTIC{,_CACHE}_FN): Fix return type.
5081 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
5082 (engine_resume): Likewise. Make `engine' volatile. Save copy
5083 of cpu pointer in volatile object. Initialize read switch if
5086 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
5088 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
5089 (SEM_INSN): New macro.
5091 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
5093 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
5095 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5097 * configure: Regenerated to track ../common/aclocal.m4 changes.
5099 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5101 * sim-types.h (fp_word): New type, define according to
5102 WITH_TARGET_FLOATING_POINT_BITSIZE.
5104 * aclocal.m4 (default_sim_floating_point_bitsize): Add
5105 configuration of size of floating point registers.
5107 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
5109 * sim-profile.c (profile_print): Only print CPU <N> if other
5110 output is going to appear.
5112 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
5114 * configure: Regenerated to track ../common/aclocal.m4 changes.
5116 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
5118 * sim-types.h (address_word): Typedef according to
5119 WITH_TARGET_ADDRESS_BITSIZE.
5120 (signed_cell, unsigned_cell, natural_cell): Ditto using
5121 WITH_TARGET_CELL_BITSIZE.
5123 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
5124 (WITH_TARGET_CELL_BITSIZE): Define.
5125 (WITH_HOST_WORD_BITSIZE): Delete.
5127 * sim-config.c (print_sim_config): Update.
5129 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
5130 configuration of address and OpenFirmware cell sizes.
5132 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
5134 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
5135 * sim-run.c (sim_engine_run): Update.
5137 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
5139 * sim-run.c (sim_engine_run): Ditto.
5141 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
5142 (sim_resume): Pass nr_cpus to sim_engine_run.
5144 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
5146 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
5148 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
5150 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
5152 * Make-common.in (stamp-tvals): New rule.
5153 (targ-vals.h,targ-map.c): Depend on it.
5154 (clean): Remove stamp-tvals.
5156 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
5158 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
5159 in code also #if 0'ed.
5161 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
5163 * configure: Regenerated to track ../common/aclocal.m4 changes.
5164 * aclocal.m4: Recognize --enable-maintainer-mode.
5166 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
5168 * cgen-scache.h: Deleted.
5169 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
5170 * cgen-scache.c: Only compile contents if WITH_SCACHE.
5171 (scache_init): Use runtime computed size of SCACHE.
5172 (scache_flush): Likewise.
5173 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
5174 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
5175 * cgen-sim.h: Scache support moved here.
5176 (PC): Redo definition.
5177 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
5178 (DECODE): Add parallel execution support.
5179 Only include semantic label members if using switch.
5180 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
5181 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
5182 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
5183 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
5185 (engine_{stop,run,resume,halt,signal}): Delete decls.
5186 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
5187 (argbuf,scache): Delete forward decls.
5188 (STATE): Delete decl.
5189 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
5190 Include cgen-mem.h, cgen-ops.h.
5191 (engine_halt,engine_signal): Delete.
5192 ({ex,exc,sem,semc}_illegal): Delete.
5193 (sim_disassemble_insn): Result of extract fn is in bits.
5194 * genmloop.sh: Rewrite.
5196 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
5199 * sim-base.h (sim_state_base): Delete member `model'.
5200 (sim_cpu_base): Add member `model'.
5201 * sim-model.h (IMP_PROPERTIES): New type.
5202 (MACH): New members imp_props, models.
5203 (models): Delete decl.
5204 * sim-model.c (set_model): Update.
5205 * sim-profile.c (profile_print_model): Update.
5207 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
5209 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
5211 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
5214 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5216 * configure: Regenerated to track ../common/aclocal.m4 changes.
5219 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
5221 * aclocal.m4 (AR): Check for sigaction.
5223 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
5225 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
5227 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
5228 * sim-config.c (sim_config): Replace WITH_DEVICES with
5229 WITH_TREE_PROPERTIES.
5231 * configure: Regenerated to track ../common/aclocal.m4 changes.
5233 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
5235 * Make-common.in (SIM_ENVIRONMENT): New variable.
5236 (CONFIG_CFLAGS): Add it.
5237 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
5238 --enable-sim-environment option.
5239 * configure: Regenerated.
5240 * sim-config.h (environment support): Rewrite.
5241 * sim-config.c (current_environment): Define as enum, unconditionally.
5242 (current_alignment): Define unconditionally.
5243 (config_environment_to_a): Update.
5244 (config_alignment_to_a): Fix type of argument. Define unconditionally.
5245 (sim_config): Handle environment and alignment determination
5246 unconditionally. Delete sanity checks of current_environment,
5248 (print_sim_config): Update.
5249 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
5250 (standard_options): Add --environment.
5251 (standard_option_handler): Likewise.
5253 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5255 * sim-alu.h: Add notes on carry vs borrow for subtraction.
5256 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
5257 (ALU{,8,16,32,64}ADDC): Define - add carrying.
5258 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
5259 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
5260 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
5261 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
5262 argument ADD_CA macro with two argument ADDC_C - add carrying with
5264 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
5265 argument SUB_CA macro with two argument SUBC_X - subtract
5267 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
5269 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
5271 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
5273 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
5274 * sim-io.h (sim_io_syscalls): Delete.
5276 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
5278 * syscall.c (cb_syscall): Add missing else, so write to stdout
5281 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
5282 the carry bit from the CPU's psw.
5284 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
5286 * gennltvals.sh: Redo syscall support.
5287 * nltvals.def: Regenerated.
5289 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
5291 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
5292 the stream immediately.
5294 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5296 * sim-io.c (sim_io_getstring): Delete unused len2.
5297 (sim_io_syscalls): Ditto for sys_errno.
5299 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
5301 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
5303 * Make-common.in (run.o): Depend on remote-sim.h.
5304 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
5305 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
5307 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
5309 * sim-io.c (sim_io_syscalls): Disable lseek.
5311 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
5313 * gennltvals.sh: Generate syscall values for d30v.
5315 * gennltvals.sh: Use libgloss/syscall.h for sparc.
5316 * nltvals.def: Regenerate.
5318 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
5319 (os_fstat): Likewise. Validate fd argument.
5320 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
5321 just compute target stat struct length.
5322 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
5323 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
5324 (get_string): Return host errno values so they can be properly
5326 (cb_syscall): Likewise.
5327 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
5328 (cb_syscall, case read): Use read_stdin for file descriptor 0.
5329 (cb_syscall, case write): Use write_stderr for file descriptor 2.
5330 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
5331 (get_path): New function.
5333 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
5335 * sim-io.c (sim_io_syscalls): New function to provide system call
5336 emulation. Provide exit, open, close, read, write, lseek, and
5338 (sim_io_getstring): New function to return a string from a
5339 simulated memory location.
5341 * sim-io.h (sim_io_syscalls): Add declaration.
5343 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
5345 * sim-core.c (sim_core_signal): Fix spelling error in message.
5347 * sim-hrw.c (sim_read): Use read map, not write map.
5349 * Make-common.in (all): Add .gdbinit.
5350 * gdbinit.in: Add dump command.
5352 * sim-model.c (model_options): Use '\0' for `shortopt'.
5354 * sim-trace.c (trace_option_handler): Set state trace file
5355 for --trace-file in addition to cpu's values.
5356 (trace_vprintf): If cpu == NULL, try state's trace file.
5357 (trace_options): Reorganize table, reword some descriptions.
5359 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5361 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
5364 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5366 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
5367 signal untranslated, document problem with this.
5369 * nrun.c (main): Check for a prog name of `*step'. If present,
5370 step the simulator instead of allowing it to run free.
5372 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
5374 * Make-common.in (sim_main_headers): Add sim-signal.h.
5376 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
5378 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
5380 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5382 * sim-signal.h: Start simulator signals at 64 so that host signal
5383 numbers can be detected and reported.
5385 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
5387 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
5389 * callback.c (cb_host_to_target_stat): Fix return values.
5391 * cgen-sim.h (enum_signal_type): Delete.
5392 (engine_signal): Update prototype.
5393 * cgen-utils.c: Don't include <signal.h>.
5394 (sim_signal_to_host): Delete, lives in sim-signal.c now.
5395 (engine_signal): Update.
5397 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
5398 (sim_state_free): Call SIM_STATE_FREE if defined.
5400 * sim-module.c (sim_module_install): Don't leave any modules
5401 installed if one fails to install.
5403 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
5405 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
5406 more, since alloca is not used in this file.
5408 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
5409 correctly set the carry and overflow bits for those types.
5410 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
5411 with carry, so carry is correct after doing both adds.
5412 (ALU*): Space out '\' to make it easier to read.
5414 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
5416 * sim-core.c (sim_core_signal): Use sim_stopped instead of
5419 * sim-signal.c, sim-signal.h: New files.
5420 * Make-common.in (sim-signal.o): Add rule for.
5421 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
5422 * sim-abort.c: Don't include <signal.h>.
5423 * sim-basics.h: #include "sim-signal.h".
5424 * sim-break.c: Don't include <signal.h>.
5425 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
5426 * sim-core.c: Don't include <signal.h>.
5427 (SIGBUS): Delete definition.
5428 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
5429 * sim-engine.c: Don't include <signal.h>.
5430 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
5431 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
5432 * sim-resume.c: Don't include <signal.h>.
5433 (SIGTRAP): Delete definition.
5434 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
5435 * sim-stop.c: Don't include <signal.h>.
5436 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
5437 * sim-watch.c: Don't include <signal.h>.
5438 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
5440 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
5442 * sim-base.h (CIA_ADDR): Provide default definition.
5443 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
5444 * sim-break.c (sim_handle_breakpoint): Likewise.
5446 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
5448 * Make-common.in (srccom): New variable.
5450 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
5451 (LIB_OBJS): Add syscall.o.
5452 (gentmap): Pass $(NL_TARGET) to $(CC).
5453 (syscall.o): Add rule for.
5454 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
5455 (sim-bits.o): Depend on $(sim-n-bits_h).
5456 (sim-load.o): Depend on callback.h.
5458 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
5459 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
5460 * cgen-mem.h, cgen-ops.h: New files.
5462 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
5464 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
5466 * callback.c: #include string.h or strings.h.
5467 #include sys/types.h and sys/stat.h.
5468 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
5469 (os_get_errno,os_open): Update.
5470 (os_stat,os_fstat): New functions.
5471 (os_init): Initialize syscall_map, errno_map, open_map.
5472 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
5473 errno_map, open_map, signal_map, stat_map.
5474 (cb_read_target_syscall_maps): New function.
5475 (cb_target_to_host_syscall): New function.
5476 (cb_host_to_target_errno): Renamed from host_to_target_errno.
5477 (cb_target_to_host_open): Renamed from target_to_host_open.
5478 (store): New function.
5479 (cb_host_to_target_stat): New function.
5480 * syscall.c: New file.
5481 * gentmap.c (sys_tdefs): New global.
5482 (gen_targ_vals_h): Output target syscall numbers.
5483 (gen_targ_map_c): Update. Output target syscall translation map.
5484 * gentvals.sh: New first argument `target'. Preface table with
5485 #ifdef NL_TARGET_$target if non-null target passed.
5486 * gennltvals.sh: New file.
5487 * nltvals.def: Regenerated.
5489 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5491 * sim-n-core.h (sim_core_read_unaligned_N): Return static
5493 (sim_core_dummy_M): Declare.
5495 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5497 * sim-core.c (sim_core_signal): Print the address of the
5500 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
5502 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5504 * sim-base.h (sim_state_base): Add member trace_data.
5505 (STATE_TRACE_DATA): New macro.
5506 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
5507 ({WITH_,}TRACE_DEBUG_P): New macros.
5508 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
5509 (_sim_cpu): Delete forward reference.
5510 (debug_printf): Update.
5511 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
5512 (trace_options): Add --trace-debug.
5513 (set_trace_options): Handle it.
5514 (trace_option_handler): Likewise.
5515 (trace_install): Init state trace_data struct.
5516 (trace_uninstall): Close state trace file.
5517 * sim-events.c (ETRACE): Only print source file and line number if
5519 * sim-n-core.h (sim_core_trace_M): Likewise.
5521 * sim-core.c (sim_core_signal): Add missing "\n" in message.
5523 1997-11-13 Felix Lee <flee@cygnus.com>
5525 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
5527 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
5529 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
5531 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
5533 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
5535 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
5536 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
5539 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5541 * sim-events.c (sim_events_process): Re-compute the time -
5542 update_time_from_event - as each event is processed. Reverses
5545 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5547 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
5549 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5551 * sim-events.c (sim_events_process): Delete redundant call to
5552 update_time_from_event.
5553 (sim_events_slip): Always decrement time_from_event.
5554 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5555 Delete assertion that time_from_event >=0 when work in queue, no
5558 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5560 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5561 (standard_option_handler): Update.
5563 * sim-options.h: Clarify documentation.
5564 (OPTION_LONG_ONLY_P): Delete definition.
5565 (OPTION_VALID_P): Define.
5567 * sim-options.c (sim_print_help): Allow short only options.
5568 (sim_parse_args): Ditto.
5569 (sim_args_command): Skip short only options.
5570 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
5571 separate entries for short and long options in the HANDLERS and
5573 (sim_parse_args): Disable argument permutation.
5575 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5577 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
5578 Add argument M, size of data type.
5579 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
5580 Declare, ditto for 5, 6 & 7 byte transfers.
5581 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
5584 * sim-n-core.h (sim_core_trace_M): Rename from
5585 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
5586 with transfer type. Print transfer direction. Handle 1 and 2 byte
5588 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
5590 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
5591 Update all functions.
5593 * sim-core.c: Generate functions starting with 16 not 1.
5594 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
5595 all 5, 6 & 7 byte transfers.
5597 * sim-n-core.h (sim_core_read_misaligned_N,
5598 sim_core_write_misaligned_N): Implement.
5600 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5602 * sim-endian.h (U16_8): Implement
5604 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
5606 * sim-endian.h (VL8_16, VH8_16): Implement.
5608 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
5610 (memory_option_handler): Only zalloc modulo bytes when non-zero.
5611 (memory_option_handler): Skip comma in alias address list
5613 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5615 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5617 (parse_size, parse_addr): New functions
5618 (memory_option_handler, memory_options): Parse address & size
5619 using new functions. Pass level, space, modulo to do_memopt_add &
5622 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5624 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5625 `attach_type attach' argument with `unsigned level' argument.
5628 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5629 sim_core_attach): Replace argument attach with level. Update
5630 verification of arguments.
5631 (sim_core_map_detach, sim_core_detach): Replace argument attach
5634 * sim-basics.h (enum _attach_type): Delete.
5636 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5638 * sim-core.h (sim_core_write_8): Define.
5640 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5642 * sim-bits.h: Document ROTn macro.
5644 * sim-endian.h (H2T): Handle 16 byte variables.
5646 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5649 * sim-core.c: Do not generate sim_core_*_word.
5651 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5652 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5654 * sim-core.h (sim_core_read_unaligned_word,
5655 sim_core_read_aligned_word, sim_core_read_word,
5656 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5657 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5659 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5661 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5663 * sim-endian.h: Disable 16 byte support.
5665 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5667 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5669 * sim-n-core.h (sim_core_trace_N): New function.
5670 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5671 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5673 * sim-endian.h: Add 128 bit variant.
5675 * sim-core.h, sim-core.c: Add 128 bit variant.
5677 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5679 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5681 * sim-events.c (sim_events_process): Clear events->work_pending.
5682 (sim_events_tickn, sim_events_tick): Accumulate, instead of
5683 setting, nr_ticks_to_process.
5684 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
5685 when the event queue isn't next.
5687 * sim-events.h, sim-events.c (sim_events_slip): New function.
5689 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5691 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
5693 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
5696 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
5698 * nrun.c (main): Remove useless test of name != NULL.
5699 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
5701 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5703 * sim-fpu.c (EXPMAX): Type is unsigned.
5704 (MIN_INT, MAX_INT): Type is signed64.
5705 (i2fpu): Type of val is signed64.
5707 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5709 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
5710 a bucket size of zero.
5712 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
5713 OPTION_PROFILE_PC): Define.
5714 (profile_option_handler): Add support for --profile-pc and
5715 --profile-pc-granularity options.
5716 (profile_pc_init): When possible, compute nr buckets from bucket
5719 * sim-profile.c (profile_pc_init): Align the profile-pc end
5720 address with the profile-pc bucket size.
5722 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
5723 something less ambiguous.
5724 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
5726 * sim-profile.c (profile_pc_cleanup): New function. Move
5727 profile_pc_uninstall code to here.
5728 (profile_pc_uninstall): Call.
5729 (profile_pc_init): Call.
5731 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5733 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
5734 file using BSD gprof format.
5736 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
5738 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
5739 MSBIT64): Force result to unsignedN.
5741 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
5743 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
5745 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
5746 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
5747 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
5748 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
5750 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
5752 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
5755 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
5756 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
5758 (sim_core_attach): Rename buffer_freed to free_buffer, type
5759 void*. Ensure that allocated buffer is alligned according to
5762 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
5764 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
5765 (ALU64_SUB): Define.
5767 * Make-common.in (all): Build SIM_EXTRA_ALL first.
5768 (.gdbinit): Remove dependencies, generate once per build.
5770 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
5772 * sim-n-core.h (sim_core_read_aligned_N,
5773 sim_core_write_aligned_N): Make xaddr param type address_word not
5776 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
5778 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
5779 unpacked floating point struct. Pass sim_fpu object by reference.
5780 Add preliminary support for rounding modes.
5782 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5784 * configure: Regenerated to track ../common/aclocal.m4 changes.
5786 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5788 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
5789 WITH_TARGET_BITSIZE.
5791 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
5793 * sim-profile.c (profile_print_core): label needs empty statement.
5795 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5797 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
5798 and zfree instead of xmalloc and free. Prevents warnings.
5800 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
5802 * configure: Regenerated to track ../common/aclocal.m4 changes.
5804 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5806 * Make-common.in (SIM_BITSIZE): Assign from configured value.
5807 (CONFIG_CFLAGS): Add SIM_BITSIZE.
5809 * aclocal.m4 (--enable-sim-bitsize): Developer option for
5810 controling the bitsize/msb of the target.
5812 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5814 * Make-common.in: New files sim-break.c, sim-break.h.
5815 * sim-base.h: Add point to breakpoint list to sim_state_base.
5816 * sim-break.c sim-break.h: New modules that implement intrinsic
5818 * sim-module.c: Add breakpoint module.
5820 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
5822 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
5824 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
5826 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
5827 (SIGBUS) define for Windows.
5828 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
5829 * sim-resume.c: define SIGTRAP for windows.
5830 * sim-xcat.h: use token pasting if ALMOST_STDC.
5832 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5834 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
5836 (CONFIG_CFLAGS): Add same.
5838 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
5840 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
5841 (SIGNED32): use ##i32.
5843 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5845 * configure: Regenerated to track ../common/aclocal.m4 changes.
5847 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
5849 * aclocal.m4 (sim-endian): Simplify logic determining [default]
5852 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
5853 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
5854 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
5855 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
5856 (CONFIG_CFLAGS): Add same.
5858 * aclocal.m4: Perform AC_SUBST on optional options.
5860 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5862 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
5864 * sim-options.c (standard_option_handler): Typo in warning message.
5866 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
5868 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
5869 insn count. Make count conditional on there being a valid
5871 (profile_pc_init): Make default PC profile frequency an arbitrary
5874 * sim-base.h: Ditto.
5876 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
5879 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
5882 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5884 * configure: Regenerated to track ../common/aclocal.m4 changes.
5886 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5888 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
5889 configured alignment.
5891 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5893 * configure: Regenerated to track ../common/aclocal.m4 changes.
5895 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
5897 * sim-config.c (sim_config): Check for default alignment.
5899 * sim-options.c (standard_option_handler): Add alignment option.
5901 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
5902 default alignment requirements on memory accesses.
5904 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
5906 * sim-load.c (sim_load_file): Return failure if the executable
5907 had no loadable sections.
5909 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5911 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
5914 * sim-core.c (sim_core_signal): When bad access halt simulator
5915 SIGSEGV / SIGBUS instead of aborting.
5916 (signal.h): Include.
5918 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
5919 options was missing.
5921 * sim-bits.h (MOVED): Define
5923 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5925 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
5928 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
5930 * sim-bits.c: Add 8 bit versions of bit macros.
5932 * sim-bits.h: Ditto.
5934 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
5936 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
5937 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
5939 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
5940 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
5942 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
5943 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
5945 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5947 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
5948 configure.in: Output to cconfig.h instead of config.h.
5950 * configure: Regenerated to track ../common/aclocal.m4 changes.
5952 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5954 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
5957 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5959 * callback.c (os_write): divert stdout and stderr to their
5962 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5964 * sim-profile.c (profile_print_speed): Call
5965 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
5967 * sim-events.c (sim_events_elapsed_time): New function return nr
5968 host MS consumed by the simulator.
5969 (sim_watch_valid): Use.
5971 * sim-module.c (modules): Install sim_events very very early.
5973 * sim-profile.c (profile_print): Call profile_print_pc.
5975 (profile_pc_init): New function, set up processor for PC
5977 (profile_print_pc): New function, print a PC profile.
5978 (profile_pc_event): New function, sample PC.
5980 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
5981 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
5984 * sim-options.c (sim_print_help): Pacify GCC.
5986 * sim-n-core.h (sim_core_read_aligned_N,
5987 sim_core_write_aligned_N): Add un-conditional profile call.
5988 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
5989 profile call when aligned read/write isn't used.
5991 * sim-base.h: Include sim-profile, sim-model after sim-core &
5992 sim-events allow sim-core to define useful values.
5994 * sim-profile.c (OPTION_PROFILE_CORE): Define.
5995 (profile_option_handler, profile_options): Add support for
5996 --profile-core option.
5997 (print_bar): Include when core profiling.
5998 (profile_print_core): New function, print core profile.
6000 * sim-config.c (print_sim_config): Print profile status.
6002 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
6003 WITH_PROFILE_PC_P): Define.
6004 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
6005 (PROFILE_COUNT_CORE): Define.
6007 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6009 * sim-watch.c (handle_watchpoint): Pass a char** index into the
6010 interrupt_names array as the data.
6011 (sim-watch.h): Document.
6013 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6015 * sim-options.c (sim_print_help): When the doc string is to long
6018 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
6019 that only the first few the watch options are listed. Generate
6020 meanginful usage messages.
6022 * sim-options.h (struct OPTION): Clarify use of doc_name field
6024 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
6026 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
6027 (standard_option_handler): Handle --architecture-info.
6029 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6031 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
6032 illegal zero-sized array.
6033 * sim-core.c (sim_core_xor_read_buffer): same.
6035 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
6037 * nltvals.def: Regenerate.
6039 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6041 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
6043 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6045 * sim-bits.c (MASKED): Delete.
6046 (EXTRACTED): Delete.
6047 (LSEXTRACTED, MSEXTRACTED): New functions.
6049 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
6050 (MSMASKEDn, LSMASKEDn): Add last argument.
6053 * sim-bits.h (EXTEND8, EXTEND16): Define.
6054 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
6056 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
6058 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
6059 current instruction address.
6061 * sim-inline.h (*_ENGINE): Define.
6063 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
6065 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
6067 * sim-watch.c (delete_watchpoint): Delete by ident and type.
6068 (watch_option_handler): Call delete_watchpoint with ident or type.
6069 (sim_watchpoint_install): Create interrupt specific watchpoint
6070 commands on the fly.
6071 (do_watchpoint_create): New function, create a watch point using
6072 type/int-nr info encoded in the option nr.
6073 (do_watchpoint_info): New function. List active watchpoints.
6075 * sim-watch.h: Change data structure to a list.
6077 * sim-memopt.c (memory_option_handler): Require explicit "all"
6078 before deleting all memory regions.
6080 * sim-utils.c (sim_do_commandf): New function, printf version of
6083 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
6085 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
6087 (SIGNED64, UNSIGNED64): Delete.
6088 (ALU64_ADD): Don't rely on bit endianness.
6089 (ALU64_BEGIN): Define.
6091 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
6092 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
6094 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
6095 suffix - u64, LL - to 64 bit constants.
6097 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6099 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
6101 * sim-utils.h (NZALLOC): Define - zalloc * N.
6103 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
6104 implementation of read/write functions.
6106 * Make-common.in (sim-hrw.o): New target.
6108 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
6111 * sim-memopt.c (memory_option_handler): Implement memory-size
6112 command. Implement memory-alias command. Let memory-delete delete
6114 (add_memopt): New function. Add a memory region.
6115 (do_memopt_delete): New function. Delete a memory region.
6117 * sim-utils.c (sim_elapsed_time_get): Never return zero.
6119 * sim-core.c (sim_core_detach): New function.
6120 (sim_core_map_detach): New function. Perform the actual detach.
6121 (sim_core_init): Move initialization code from here.
6122 (sim_core_install): To here.
6123 (sim_core_uninstall): And here.
6125 * sim-module.c: Add memopt module.
6127 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
6128 simulator base type.
6130 * Make-common.in (sim_main_headers): Add sim-memopt.h
6131 (sim-memopt.o): New target.
6133 * sim-core.c (sim_core_install): Add core_options to the option
6136 * sim-watch.c (watch_options): Make --delete-watch a synonym for
6139 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
6142 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
6143 address_word, add mask member.
6145 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
6146 address_word, allow for 64bit targets in 32bit host. Add modulo
6148 (sim_core_map_attach): Ditto.
6149 (new_sim_core_mapping): Ditto.
6150 (sim_core_translate): Mask address when modulo memory.
6152 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
6154 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
6156 * gdbinit.in: New file.
6157 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
6158 * Make-common.in (distclean): Delete .gdbinit.
6159 (.gdbinit): Add rule for.
6160 * configure: Regenerated to track ../common/aclocal.m4 changes.
6162 * Make-common.in (cgen-run.o): Add rule for.
6164 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6166 * sim-resume.c (sim_resume): Suspend/resume the simulator.
6168 * sim-events.c (sim_watch_valid): Compute total elapsed time from
6169 both resumed and previous elapsed time.
6170 (sim_events_init): Set initial_wallclock and current_wallclock to
6172 (sim_events_install): Install sim_events_suspend and
6174 (sim_events_watch_clock): Allow for suspended simulator when
6175 computing the time of the clock event.
6177 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
6178 initial_wallclock to elapsed_wallclock, set both to zero.
6179 (sim_events_init, sim_events_uninstall): Delete prototypes.
6181 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
6183 * sim-module.c(sim_module_resume, sim_module_suspend): New
6186 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6188 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
6191 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
6193 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
6194 * Make-common.in (TAGS): Likewise.
6195 * sim-n-bits.h: Add TAGS comments for all functions.
6196 * sim-n-core.h: Likewise.
6197 * sim-n-endian.h: Likewise.
6199 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
6201 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
6204 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
6206 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
6209 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6211 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
6212 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
6214 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
6216 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
6217 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
6218 nr_transfered and nr_this_transfer unsigned.
6220 * sim-events.c (sim_events_tickn): N is signed, as limited to
6223 * sim-n-endian.h (offset_N): Change size to unsigned.
6225 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
6227 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
6229 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
6231 * sim-options.c (sim_parse_args): Use dupargv.
6233 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
6235 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
6237 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6239 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
6242 * sim-options.c (standard_options): Add --architecture=MACHINE and
6243 --target=TARGET options.
6244 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
6245 (standard_option_handler): Handle architecture and target options.
6248 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
6250 (sim_analyze_program): Set prog_bfd architecture from
6251 STATE_ARCHITECTURE if known.
6253 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6255 * configure: Regenerated to track ../common/aclocal.m4 changes.
6258 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6260 * aclocal.m4 (enable-sim-warnings): Remove comment stating
6261 that option does not apply to certain files.
6263 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6265 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
6266 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
6267 offset from MSB/LSB.
6269 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
6270 access address of sub word quantity of a hosts 16, 32, 64 bit word
6272 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
6273 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
6274 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
6275 return N*2 byte value with argument in Hi/Lo word. Renamed from
6276 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
6278 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
6279 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
6280 so that bit offset is explicit.
6282 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
6284 * sim-utils.c (sim_analyze_program): Add prog_name argument.
6285 Update STATE_PROG_BFD when needed with a dup'd copy of the
6288 * sim-config.c (sim_config): Delete ABFD argument, use
6289 STATE_PROG_BFD directly.
6291 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
6293 * run.c (main): Pass the open ABFD to sim_create_inferior.
6295 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
6299 * sim-hload.c (sim_load): New file. Implement generic sim_load for
6300 hardware only simulator targets.
6302 * Make-common.in (sim-hload.o): Add rule.
6304 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6306 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
6307 used by copyargv and freeargv.
6309 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
6310 STATE_PROG_ARGV, not just a pointer.
6312 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6314 * configure: Regenerated to track ../common/aclocal.m4 changes.
6317 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6319 * aclocal.m4 (sim-endian): Add second argument to
6320 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
6321 default endian when not hardwired.
6323 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
6324 else failes value for target byte order.
6326 * sim-config.c (sim_config): Add abfd arguments. Set
6327 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
6329 (sim_config): Return SIM_RC, don't abort.
6332 * run.c (main): Update call to sim_open - add ABFD argument.
6333 * nrun.c (main): Add NULL ABFD argument.
6335 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
6337 * callback.c (os_poll_quit): Make static.
6338 Call sim_cb_eprintf, not p->eprintf.
6339 (sim_cb_printf, sim_cb_eprintf): New functions.
6340 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
6342 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
6343 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
6344 sim-utils.h. #include sim-utils.h.
6345 * sim-utils.h: Above decls moved here.
6346 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
6348 * sim-watch.c (action_watchpoint): Fix thinkos.
6350 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
6352 * sim-types.h: Fix defs of 64 bit data types for MSVC.
6354 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
6356 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
6357 to FORCED_ALIGNMENT case.
6359 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6361 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
6363 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
6365 * Make-common.in (libsim.a): Fix typo.
6367 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6369 * nrun.c (main): Verify the structure returned before using it.
6371 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6373 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
6376 * sim-engine.c (sim_engine_install): New function. Install the
6377 engine init functions.
6378 (sim_engine_init): [Re]initialize the simulator engine.
6380 * sim-module.c: Add sim_engine to list of modules that always
6383 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6385 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
6386 to remove the old watchpoint, not delete_watchpoint.
6387 (watch_option_handler): Action the correct watchpoint, not just
6390 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
6392 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
6393 both low and high word.
6394 (sim_core_write_aligned_N): Ditto.
6396 * sim-trace.c (set_trace_options): Delete code explicitly setting
6399 * sim-options.c (sim_print_help): Call the list commands if not a
6400 standalone simulator.
6401 (sim_print_help): Advise that some options may not be applicable.
6403 * sim-trace.c (set_trace_options): Assume core present.
6405 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
6406 buffer when full not almost full.
6408 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6410 * sim-events.c (sim_events_process): Don't blat the event queue
6411 when processing watchpoints.
6413 * sim-watch.h: Make arg unsigned long - stop sign extension.
6415 * sim-events.c (sim_watch_valid): rewrite so debugable.
6417 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
6419 * sim-watch.c (schedule_watchpoint): Add is_within option so that
6420 inequality test is possible.
6421 (handle_watchpoint): Re-pass is_within arg.
6422 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
6423 0 to schedule_watchpoint's is_within arg.
6424 (sim_watchpoint_init): Re-pass is_within arg.
6426 * sim-options.c (sim_print_help): Add is_command argument. Don't
6427 include -- prefix when called from the command line interpreter.
6429 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
6431 * sim-events.c (sim_events_watch_sim): Add is_within argument,
6432 zero indicates that the test should be reversed.
6433 (sim_events_watch_core): Ditto.
6434 (WATCH_CORE): Compare range against is_within.
6437 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
6439 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
6440 sim_core_read_buffer. Check nr-bytes transfered.
6442 * sim-core.h (sim_core_common): Define a new struct that contains
6443 the common data. to sd and cpu structures.
6444 * sim-core.c (sim_core_attach): Update.
6445 (sim_core_init): Update. Remember to copy initialized data to each
6447 (sim_core_find_mapping): Ditto.
6449 * sim-core.c (sim_core_read_buffer): Add cpu argument.
6450 (sim_core_write_buffer): Ditto.
6452 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
6453 transfer use xor version of read buffer.
6454 (sim_core_write_unaligned_N): Ditto for write.
6456 * sim-core.c (sim_core_xor_read_buffer): New function implement
6457 xor-endian data read breaking transfer up into xor-endian sized
6459 (sim_core_xor_write_buffer): Ditto for write.
6460 (reverse_n): Reverse order of arbitrary number of bytes in buffer
6461 - needed for xor-endian transfers.
6463 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6465 * sim-inline.h: Review description.
6467 * sim-core.h, sim-core.c: Reduce number of functions being inlined
6468 to just those involved in data transfers and configuration.
6470 * sim-xcat.h (XSTRING): New macro, map macro definition onto
6472 * sim-n-core.h (sim_core_read_aligned_N): Use.
6473 (sim_core_read_unaligned_N): Ditto.
6474 (sim_core_read_unaligned_N): Ditto..
6475 (sim_core_write_unaligned_N): Ditto.
6477 * sim-core.h: Add xor endian bitmap to main structure. *
6479 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
6481 (sim_core_read_aligned_N): Ditto.
6483 * sim-core.c (sim_core_set_xor_endian): New function.
6484 (sim_core_attach): Don't overwrite the per-cpu xor map when
6485 cloning the global core.
6487 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
6489 * sim-engine.h: Update below so that it is using an enumerated
6492 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
6494 * sim-engine.c (sim_engine_restart):
6495 * sim-resume.c (sim_resume): Change longjmp param/setjmp
6496 return value used for simulator restart from 0 to 2.
6498 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6500 * cgen-scache.c (scache_option_handler): Add is_command arg.
6502 * sim-model.c (model_option_handler): Add is_command argument.
6504 * sim-profile.c (profile_option_handler): Add is_command arg.
6506 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
6509 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
6510 order that they are registered.
6512 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
6513 between option and command line processing.
6515 * sim-options.c: Include stdlib.h, ctype.h.
6517 * Make-common.in (sim-watch.o): Add rule.
6518 (sim_main_headers): Assume sim-assert.h included.
6519 (sim-*.o): Simplify make rule.
6521 * sim-module.c: Add sim_watch_install to module list.
6523 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6525 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
6528 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
6529 * sim-events.c (sim_events_install): Ditto.
6530 * sim-core.c (sim_core_install): Ditto.
6531 * sim-model.c (model_install): Ditto.
6532 * sim-options.c (standard_install): Ditto.
6533 * sim-profile.c (profile_install): Ditto.
6534 * sim-reason.c (sim_stop_reason): Ditto.
6535 * sim-run.c (sim_engine_run): Ditto.
6536 * sim-utils.c (sim_analyze_program): Ditto.
6538 * sim-module.c (modules): Make profile_install and trace_install
6541 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
6543 * sim-options.c (standard_option_handler): Set the byte order.
6545 * sim-events.c (sim_events_process): Allow multi tick processing.
6546 (sim_events_tickn): New function - multi cycle tick.
6548 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
6549 prototypes. Under development.
6550 (sim_events): Replace processing with nr_ticks_to_process.
6552 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6554 * nrun.c (main): Pass callbacks to sim_open instead of using
6557 * run.c (main): Ditto.
6559 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6561 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6562 stop tk interrupting malloc calls.
6563 (sim_events_zalloc): Converse.
6565 * Make-common.in (sim_main_headers): Add sim-events.h.
6567 * sim-events.c (sim_events_schedule_after_signal): Change return
6568 type to void - signal events are strictly internal.
6569 (sim_events_init): Allocate a finite buffer for signal events.
6570 (sim_events_schedule_after_signal): Enter signal events into the
6573 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
6574 (sim_engine_restart): Ditto.
6575 (sim_engine_abort): Ditto.
6576 * sim-stop.c (sim_stop): Ditto.
6577 (control_c_simulation): Ditto.
6578 * sim-resume.c (sim_resume): Ditto.
6579 (has_stepped): Ditto.
6580 * sim-abort.c (sim_engine_abort): Ditto.
6582 * sim-basics.h (transfer_type): New type.
6584 * sim-core.c (sim_core_signal): New function. Print core signal
6586 (sim_core_find_mapping): Add transfer argument.
6588 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
6589 SIM_CORE_SIGNAL if a recoverable abort.
6590 * sim-core.c (sim_core_find_mapping): Ditto.
6592 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6594 * sim-core.c (sim_core_find_mapping): Replace calls to
6595 sim_io_error to more resiliant sim_engine_abort.
6597 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
6598 (sim_core_write_unaligned_N): Ditto.
6600 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6602 * sim-module.c: Add sim_events_install to list.
6604 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
6606 (sim_events_init): Now returns SIG_RC.
6608 * sim-run.c: New file. Generic sim_engine_run.
6609 * sim-reason.c: New file. Generic sim_stop_reason.
6610 * sim-stop.c: New file. Generic sim_stop.
6611 * sim-resume.c: New file. Generic sim_resume.
6613 * Make-common.in (sim-engine.o): Add rule.
6614 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6616 * sim-engine.h, sim-engine.c: New file. Provide generic
6617 implementation of sim_engine_halt, sim_engine_error. et.al.
6619 * sim-base.h (sim_state_base): Add member halt.
6620 (sim-engine.h): Include.
6622 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6624 * sim-events.c (sim_events_poll): Update event handler.
6626 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6628 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6630 (sim_events_watch_sim): New function.
6631 (sim_events_watch_core): New function.
6632 (sim_watch_valid): New function.
6633 (sim_events_preprocess): New function.
6634 (sim_events_process): Process the watchpoints as well as the timer
6636 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6637 (sim_events_deschedule): Check all the queues when removing an
6639 (sim_events_init): Ditto for cleaning.
6641 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6643 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6645 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6647 * callback.c (os_open): Type of arg flags is int.
6649 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6651 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6652 just like normal numbers as per IEEE rules.
6654 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6656 * callback.c (os_close): Mark the descriptor as being
6657 available if the close succeeded.
6658 (os_open): Pass 0644 as the mode of the file being created.
6660 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6662 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6665 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6666 * sim-lnline.h: Update.
6668 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6669 conversion functions.
6670 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6672 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6673 compare functions. Replacing.
6674 (sim_fpu_cmp): This. Delete.
6676 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6678 * sim-core.c (sim_core_find_mapping): Call engine_error not
6679 sim_io_error when possible.
6681 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
6683 * sim-endian.h (V1_H2): Add macro's to insert a word into a
6684 high/low double word.
6686 * sim-trace.h: Remove definition of attribute - defined in
6689 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6691 * sim-options.h (struct OPTION): Add doc_opt as the documenting
6692 name of the option - or family of options.
6694 * sim-options.c (sim_args_command): Match command `a-b c' with
6695 option `--a-b-c' from option table.
6697 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6699 * sim-options.c (sim_print_help): For optional arguments, wrap
6702 * sim-trace.c (set_trace_options): New function, handle optional
6703 argument and multiple assignment.
6704 (trace_option_handler): Update.
6706 * sim-trace.c (trace_option_handler): Trace branch and not fpu
6707 when branch tracing selected.
6709 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6711 * sim-trace.c (trace_one_insn): Make a va-args function.
6713 * sim-trace.c (trace_vprintf): New function, va-arg version of
6716 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
6718 * sim-trace.c (trace_uninstall): Don't close a file twice.
6719 * sim-profile.c (profile_uninstall): Likewise.
6721 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
6723 * sim-trace.c (toplevel): Include bfd.h.
6724 (trace_options): Note that --trace-linenum also turns on
6725 --trace-insn. Add --trace-{branch,semantics}.
6726 (trace_option_handler): If --trace-linenum, also turn on
6727 --trace-insn. Add --trace-branch support. If --trace-semantics,
6728 turn on ALU, FPU, branch, and memory tracing.
6729 (trace_one_insn): New function to trace an instruction. Support
6731 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
6733 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
6734 (MAX_TRACE_VALUES): Use 32, not 12 by default.
6735 (TRACE_branch): Add new mask.
6736 (TRACE_*_P): Define all possible trace_p macros.
6737 (trace_one_insn): Declare function.
6739 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
6741 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
6742 GNU C doesn't support __attributes__.
6743 ({trace,debug}_printf): Add attribute's so -Wformat can check the
6746 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6748 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
6749 addresses are masked forcing them to be correctly aligned.
6750 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
6751 * sim-config.c (config_alignment_to_a): Update.
6753 * sim-core.h (sim_cpu_core): New data type contains cpu specific
6755 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
6757 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
6758 processor specific core maps.
6759 (sim_core_map_attach): Copy the core map data to each of the
6760 processor specific core data structures.
6761 * sim-core.c (sim_core_find_mapping): Update.
6763 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
6764 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
6765 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
6766 alternatives that handle unaligned addresses.
6767 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
6769 * cgen-utils.c (sim_disassemble_insn): Update.
6771 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6773 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
6776 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
6779 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
6781 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6783 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
6786 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
6789 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
6791 * cgen-trace.c: Prepend additional trace_printf argument.
6793 * cgen-utils.c (sim_disassemble_insn): Add additional core
6796 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6798 * nrun.c (main): Catch/report errorenous simulator states.
6800 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
6801 * sim-trace.c: #include string.h/strings.h so that memset is
6803 * sim-utils.c: Ditto.
6804 * sim-profile.c: Ditto. And stdlib.h.
6805 (print_bar): Only define when used by instruction or memory profiler.
6807 * sim-options.c (standard_option_handler): Make ul more local.
6809 * sim-load.c (sim_load_file): Make the name constant.
6810 (sim_load_file): Passify gcc.
6812 * sim-utils.h: New file, pre-declare utilites in corresponding .c
6814 * sim-utils.c, sim-load.c: Include sim-utils.h.
6816 * sim-base.h (sim_cpu): Pre define here so available to all.
6818 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
6819 Restore the sim_cpu and instruction_address arguments so that full
6820 information is available to the abort function.
6821 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
6822 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6824 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
6825 tracing support for sim-events and sim-core.
6826 (trace_option_handler): Convert #if to if where possible so always
6827 compiled/checked by C compiler.
6828 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6830 * sim-base.h: Adjust comment documenting how to define the cpu
6832 (sim_state_base): Add sim_core and sim_events to simulator base
6835 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
6836 * sim-core.c (sim_core_init, sim_core_attach,
6837 sim_core_find_mapping): Update.
6838 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
6839 update_time_from_event, insert_sim_event,
6840 sim_events_schedule_after_signal, sim_events_deschedule,
6841 sim_events_tick): Ditto.
6843 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
6844 sim-model.h): Move #includes from here.
6845 * sim-base.h: To here.
6846 (sim-core.h, sim-events.h, sim-io.h): Include also
6848 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6850 * callback.c (default_callback): Missing initialisers.
6852 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
6854 * sim-utils.c (sim_add_commas): New function.
6855 * sim-basics.h (sim_add_commas): Add prototype.
6856 * cgen-scache.c (scache_print_profile): Print commas in numbers.
6857 * sim-profile.c (COMMAS): New macro.
6858 (print_*): Use it to print commas in numbers.
6860 * configure: Regenerated.
6862 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
6863 (cgen_state): New member run_fast_p.
6864 (cgen_init): Add prototype.
6865 (sim_disassemble_insn): New arg `cpu'.
6866 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
6867 * cgen-utils.c (cgen_init): New function.
6868 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
6869 * genmloop.sh: Call engine_halt if loop exits.
6871 * Makefile.in (sim-options_h): Define.
6872 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
6873 (sim-model.o): Add new rule.
6874 (cgen-{scache,trace,utils}.o): Add new rules.
6875 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
6876 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
6877 Indent output by 2 spaces.
6878 * cgen-scache.h (scache_print_profile): Update.
6879 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
6880 Use trace_printf, not fprintf.
6881 (trace_extract): Use trace_printf, not cgen_trace_printf.
6882 * genmloop.sh (!FAST case): Increment `insn_count'.
6883 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
6884 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
6885 access macro's name.
6886 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
6887 Change return type to SIM_RC.
6888 (sim_core_{install,uninstall}): New functions.
6889 * sim-core.h (sim_core_{install,uninstall}): Declare.
6890 (sim_core_init): Use EXTERN_SIM_CORE to define it.
6891 Change return type to SIM_RC.
6892 * sim-model.h (models,machs,model_install): Declare.
6893 * sim-module.c (modules): Add scache_install, model_install.
6894 (sim_post_argv_init): Set cpu->state backlinks.
6895 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
6896 (standard_option_handler): Likewise.
6897 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
6900 (profile_options): Delete --profile-simcache.
6901 (profile_option_handler): Likewise.
6902 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
6904 (profile_print_{memory,model}): Likewise.
6905 (profile_print_simcache): Delete.
6906 (profile_print_speed): New function.
6907 (profile_print): Rewrite.
6908 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
6909 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
6910 (PROFILE_DATA): Delete members simcache_{hits,misses}.
6911 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
6912 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
6913 (profile_print): Update prototype.
6915 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
6917 * cgen-scache.[ch], cgen-sim.h: New files.
6918 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
6919 * sim-model.c: New file.
6921 * Make-common.in (clean targets): Undo patch of Apr. 22.
6923 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
6925 * sim-n-bits.h (signed): If we have a standard compiler, undef
6926 signed, so that signedN is defined correctly.
6928 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
6930 * sim-module.h, sim-model.h, sim-profile.h: New files.
6931 * sim-module.c, sim-profile.c: New files.
6932 * Make-common.in (SIM_PROFILE): Define
6933 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
6934 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
6935 (sim_module.o,sim-profile.o): Add rules for.
6936 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
6937 (--enable-sim-profile): Add.
6938 * configure: Regenerated.
6939 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
6940 model. Move trace and profile support to sim-{trace,profile}.h.
6941 New members trace_data, profile_data.
6942 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
6943 * sim-config.h: Provide default definition of WITH_PROFILE.
6944 (WITH_TRACE): Change default to -1.
6945 (MAX_NR_PROCESSORS): Always define.
6946 * sim-options.c: Move trace and profile support to
6947 sim-{trace,profile}.h.
6948 (sim_pre_argv_init): Moved to sim-model.c.
6949 (standard_install): New function.
6950 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
6951 (standard_install): Declare.
6952 * sim-trace.c: Tracing option handling moved here from sim-options.c.
6953 (trace_install, trace_uninstall): New functions.
6954 (trace_printf): Update reference to TRACE_FILE.
6955 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
6956 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
6957 (WITH_TRACE_FOO_P): Define.
6958 (trace_install): Declare.
6959 (TRACE_DATA): New struct.
6961 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
6963 * run.c: Undo last exec_bfd patch.
6964 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
6966 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
6968 * run.c (exec_bfd): Add back in.
6969 (main): Set exec_bfd.
6971 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
6973 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
6975 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6977 * sim-events.c (insert_sim_event): Call sim_io_error instead of
6978 less well defined engine_error.
6979 * sim-core.c: Ditto.
6981 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
6983 * Make-common.in: Change clean targets to use :: so that other
6984 Makefiles can have their own clean targets.
6985 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
6986 __STDC__ to control use of stdarg vs. varargs syntax. Some
6987 systems can't use __STDC__, but require stdarg.
6989 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
6991 * sim-options.c (standard_options): Add --endian.
6992 (standard_option_handler): Likewise.
6994 * nrun.c: #include <signal.h>.
6995 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6996 handler that calls sim_stop ().
6998 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
7000 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7001 handler that calls sim_stop (). Simulators may still be
7002 establishing their own handler.
7004 * sim-events.c (sim_events_poll): Rename from
7005 sim_events_at_large_int. Poll IO.
7007 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
7010 * callback.c (os_poll_quit): New function poll for quit signal
7012 (default_callback): Include magic number.
7014 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
7016 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
7017 Check for functions getrusage, time.
7018 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
7019 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
7020 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
7021 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
7023 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
7025 * sim-options.c, sim-options.h: New files.
7026 * sim-config.h (WITH_DEBUG): Provide default value of zero.
7027 * Make-common.in (nrun.o): Add rules for.
7030 * run.c (main): Check return value of sim_open.
7032 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
7033 (sim_main_headers): Add sim-trace.h.
7034 * run.c (exec_bfd, target_byte_order): Delete.
7035 (main): Pass -E <endian> to sim_open. Delete code to load sections,
7036 call sim_load instead. Check return code of sim_create_inferior.
7037 * sim-base.h (CURRENT_STATE): Define.
7038 (sim_state_base): Make typedef. New members options, prog_argv,
7039 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
7040 mem_size, memory [+ corresponding access macros].
7041 (sim_cpu_base): New typedef.
7042 * sim-trace.h: New file.
7043 * sim-trace.c: New file.
7044 * sim-basics.h: #include it.
7045 * sim-load.c: New file.
7047 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
7049 * Make-common.in (INSTALL): Set to @INSTALL@.
7050 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7051 (install-common): Depend upon installdirs. Use
7052 $(program_transform_name) directly, rather than using
7054 (installdirs): New target.
7055 * Makefile.in (INSTALL): Set to @INSTALL@.
7056 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7057 (install-man): Depend upon installdirs. Use
7058 $(program_transform_name) directly, rather than using
7060 (installdirs): New target.
7062 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
7064 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
7067 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7069 * sim-basics.h: Only bring in config.h and tconfig.h if
7072 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7074 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
7075 numbering convention of the target.
7076 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
7077 and WITH_TARGET_WORD_MSB.
7078 (sim_config): When possible, check for consistency with bitsize
7081 * sim-bits.h: Allow MSB to be other than zero.
7082 * sim-bits.c: Ditto.
7083 * sim-n-bits.h: Ditto.
7085 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
7086 * sim-n-bits.h (MSMASKEDn): Ditto.
7088 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
7090 * Makefile.in (INSTALL): Change install.sh to install-sh.
7092 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
7094 * sim-base.h (sim_state_base): Move `magic' to end of struct.
7096 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7098 * run.c (main): Check that a program to run was specified.
7100 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7102 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
7104 * configure: Regenerated to track ../common/aclocal.m4 changes.
7107 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
7109 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
7110 * sim-config.h: To here.
7112 * Make-common.in (SIM_EXTRA_DEPS): New config var.
7113 (sim_main_headers): Define.
7114 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
7115 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
7117 (sim-utils.o): Add rule for.
7118 * sim-utils.o: New file.
7119 * sim-basics.h: #include sim-base.h.
7120 (zalloc): Make argument unsigned long.
7121 * sim-base.h: New file.
7122 * sim-inline.h (SIM_IO support): Delete.
7123 * sim-io.h: Delete inline support.
7124 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
7125 * sim-config.c: sim-state.h renamed to sim-main.h.
7126 * sim-core.c: Likewise.
7127 * sim-events.c: Likewise.
7129 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
7131 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
7132 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
7134 * configure: Regenerated to track ../common/aclocal.m4 changes.
7136 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7138 * configure: Regenerated to track ../common/aclocal.m4 changes.
7140 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7142 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
7143 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
7144 are defined by the configure.
7146 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
7148 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
7149 reserved-bits): Always define.
7151 * sim-config.h, sim-config.c (sim_config): New function - and new
7152 file - co-ordinate the setting/checking of the common simulator
7153 configuration options.
7155 * Make-common.in (sim-config.o): Add rule.
7157 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
7159 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
7160 va_list from void *, since va_list might not be a pointer type.
7162 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7164 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
7166 (offset_N): Correct computation of LE offset.
7168 * sim-io.c (sim_io_error): Include a new line when reporting
7171 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
7174 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
7176 * run.c: Include alloca-conf.h.
7178 * callback.c (os_evprintf_filtered): Fix typo.
7180 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7182 * run.c (string.h, strings.h, stdlib.h): Include.
7184 * sim-events.c (sim_events_tick): Recent cleanup failed to return
7185 0 when nothing pending.
7187 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
7188 will soon be going away.
7189 (getopt): Plicate GCC.
7191 * sim-endian.c (sim-io.h): Plicate GCC.
7192 * sim-bits.c (sim-io.h): Ditto.
7193 * sim-n-bits.h (ROTn): Ditto.
7195 * sim-io.c (sim_io_error): Correct check for NULL.
7197 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
7199 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
7202 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7204 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
7205 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
7207 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7209 * sim-alu.h: Include sim-xcat.h.
7211 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7213 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
7214 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
7217 * sim-events.c (sim_events_at_large_int): New function. Just
7218 schedules an event every large-int ticks.
7219 (sim_events_init): Call.
7220 (sim_events_tick, sim_events_process): Move async handing to
7221 sim_events_process. Move timer decrement so that it occures after
7222 events have been processed.
7224 * sim-basics.h (struct _engine): Remove declaration.
7226 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
7227 everything with same. Rename global struct to SIM_DESC.
7228 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
7229 * sim-io.h, sim-io.c: Ditto.
7231 * sim-assert.h: New file. Optional assertion checking macros.
7232 * sim-io.c (sim_io_error): Make just this function tolerant to
7235 * sim-xcat.h: New file. Define concatenate macros.
7236 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
7237 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
7241 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7243 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
7245 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7247 * sim-inline.h: Add definitions for sim-types.
7248 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
7251 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7253 * sim-events.h: Remove defunct reference to callback struct.
7255 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7257 * configure: Re-generate.
7259 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7261 * Make-common.in (CSEARCH): Do not include the gdb directory in
7264 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7266 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7267 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
7268 to explicitly incorporate these.
7270 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
7271 specify the alignment restrictions of the target architecture -
7272 without this option all alignment restrictions are accomodated.
7273 (--enable-sim-assert): New option. Conditionally compile in
7274 assertion statements.
7275 (--enable-sim-float): New option. Strongly specify the target's
7276 floating point support.
7277 (--enable-sim-hardware): New option. Specify the hardware devices
7278 included in the simulation.
7279 (--enable-sim-packages): New option. Specify the hardware
7280 packages included in the simulation.
7281 (--enable-sim-regparm): New option. Specify that parameters be
7282 passed in registers instead of on the stack.
7283 (--enable-sim-reserved-bits): New option. Specify that reserved
7284 bits within an instruction are are correctly set.
7285 (--enable-sim-smp): New option. Specify the level of SMP support
7286 to be included in the simulator.
7287 (--enable-sim-stdcall): New option. Specify an alternative
7288 function call convention.
7289 (--enable-sim-xor-endian): New option. Configure xor-endian
7290 support used by some targets to implement bi-endian support.
7292 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7294 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
7295 host endianness to be overridden.
7296 (--enable-sim-endian): Allow the target platform's byte order
7298 (--enable-sim-inline): Control the inlining of common components.
7299 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
7300 (--enable-sim-warnings): Enable additional GCC compiler checks.
7301 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7304 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
7305 sim-*-n.h so that the names are uniq on dos machines
7306 * sim-core.c, sim-bits.c, sim-endian.c: Update.
7308 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
7310 * run.c: #include "libiberty.h".
7311 (main): New locals sd,no_args,sim_argv.
7312 Run buildargv on -a option. Pass argv to sim_open, argv[0]
7313 is program name. Update call to sim_set_callbacks.
7314 Record result of sim_open, pass to other sim_foo routines.
7316 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
7318 * callback.c (os_printf_filtered): Do not call exit(1) or print a
7321 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7323 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
7324 Route stdout through buffered IO.
7326 * callback.c: Add os_flush_stderr, os_write_stderr,
7327 os_evprintf_filtered functions to route error output through
7330 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
7331 Correct return type - should be void.
7333 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7335 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
7337 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
7338 not provide a default value as undefined indicates disable code.
7340 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7342 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
7344 * sim-events.h, sim-events.c: Ditto.
7345 * sim-io.h, sim-io.c: Ditto.
7347 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7349 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
7351 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
7352 extract the tail or least signifiant bits from an integer of the
7355 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
7356 WITH_TARGET_BITSIZE so that the compilation will fail when an
7357 unsupported bitsize value is defined.
7359 (INSERTED*): Convert to functions.
7360 (EXTRACTED*): Ditto.
7362 (SIGN_EXTEND, SEXT): Change to more terse name.
7364 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7366 * sim-inline.h: Allow explicit control over which .c files will be
7367 included by their header.
7369 * sim-inline.h: Allow explicit control over which .c files use the
7370 alternative - REGPARM - parameter passing mechanism.
7372 * sim-inline.h, sim-inline.c: Don't attempt to include any of
7373 icache.c, idecode.c, semantics.c or support.c. Those names are
7374 not generally applicable.
7376 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7378 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
7379 in a fashion similar to sim-endian-n.
7381 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
7382 both value and address macro's.
7384 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7386 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
7388 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
7389 generic L_word, H_word macro's.
7391 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
7393 * sim-basics.h: Borrow code from ppc directory.
7394 * sim-bits.c: Ditto.
7395 * sim-bits.h: Ditto.
7396 * sim-config.h: Ditto.
7397 * sim-endian-n.h: Ditto.
7398 * sim-endian.c: Ditto.
7399 * sim-endian.h: Ditto.
7400 * sim-inline.c: Ditto.
7401 * sim-inline.h: Ditto.
7402 * sim-types.h: Ditto.
7404 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
7406 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
7407 all the ALU size alternatives and then auto-configure a default.
7409 * sim-alu.h: Copy ppc/idecode_expression.h.
7411 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
7413 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
7414 sign extend a bit within a value.
7416 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
7417 a pointer into the middle of a host word.
7418 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
7420 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
7422 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
7423 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
7424 appropriate definitions of read, write, etc. Add prototype for
7427 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
7429 * Makefile.in (libcommon.a): Delete.
7430 (callback.o,targ-map.o): Delete, moved to Make-common.in.
7431 (gentmap,targ-vals.h,targ-map.c): Likewise.
7432 (run-autoconf): Delete.
7433 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
7434 (common makefile fragment): Moved back into ...
7435 * Make-common.in: Resurrect.
7436 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
7437 * configure: Regenerated.
7439 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
7441 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
7442 (SIM_AC_OUTPUT): To here.
7444 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
7446 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
7447 comments and single quotes. Fixes a problem found on hpux.
7449 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
7451 * aclocal.m4: Remove Make-common.in from dependencies.
7452 * (distclean): Remove targ-vals.def.
7454 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
7455 into here. Makes insertion into makefiles easier. Also, change
7456 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
7457 targ-map.o, and run are built. They are now built in the
7458 individual simulator directories, taking sources from ../common as
7459 necessary. This replaces the merging of libcommon.a into
7460 linsim.a, which was problematic for the WinGDB build process.
7461 * run.c: Include config.h from . instead of ../common.
7462 * Make-common.in: Remove. It's no longer necessary.
7464 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
7466 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
7467 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
7469 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
7471 * run.c (main): Set target_byte_order before call to sim_open.
7473 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
7475 * callback.c: #include <stdlib.h>
7476 (os_error): New function.
7477 (default_callback): Add os_error.
7479 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
7481 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
7482 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
7484 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
7486 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
7488 * run.c: #include ../common/config.h, tconfig.h.
7489 (myname): New static global.
7490 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
7491 Only process -c ifdef SIM_HAVE_SIMCACHE.
7492 Only process -p/-s ifdef SIM_HAVE_PROFILE.
7493 Parse program name from argv[0] and use in error messages.
7494 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
7495 Add support for incomplete h8/300 termination indicators.
7496 (usage): Make more verbose.
7497 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
7498 * Makefile.in,Make-common.in,callback.c: New files.
7499 * nltvals.def,gentmap.c,gentvals.sh: New files.
7501 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
7503 * run.c: Include stdarg.h if __STDC__.
7505 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
7507 * run.c (main): Don't print out anything if the signal
7508 number is zero (ie no signal).
7510 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7512 * run.c (main): Print out if the program raised a signal.
7514 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7516 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
7519 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
7521 * run.c (main): Explicitly cast malloc() parameter.
7523 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7525 * run.c (sim_bfd): New global to hold the bfd pointer for the
7527 (main): Initialize sim_bfd.
7529 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
7531 * run.c (main): Use new bfd_big_endian macro.
7533 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7535 * run.c (main): Removed SH specific comments, so source is
7536 generic. Also updated to only load relevant sections. Moved
7537 sim_open() to after callback attach (to match GDB).
7539 * run.1: Removed SH specific comments.
7541 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7543 * run.c (main): Always return sigrc at end.
7545 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7547 * run.c (main): Print error diagnostic and exit if bfd_openr() or
7548 bfd_check_format() fails.
7550 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
7552 * run.c, run.1: From sh directory.