blob: ad5980cd7d7a977bef839d65a5975f787e1624cc [file] [log] [blame]
2021-07-01 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_RESERVED_BITS): Delete.
2021-07-01 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (GUILE): New variable.
(CGEN): Use $(GUILE).
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_SCACHE): Delete.
* cgen-scache.h (WITH_SCACHE): Delete.
* sim-profile.c (profile_info): Check CGEN_ARCH.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* cgen-scache.c (scache_install): Rename to ...
(sim_install_scache): ... this. New prototype.
* cgen-scache.h (scache_install): Delete.
* sim-module.c (early_modules): Delete scache_install.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (early_modules): Delete profile_install.
* sim-profile.c (profile_install): Rename to ...
(sim_install_profile): ... this. New prototype.
* sim-profile.h (profile_install): Delete.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (early_modules): Delete trace_install.
* sim-trace.c (trace_install): Rename to ...
(sim_install_trace): ... this. New prototype.
* sim-trace.h (trace_install): Delete.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-engine.c (sim_engine_install): Rename to ...
(sim_install_engine): ... this. New prototype.
* sim-engine.h (sim_engine_install): Delete.
* sim-module.c (early_modules): Delete sim_engine_install.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-config.h (WITH_MODEL): Delete.
(CURRENT_MODEL, MODEL_ISSUE_IGNORE, MODEL_ISSUE_PROCESS,
WITH_MODEL_ISSUE, CURRENT_MODEL_ISSUE): Likewise.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_DEFAULT_MODEL): Delete.
* sim-base.h (struct sim_state): Add model_name.
(STATE_MODEL_NAME): Define.
* sim-model.c (model_option_handler): Set STATE_MODEL_NAME.
(sim_model_init): Delete WITH_MODEL_P check. Change
WITH_DEFAULT_MODEL to STATE_MODEL_NAME.
* sim-model.h (WITH_DEFAULT_MODEL): Delete.
(WITH_MODEL_P): Delete.
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* cgen-defs.h (cgen_cpu_max_extra_bytes): Add SIM_DESC arg.
* cgen-utils.c (cgen_cpu_max_extra_bytes): Likewise. Change sim_machs
to STATE_MACHS.
* sim-base.h (struct sim_state): Add machs.
(STATE_MACHS): New define.
* sim-cpu.c (sim_cpu_alloc): Pass sd to cgen_cpu_max_extra_bytes.
* sim-model.c (model_option_handler): Pass sd to sim_model_lookup.
Change sim_machs to STATE_MACHS.
(sim_model_lookup): Add SIM_DESC arg. Change sim_machs to
STATE_MACHS.
(sim_mach_lookup): Likewiwse.
(sim_mach_lookup_bfd_name): Likewise.
(sim_model_init): Pass sd to sim_model_lookup and
sim_mach_lookup_bfd_name.
(sim_machs): Delete.
* sim-model.h (enum mach_attr): Delete.
(SIM_MODEL): Change num to int.
(sim_machs): Delete.
(sim_model_lookup): Add SIM_DESC arg.
(sim_mach_lookup): Likewise.
(sim_mach_lookup_bfd_name): Likewise.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (Makefile): Replace $(arch) and pass more files to
config.status.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* callback.c [!HAVE_KILL] (os_kill): Return ENOSYS.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* sim-model.c (model_option_handler): Make machp const.
(sim_model_lookup): Likewise.
(sim_mach_lookup): Likewise.
(sim_mach_lookup_bfd_name): Likewise.
(sim_machs): Add const.
* sim-model.h (sim_machs): Likewise.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* sim-io.h (sim_io_vprintf): Add ATTRIBUTE_PRINTF.
(sim_io_evprintf): Likewise.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* sim-io.c (sim_io_error): Change "" to " ".
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* callback.c (sim_cb_printf, sim_cb_eprintf): Delete.
(os_poll_quit): Delete __GO32__ support.
* sim-utils.h (sim_cb_printf, sim_cb_eprintf): Delete.
2021-06-29 Mike Frysinger <vapier@gentoo.org>
* cgen-types.h (HAVE_LONGLONG): Delete define.
[!HAVE_LONGLONG]: Delete all protected code.
* cgen-utils.c (make_struct_di): Delete.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c: Include diagnostics.h.
(cgen_trace_extract): Call DIAGNOSTIC_PUSH,
DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL, and DIAGNOSTIC_POP.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-run.c (engine_run_n): Assert cpu arguments are valid.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.h (cgen_trace_printf): Add ATTRIBUTE_PRINTF_2.
(sim_disasm_sprintf): Likewise.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c (cgen_trace_extract): Make name & fmt const.
(cgen_trace_result): Make name const.
(cgen_trace_printf): Make fmt const.
* cgen-trace.h (cgen_trace_extract): Make 3rd arg const.
(cgen_trace_result): Make 2nd arg const.
(cgen_trace_printf): Likewise.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-mem.h (DECLARE_GETMEM_EXTERN): New macro.
(DECLARE_GETMEM): Use DECLARE_GETMEM_EXTERN.
(DECLARE_SETMEM_EXTERN): New macro.
(DECLARE_SETMEM): Use DECLARE_SETMEM_EXTERN.
(DECLARE_GETIMEM_EXTERN): New macro.
(DECLARE_GETIMEM): Use DECLARE_GETIMEM_EXTERN.
(DECLARE_GETT_EXTERN): New macro.
(DECLARE_GETT): Use DECLARE_GETT_EXTERN.
(DECLARE_SETT_EXTERN): New macro.
(DECLARE_SETT): Use DECLARE_SETT_EXTERN.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-ops.h: Move prototype blocks before function definitions.
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-ops.h (SUBWORDSIQI): Add int 2nd argument.
(SUBWORDSIHI, SUBWORDSIUQI, SUBWORDDIUQI): Likewise.
(ADDCFSI): Change return type to BI.
(ADDOFSI, SUBCFSI, SUBOFSI, ADDCFHI, ADDOFHI, SUBCFHI, SUBOFHI,
ADDCFQI, ADDOFQI, SUBCFQI, SUBOFQI): Likewise.
(MUL1OFSI): Change SI arguments to USI.
2021-06-23 Mike Frysinger <vapier@gentoo.org>
* sim-syscall.c (sim_syscall_multi): Handle CB_SYS_kill.
2021-06-23 Mike Frysinger <vapier@gentoo.org>
* callback.c (os_kill): New function.
(default_callback): Add os_kill.
* syscall.c (cb_syscall): Handle CB_SYS_kill.
2021-06-23 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (srcdir): Change to abs_srcdir.
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* callback.c (cb_target_to_host_signal): New function.
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* callback.c: Include signal.h.
(cb_init_signal_map): New prototype.
(os_init): Assign signal_map.
* gentmap.c (signal_tdefs): New array.
(gen_targ_vals_h): Output signal_tdefs.
(gen_targ_map_c): Likewise.
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* callback.c (os_getpid): New function.
(default_callback): Add os_getpid.
* syscall.c (cb_syscall): Change getpid to cb->getpid.
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (VPATH): Use $(srcdir).
(config.status): New variable.
(stamp-hw): Depend on $(config.status).
(Makefile): Likewise. Change rule based on SIM_COMMON_BUILD.
(config.status): Disable when SIM_COMMON_BUILD is true.
(.gdbinit): Likewise.
2021-06-21 Mike Frysinger <vapier@gentoo.org>
* Make-common.in: Move sim-hw settings to ../arch-subdir.mk.in.
2021-06-21 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_HW): Delete.
(SIM_HW_OBJS): Redefine.
(SIM_HW_SOCKSER, SIM_HW_DEVICES): Define.
(stamp-hw): Change SIM_HW to SIM_HW_DEVICES.
2021-06-20 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (CGENDIR): Delete.
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_INLINE): Delete.
2021-06-19 Simon Marchi <simon.marchi@polymtl.ca>
* sim-inline.h: Move UNUSED before TYPE.
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (clean): Delete BUILT_SRC_FROM_COMMON usage.
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (CSEARCH): Change @INCINTL@ to $(INTL_CFLAGS).
(LIBINTL, LIBINTL_DEP): Delete.
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in: Move dependency vars to ../arch-subdir.mk.in.
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in: Move toolchain vars to ../arch-subdir.mk.in.
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (lt_cv_dlopen_libs): Delete.
(@PLUGINS_TRUE@LIBDL): Likewise.
(ZLIB): Use $(zlibdir).
2021-06-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (CONFIG_LIBS): Add $(COMMON_LIBS).
2021-06-18 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (WARN_CFLAGS, WERROR_CFLAGS): Delete.
2021-06-18 Mike Frysinger <vapier@gentoo.org>
* Make-common.in: Include ../arch-subdir.mk.
2021-06-18 Mike Frysinger <vapier@gentoo.org>
* cgen-run.c: Include sim-signal.h.
* cgen-utils.c, nrun.c, sim-core.c, sim-engine.c, sim-reason.c,
sim-resume.c, sim-signal.c, sim-stop.c, sim-watch.c: Likewise.
* sim-basics.h: Delete sim-signal.h include.
2021-06-18 Mike Frysinger <vapier@gentoo.org>
* sim-basics.h: Delete libiberty.h include.
2021-06-17 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_ENDIAN): Delete.
* sim-config.c (sim_config): Delete WITH_DEFAULT_TARGET_BYTE_ORDER.
(sim_config_print): Likewise.
* sim-config.h (WITH_TARGET_BYTE_ORDER): Delete.
(WITH_DEFAULT_TARGET_BYTE_ORDER): Likewise.
2021-06-17 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c: Include sim/callback.h.
* nrun.c, sim-hw.c, sim-io.c, sim-syscall.c, sim-trace.c: Likewise.
* sim-basics.h: Delete sim/callback.h include.
* sim-endian.h: Include bfd.h.
* sim-syscall.h (struct cb_syscall): New forward decl.
* sim-utils.h (sim_analyze_program): Likewise.
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (CONFIG_CFLAGS): Change @DEFS@ to -DHAVE_CONFIG_H.
(generated_files): Delete config.h.
(distclean): Likewise.
(config.h, stamp-h): Delete rules.
* defs.h [SIM_COMMON_BUILD]: Delete config.h include and PACKAGE*
defines.
2021-06-15 Mike Frysinger <vapier@gentoo.org>
* Make-common.in: Add stamp-modules rule to avoid rebuilds.
(clean): Delete modules.c files.
* local.mk: Add version.c-stamp rule to avoid rebuilds.
(CLEANFILES): Add version.c files.
2021-06-14 Mike Frysinger <vapier@gentoo.org>
* local.mk (%D%/version.c): Use AM_V_GEN & AM_V_at wrappers.
2021-06-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (GNULIB_BUILDDIR): Rename to ...
(GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (COMMON_OBJS_NAMES): Add portability.o.
* local.mk (%C%_libcommon_a_SOURCES): Add %D%/portability.c.
* portability.c, portability.h: New files.
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_NEW_COMMON_OBJS): Move sim-load.o to ...
(COMMON_OBJS_NAMES): ... here. Rename var from COMMON_OBJS.
(COMMON_OBJS): Redefine.
* defs.h [SIM_COMMON_BUILD]: Do not include ../config.h.
* local.mk (%C%_libcommon_a_CPPFLAGS): New variable.
(%C%_libcommon_a_SOURCES): Add %D%/sim-load.c.
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* dv-sockser.c: Include sys/select.h.
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* Make-common.in: Delete SIM_ALIGNMENT.
* sim-config.c (sim_config): Change WITH_DEFAULT_ALIGNMENT to
NONSTRICT_ALIGNMENT.
(sim_config_print): Delete WITH_DEFAULT_ALIGNMENT logic.
* sim-config.h (WITH_DEFAULT_ALIGNMENT): Delete.
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* defs.h: Include ../config.h. Undefine PACKAGE* defines.
2021-06-09 Mike Frysinger <vapier@gentoo.org>
* sim-basics.h (NULL): Delete.
2021-06-09 Mike Frysinger <vapier@gentoo.org>
* nrun.c (main): Set default_callback.target_endian to
current_target_byte_order when it's BFD_ENDIAN_UNKNOWN.
2021-06-09 Mike Frysinger <vapier@gentoo.org>
* cgen-defs.h (STATE_RUN_FAST_P, CGEN_STATE, cgen_init): Delete.
* cgen-run.c (cgen_get_fast_p): New function.
(sim_resume): Move fast_p up and call cgen_get_fast_p.
* cgen-utils.c (cgen_init): Delete.
* sim-base.h: Delete cgen-sim.h include.
(struct sim_state): Delete cgen_state and STATE_CGEN_STATE.
2021-06-08 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (IGEN_RUN): New variable.
(IGEN): Remove ASAN_OPTIONS.
2021-06-05 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (COMMON_OBJS): Define.
(LIB_OBJS): Replace version.o with $(COMMON_OBJS).
(version.c): Delete target.
(generated_files): Delete version.c.
* local.mk: New file.
2021-05-29 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (EXTRA_LIBS): Add $(LIBGNU_EXTRA_LIBS).
2021-05-29 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (GNULIB_BUILDDIR): Define.
Include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc.
(CSEARCH): Add -I../...
(ALL_CFLAGS): Add $(INCGNU).
(EXTRA_LIBS): Add $(LIBGNU).
* defs.h: Include gnulib/config.h. Undefine PACKAGE* defines.
2021-05-17 Mike Frysinger <vapier@gentoo.org>
* sim-base.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
(struct sim_state_base): Merge into ...
(struct sim_state): ... this.
(STATE_MY_NAME): Delete base.
(STATE_OPEN_KIND): Likewise.
(STATE_CALLBACK): Likewise.
(STATE_ENVIRONMENT): Likewise.
(STATE_CONFIG): Likewise.
(STATE_MODULES): Likewise.
(STATE_OPTIONS): Likewise.
(STATE_VERBOSE_P): Likewise.
(STATE_TRACE_DATA): Likewise.
(STATE_ARCHITECTURE): Likewise.
(STATE_TARGET): Likewise.
(STATE_PROG_ARGV): Likewise.
(STATE_PROG_BFD): Likewise.
(STATE_PROG_SYMS): Likewise.
(STATE_PROG_SYMS_COUNT): Likewise.
(STATE_TEXT_SECTION): Likewise.
(STATE_TEXT_START): Likewise.
(STATE_TEXT_END): Likewise.
(STATE_START_ADDR): Likewise.
(STATE_SCACHE_SIZE): Likewise.
(STATE_CORE): Likewise.
(STATE_MEMOPT): Likewise.
(STATE_EVENTS): Likewise.
(STATE_ENGINE): Likewise.
(STATE_WATCHPOINTS): Likewise.
(STATE_HW): Likewise.
(STATE_LOAD_AT_LMA_P): Likewise.
(SIM_MAGIC_NUMBER): Likewise.
(STATE_MAGIC): Likewise.
* sim-utils.c (sim_state_alloc_extra): Delete check for
SIM_HAVE_COMMON_SIM_STATE.
2021-05-17 Mike Frysinger <vapier@gentoo.org>
* cgen-defs.h (STATE_RUN_FAST_P): Call STATE_CGEN_STATE.
* sim-base.h [CGEN_ARCH]: Include cgen-sim.h and define
SIM_HAVE_COMMON_SIM_STATE.
(struct sim_state): Add cgen_state.
(STATE_CGEN_STATE): Define.
2021-05-17 Mike Frysinger <vapier@gentoo.org>
* sim-base.h (struct sim_state): Update comment.
(struct sim_state): Define.
(STATE_ARCH_DATA): Likewise.
(sim_state_alloc): New define.
(sim_state_alloc_extra): Renamed & add 3rd arg.
* sim-utils.c (sim_state_alloc): Likewise.
(sim_state_alloc_extra): Set arch data.
2021-05-16 Mike Frysinger <vapier@gentoo.org>
* callback.c: Replace config.h include with defs.h.
* cgen-accfp.c, cgen-fpu.c, cgen-par.c, cgen-run.c, cgen-scache.c,
dv-core.c, dv-glue.c, genmloop.sh, hw-alloc.c, hw-base.c, hw-device.c,
hw-events.c, hw-handles.c, hw-instances.c, hw-ports.c,
hw-properties.c, hw-tree.c, sim-abort.c, sim-arange.c, sim-bits.c,
sim-close.c, sim-command.c, sim-config.c, sim-core.c, sim-cpu.c,
sim-endian.c, sim-engine.c, sim-events.c, sim-fpu.c, sim-hload.c,
sim-hrw.c, sim-hw.c, sim-info.c, sim-inline.c, sim-model.c,
sim-profile.c, sim-reason.c, sim-reg.c, sim-resume.c, sim-run.c,
sim-signal.c, sim-stop.c, sim-trace.c, sim-utils.c: Include defs.h.
* cgen-trace.c, cgen-utils.c, dv-cfi.c, dv-pal.c, dv-sockser.c,
nrun.c, sim-basics.h, sim-load.c, sim-memopt.c, sim-module.c,
sim-options.c, sim-syscall.c, sim-watch.c, syscall.c: Replace
config.h include with defs.h.
* gentmap.c (gen_targ_map_c): Replace config.h with defs.h.
* sim-io.c: Include defs.h.
(open): Undefine.
* defs.h: New file.
2021-05-15 Mike Frysinger <vapier@gentoo.org>
* nrun.c: Include environ.h.
(environ): Delete prototype.
(main): Delete HAVE_ENVIRON check.
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* callback.c (os_lseek): Change return and 3rd arg to int64_t.
(os_ftruncate): Change 3rd arg to int64_t.
(os_truncate): Change 3rd arg to int64_t.
* sim-io.c (sim_io_lseek): Change return and 3rd arg to int64_t.
* sim-io.h (sim_io_lseek): Likewise.
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* callback.c (os_time): Change return to int64_t. Delete 2nd arg.
(os_fstat): Delete 2nd arg to time callback.
* sim-io.c (sim_io_time): Change return to int64_t. Delete 2nd arg
to time callback.
* sim-io.h (sim_io_time): Change return to int64_t.
* syscall.c (cb_syscall): Delete 2nd arg to time callback.
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* callback.c (cb_host_to_target_stat): Change PTR to void*.
* sim-syscall.c (sim_syscall_multi): Delete (PTR) casts.
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (callback_h, remote_sim_h): Update path.
* callback.c: Update include path.
* gentmap.c (gen_targ_map_c): Likewise.
* sim-basics.h: Likewise.
* sim-close.c: Likewise.
* sim-core.c: Likewise.
* sim-load.c: Likewise.
* sim-module.h: Likewise.
* syscall.c: Likewise.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (modules.c): Touch $@ at the end.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-types.h (mode_names): Rename to ...
(cgen_mode_names): ... this.
(MODE_NAME): Use cgen_mode_names.
* cgen-utils.c (mode_names): Rename to ...
(cgen_mode_names): ... this.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-ops.h (cgen_rtx_error): Declare.
* cgen-utils.c (cgen_rtx_error): Add %s printf argument.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-utils.c (virtual_insn_entries): Change {0} to {}.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (html, clean-html, install-html, pdf, clean-pdf,
install-pdf): New rules.
2021-05-08 Tom Tromey <tom@tromey.com>
* sim-options.c (compare_strings): Remove.
(dup_arg_p): Use htab_eq_string.
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* sim-hw.c (sim_hw_install): Rename to ...
(sim_install_hw): ... this. New prototype.
* sim-hw.h (sim_hw_install): Delete.
* sim-module.c: Delete sim-hw.h include.
(early_modules): Delete sim_hw_install.
2021-05-04 Tom Tromey <tromey@adacore.com>
* Make-common.in (generated_files): Add config.h.
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c (sim_disasm_perror_memory): Use BFD_VMA_FMT and drop
cast.
* sim-load.c (xprintf_bfd_vma): Delete.
(sim_load_file): Delete xprintf_bfd_vma calls. Use BFD_VMA_FMT.
2021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
* hw-events.h (hw_event_queue_schedule_tracef): Use format attribute.
(hw_event_queue_schedule_vtracef): Likewise.
* hw-tree.h (hw_tree_vparse): Likewise.
* sim-profile.c (profile_vprintf): Likewise.
* sim-trace.c (dis_printf): Likewise.
* sim-trace.h (trace_printf): Likewise.
(trace_vprintf): Likewise.
* sim-utils.h (sim_do_commandf): Likewise.
* hw-events.c (hw_event_queue_schedule): Use
hw_event_queue_schedule_tracef.
2021-05-02 Simon Marchi <simon.marchi@polymtl.ca>
* sim-options.c (standard_option_handler): Add default cases to
switches.
2021-05-02 Mike Frysinger <vapier@gentoo.org>
* callback.c (os_error): Change __attribute__((noreturn)) to
ATTRIBUTE_NORETURN.
* hw-device.h (hw_abort, hw_vabort, hw_halthw_trace): Change
attributes to ATTRIBUTE_PRINTF and ATTRIBUTE_NORETURN.
* hw-events.h (hw_event_queue_schedule_tracef): Likewise.
* hw-tree.h (hw_tree_delete): Likewise.
* sim-basics.h (__attribute__): Delete.
* sim-engine.h (sim_engine_halt): Change __attribute__((noreturn))
to ATTRIBUTE_NORETURN.
(sim_engine_abort, sim_engine_vabort): Likewise.
* sim-hw.h (sim_hw_install, sim_hw_abort): Change
__attribute__((printf)) to ATTRIBUTE_PRINTF.
* sim-inline.h (NORETURN): Delete.
(UNUSED): Change to ATTRIBUTE_UNUSED.
* sim-io.h (sim_io_printf): Change attributes to ATTRIBUTE_PRINTF
and ATTRIBUTE_NORETURN.
(sim_io_eprintf, sim_io_error): Likewise.
* sim-profile.c (profile_printf): Likewise.
* sim-trace.h (trace_prefix, trace_generic, trace_printf,
sim_debug_printf): Likewise.
2021-05-01 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (dup_arg_p): Call htab_empty.
2021-05-01 Mike Frysinger <vapier@gentoo.org>
* dv-sockser.c (dv_sockser_install): Rename to ...
(sim_install_dv_sockser): ... this.
* dv-sockser.h (dv_sockser_install): Delete.
* sim-module.c: Delete dv-sockser.h include.
(early_modules): Delete dv_sockser_install.
2021-05-01 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (LIB_OBJS): Add modules.o.
(generated_files): Add modules.c.
(modules.c): New target.
* sim-module.c (modules): Rename to ...
(early_modules): ... this. Delete 0 sentinel.
(early_modules_len): Define.
(sim_modules_detected, sim_modules_detected_len): Declare.
(sim_pre_argv_init): Call sim_module_install_list.
(sim_module_install): New function.
(sim_module_install_list): New function.
* sim-module.h (sim_module_install_list): Declare.
2021-05-01 Mike Frysinger <vapier@gentoo.org>
* nrun.c (strsignal): New prototype.
2021-05-01 Mike Frysinger <vapier@gentoo.org>
* callback.c (wrap): Delete.
(os_close): Replace wrap call with direct call & setting last_errno.
(os_isatty, os_lseek, os_read_stdin, os_write, os_rename, os_system,
os_time, os_unlink, os_stat, os_fstat, os_lstat): Likewise.
2021-04-26 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGETS): Delete. Update comment.
(gentvals): Unify common code paths.
(gen_targets): Change TARGETS to TARGETS_DIRS. Call gentvals without
target argument.
* nltvals.def: Regenerate.
2021-04-25 Tom Tromey <tom@tromey.com>
* sim-options.c (compare_strings): New function.
(ARG_HASH_SIZE, ARG_HASH): Remove.
(dup_arg_p): Use htab_t.
(sim_parse_args): Remove assert.
2021-04-24 Mike Frysinger <vapier@gentoo.org>
* dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC.
2021-04-24 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (ARG_HASH_SIZE): Increase to 256.
(sim_parse_args): Call SIM_ASSERT.
2021-04-22 Tom Tromey <tom@tromey.com>
* sim-utils.c: Update includes.
2021-04-22 Tom Tromey <tom@tromey.com>
* Make-common.in: Require GNU make.
2021-04-22 Tom Tromey <tom@tromey.com>
* Make-common.in (stamp-hw): New target.
(hw-config.h): Depend on stamp-hw.
(mostlyclean): Remove stamp-hw and hw-config.h.
2021-04-22 Tom Tromey <tom@tromey.com>
* Make-common.in (mostlyclean): Now an alias for clean, not
distclean.
2021-04-22 Tom Tromey <tom@tromey.com>
* sim-events.c (sim_events_schedule): Use
sim_events_schedule_tracef.
2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
* callback.c (os_printf_filtered, os_vprintf_filtered,
os_evprintf_filtered, os_error): Use ATTRIBUTE_PRINTF.
* sim-engine.h (sim_engine_abort, sim_engine_vabort): Likewise.
* sim-events.h (sim_events_schedule_tracef,
sim_events_schedule_vtracef): Use ATTRIBUTE_NULL_PRINTF.
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGETS): Add moxie.
* nltvals.def: Regenerate.
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGET_DIRS, TARGETS): Add sh.
* nltvals.def: Regenerate.
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGETS): Add rx.
* nltvals.def: Regenerate.
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGETS): Add m32c.
* nltvals.def: Regenerate.
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGETS): Add iq2000.
* nltvals.def: Regenerate.
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* syscall.c (cb_syscall): Implement CB_SYS_getpid.
2021-04-15 John Baldwin <jhb@FreeBSD.org>
* Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS.
(ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after
CSEARCH.
2021-04-12 Mike Frysinger <vapier@gentoo.org>
* sim-cpu.c (sim_cpu_alloc_all): Delete 3rd arg. Delete 2nd arg to
sim_cpu_alloc.
(sim_cpu_alloc): Move extra_bytes to local var. Add result of
cgen_cpu_max_extra_bytes.
* sim-cpu.h (sim_cpu_alloc_all): Delete 3rd arg.
(sim_cpu_alloc): Delete 2nd arg.
2021-04-08 Tom Tromey <tom@tromey.com>
* cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use
new-style declaration.
2021-04-03 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (install-common): Install as run-$arch and
libsim-$arch.a when not the primary arch.
2021-04-02 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (CFLAGS_FOR_BUILD): Define.
(BUILD_CFLAGS): Replace -g -O with $(CFLAGS_FOR_BUILD).
2021-03-13 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (LINK_FOR_BUILD): Change BUILD_LDFLAGS to
LDFLAGS_FOR_BUILD.
2021-03-13 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
(gentmap.o): New rule.
(gentmap): Call LINK_FOR_BUILD.
2021-03-07 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (check): Delete body.
2021-02-28 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_EXTRA_LIBDEPS): Delete.
(LIBDEPS): Delete $(SIM_EXTRA_LIBDEPS).
2021-02-27 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_EXTRA_ALL): Delete.
(all): Delete $(SIM_EXTRA_ALL).
2021-02-21 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Removed.
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Delete all sinclude & m4_include calls.
2021-02-13 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4: Delete.
2021-02-06 Mike Frysinger <vapier@gentoo.org>
* sim-events.c: Include sim-cpu.h.
(sim_event_watchpoints): Define watch_pc.
(sim_events_watch_pc): New function.
(WATCH_SIM): Handle watch_pc.
* sim-events.h (sim_events_watch_pc): New prototype.
* sim-watch.c (schedule_watchpoint): Replace sim_events_watch_sim with
sim_events_watch_pc.
* sim-watch.h (sim_watchpoints): Delete pc.
2021-02-06 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Replace AC_CONFIG_HEADER with
AC_CONFIG_HEADERS.
2021-02-06 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (HDEFINES, TDEFINES): Delete.
(CONFIG_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
* acinclude.m4 (SIM_AC_COMMON): Delete AC_SUBST(HDEFINES) and
bfd/configure.host sourcing.
2021-02-04 Mike Frysinger <vapier@gentoo.org>
* gennltvals.py (TARGETS): Add riscv.
(TARGET_DIRS): Likewise.
* nltvals.def: Regenerate from the latest libgloss sources.
2021-01-31 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c (cgen_trace_insn): Add "%s" argument.
2021-01-31 Stafford Horne <shorne@gmail.com>
* cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.
(fixdfsi): Change res from unsigned32 to signed32.
(fixdfdi): Change res from unsigned64 to signed64.
2021-01-30 Mike Frysinger <vapier@gentoo.org>
* gennltvals.sh: Replace shell script with ...
* gennltvals.py: ... this Python script.
* nltvals.def: Regenerate.
2021-01-30 Mike Frysinger <vapier@gentoo.org>
* sim-watch.c (schedule_watchpoint): Change sizeof_pc to sizeof
sim_cia.
* sim-watch.h (struct _sim_watchpoints): Delete sizeof_pc.
2021-01-30 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (profile_pc_init): Change 1 in shifts to 1ULL.
2021-01-30 Mike Frysinger <vapier@gentoo.org>
* sim-hw.c (merge_device_file): Replace fgets with getline.
2021-01-30 Mike Frysinger <vapier@gentoo.org>
* gennltvals.sh (gen_arches): Sort calls by first arg.
* nltvals.def: Regenerate.
2021-01-18 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (version.c): Simplifiy args and call move-if-change.
* create-version.sh: Delete host & target alias logic. Write to the
output directly.
2021-01-18 Mike Frysinger <vapier@gentoo.org>
* configure, configure.ac, Makefile.in: Delete.
2021-01-13 Mike Frysinger <vapier@gentoo.org>
* sim-watch.c (default_interrupt_handler): Define.
(sim_watchpoint_install): Set default interrupt_handler to new
default_interrupt_handler.
2021-01-13 Mike Frysinger <vapier@gentoo.org>
* sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1.
2021-01-13 Mike Frysinger <vapier@gentoo.org>
* sim-events.c (sim_events_watch_sim): Change byte_order type to
enum bfd_endian.
(sim_events_watch_core): Likewise.
* sim-events.h (sim_events_watch_sim, sim_events_watch_core): Likewise.
* sim-watch.c (schedule_watchpoint): Change 0 to HOST_BYTE_ORDER in
call to sim_events_watch_sim.
2021-01-12 Mike Frysinger <vapier@gentoo.org>
* sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
2021-01-11 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
2021-01-11 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (sim_memory_map): Change %#x to PRIxTW.
2021-01-11 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Delete checks for stdlib.h, string.h,
strings.h, time.h, and errno.h.
* callback.c, cgen-scache.c, dv-glue.c, dv-pal.c, dv-sockser.c,
hw-alloc.c, hw-base.c, hw-device.c, hw-events.c, hw-handles.c,
hw-ports.c, hw-properties.c, hw-tree.c, nrun.c, sim-arange.c,
sim-events.c, sim-fpu.c, sim-hw.c, sim-load.c, sim-memopt.c,
sim-options.c, sim-profile.c, sim-trace.c, sim-utils.c,
sim-watch.c, syscall.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H,
HAVE_STRING_H, HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H,
and strings.h include.
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete.
* sim-core.c, sim-watch.c: Include libiberty.h.
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Replace duplicate text with pointer to README-HACKING.
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OPTION_WARNINGS): Document 1st argument.
Set WERROR_CFLAGS when first arg is not set or is "yes".
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* hw-base.c (full_name_of_hw): Delete full_name. Replace
hw_strdup call with hw_malloc.
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* cgen-par.c: Include stdlib.h.
* cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
2021-01-08 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (C_DIALECT): Define.
(COMPILE.pre): Append $(C_DIALECT).
* acinclude.m4 (SIM_AC_COMMON): Probe C11 to define C_DIALECT.
2021-01-07 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (sim_memory_map): Define.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (ACX_BUGURL): Change http:// to https://.
* configure: Regenerate.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (sim_print_version): Print out more details when
is_command is non-zero.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (standard_option_handler): Call sim_print_version.
(sim_print_version): New function.
* sim-options.h (sim_print_version): New prototype.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* sim-config.c (print_sim_config): Rename to ...
(sim_config_print): ... this.
* sim-config.h: Likewise.
2021-01-02 Mike Frysinger <vapier@gentoo.org>
* sim-bits.h (_ALIGNa, _FLOORa, ALIGN_8, ALIGN_16, ALIGN_PAGE,
FLOOR_PAGE): Delete unused macros.
(align_up, align_down): Define.
2020-08-10 Tom de Vries <tdevries@suse.de>
* sim-cpu.c: Include stdlib.h for free.
2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
* nrun.c: Include stdlib.h.
* sim-core.c: Likewise.
* sim-engine.c: Likewise.
* sim-io.c: Likewise.
* sim-module.c: Likewise.
* sim-reason.c: Likewise.
2019-12-19 Tom Tromey <tromey@adacore.com>
PR build/24572:
* Makefile.in (install-strip): New target.
2019-12-01 Pavel I. Kryukov <kryukov@frtk.ru>
* sim-utils.c: Prevent buffer overflow.
2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
* gennltvals.sh: Add PRU libgloss target.
* nltvals.def: Regenerate from the latest libgloss sources.
2019-06-13 Stafford Horne <shorne@gmail.com>
* cgen-accfp.c (unorderedsf, unordereddf): New functions.
(cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf.
* cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
2019-06-13 Stafford Horne <shorne@gmail.com>
* cgen-accfp.c (floatdidf, fixdfdi): New functions.
(cgen_init_accurate_fpu): Add floatdidf and fixdfdi.
2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
* cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not
CURRENT_TARGET_BYTE_ORDER.
(SUBWORDTFSI): Likewise.
(JOINSIDF): Likewise.
(JOINSIXF): Likewise.
(JOINSITF): Likewise.
2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
* sim-base.h: Add 'sim-assert.h' include.
* sim-basics.h: Add 'libiberty.h' include.
2019-03-28 Stafford Horne <shorne@gmail.com>
* sim-options.c: Include "config.h".
Include <stdio.h>.
* sim-watch.c: Include "config.h".
Include <stdio.h>.
* hw-device.c: Include <string.h>.
* hw-events.c: Include <string.h>.
* hw-handles.c: Include <stdlib.h>.
* sim-fpu.c: Include <stdlib.h>.
2019-03-28 Stafford Horne <shorne@gmail.com>
* Make-common.in (sim-arange_h): Remove sim-arange.c
* sim-arange.c: Remove SIM_ARANGE_C.
Add ifdef for _SIM_ARANGE_C_.
Include "sim-arange.h".
Remove include for unused "sim-assert.h".
Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
(sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
(sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
(sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
INLINE_SIM_ARANGE.
* sim-arange.h (sim_addr_range_add): Declare as
INLINE_SIM_ARANGE.
(sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
(sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
Remove definition of SIM_ARANGE_INLINE.
Remove [HAVE_INLINE].
Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
* sim-base.h: Include "sim-arange.h"
* sim-basics.h: Remove include of "sim-arange.h"
* sim-inline.c: Include "sim-arange.c"
* sim-inline.h: Define INLINE_SIM_ARANGE.
Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
2019-01-26 Tom Tromey <tom@tromey.com>
* Make-common.in (version.c): Use sim's create-version.sh.
* create-version.sh: New file.
2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
* sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
* sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
* sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
this point, it should have already been set in cb_syscall.
2018-10-05 Stafford Horne <shorne@gmail.com>
* cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
(ADDOFDI): New function, add overflow flag DI variant.
(SUBCFDI): New function, subtract carry flag DI variant.
(SUBOFDI): New function, subtract overflow flag DI variant.
2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
* sim-core.h (sim_cpu_core): Rename cpu_core.xor to
cpu_core.byte_xor.
* sim-core.c (sim_core_set_xor): Likewise.
(sim_core_xor_read_buffer): Likewise.
(sim_core_xor_write_buffer): Likewise.
2017-12-12 Peter Gavin <pgavin@gmail.com>
Stafford Horne <shorne@gmail.com>
* cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
flag.
(MUL1OFSI): New function, 1's complement overflow flag.
2017-12-12 Peter Gavin <pgavin@gmail.com>
Stafford Horne <shorne@gmail.com>
* cgen-accfp.c (remsf, remdf): New function.
(cgen_init_accurate_fpu): Add remsf and remdf.
* cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
* sim-fpu.c (sim_fpu_rem): New function.
* sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
(sim_fpu_rem): New function.
(sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
2017-09-06 John Baldwin <jhb@FreeBSD.org>
* acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
environment.
2017-05-24 Yao Qi <yao.qi@linaro.org>
* sim-trace.c (trace_disasm): Caller update.
2016-08-15 Mike Frysinger <vapier@gentoo.org>
* sim-base.h (sim_state_base): Add prog_syms_count.
(STATE_PROG_SYMS_COUNT): Define.
* sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
(trace_load_symbols): New function.
(trace_sym_value): Likewise.
(trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
loading logic with a call to trace_load_symbols.
* sim-trace.h (trace_load_symbols, trace_sym_value): New
prototypes.
2016-08-13 Mike Frysinger <vapier@gentoo.org>
* cgen-types.h (mode_names): Mark const.
* cgen-utils.c (mode_names): Likewise.
2016-08-13 Mike Frysinger <vapier@gentoo.org>
* cgen-defs.h (struct cgen_state): Delete argv and envp.
(STATE_ARGV, STATE_ENVP): Delete.
2016-02-04 Nick Clifton <nickc@redhat.com>
* cgen-scache.c (scache_option_handler): Prevent possible
undefined behaviour computing the size of the scache by using
unsigned integers instead of signed integers.
2016-01-17 Joel Brobecker <brobecker@adacore.com>
* sim-fpu.c: Minor comment fixes throughout.
2016-01-17 Joel Brobecker <brobecker@adacore.com>
* sim-fpu.c (print_bits): Minor reformatting (no code change).
(sim_fpu_map): Likewise.
2016-01-11 Mike Frysinger <vapier@gentoo.org>
* sim-config.c (print_sim_config): Drop extra whitespace before =
in output for byte order, stdio, and msb settings.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
sim-stdio, sim-trace, and sim-profile.
(SIM_AC_OPTION_ENVIRONMENT): Likewise.
(SIM_AC_OPTION_ASSERT): Likewise.
(SIM_AC_OPTION_SMP): Likewise.
(SIM_AC_OPTION_XOR_ENDIAN): Likewise.
* configure: Regenerate.
* Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
(CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
$(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
* sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
WITH_ENVIRONMENT & USER_ENVIRONMENT.
* sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
WITH_ASSERT, WITH_STDIO): Delete.
* sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
check.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
* configure: Regenerate.
* Make-common.in (SIM_PACKAGES): Delete.
(CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
sim_link_links.
(SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
* gentmap.c: Change targ-vals.def include to nltvals.def.
* Make-common.in (gentmap): Change targ-vals.def to
$(srccom)/nltvals.def.
(distclean): Delete rm -f targ-vals.def.
* Makefile.in: Update comment.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
(SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
and --enable-sim-stdcall and sim_stdcall.
* configure: Regenerate.
* Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
(CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
* sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
* sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
(REGPARM_*): Delete all regparm defines and their use.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
* Make-common.in (SIM_CFLAGS): Delete.
(CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
* Makefile.in: Likewise.
2016-01-09 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
* acinclude.m4 (SIM_AC_COMMON): ... here.
* aclocal.m4, configure: Regenerate.
* config.in: Delete file.
* callback.c: Change cconfig.h include to config.h.
* dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
syscall.c: Likewise.
* Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
* Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
2016-01-06 Mike Frysinger <vapier@gentoo.org>
* sim-config.c (print_sim_config): Delete sim_io_printf of version,
date, and time information.
2016-01-06 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (sim_parse_args): Mark argv array const.
* sim-options.h (sim_parse_args): Likewise.
2016-01-05 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c: Include dis-asm.h.
(OPTION_TRACE_DISASM): New enum.
(trace_options): Add trace-disasm flag.
(trace_option_handler): Handle OPTION_TRACE_DISASM.
(trace_idx_to_str): Handle TRACE_DISASM_IDX.
(dis_read, dis_printf, trace_disasm): New functions.
* sim-trace.h: Include dis-asm.h.
(TRACE_INSN_IDX): Clarify comment.
(TRACE_DISASM_IDX): New enum.
(TRACE_disasm): New define.
(WITH_TRACE_DISASM_P): New define.
(struct _trace_data): Add dis_bfd, disassembler, and dis_info.
(STRACE_DISASM_P): New define.
(TRACE_DISASM_P): Likewise.
(TRACE_DISASM_P): Likewise.
(TRACE_DISASM): Likewise.
(trace_disasm): New function.
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* sim-utils.c (sim_state_free): Change to STATE_MAGIC.
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* cgen-scache.c (MAX): Delete.
(scache_init): Change MAX to max.
* cgen-trace.c (min): Delete.
* cgen-utils.c (min): Delete.
* sim-basics.h [!min] (min): Define.
[!max] (max): Define.
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (sim_parse_args): Tweak getopt error message.
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (sim-bswap): Delete.
* configure: Regenerate.
* Make-common.in (SIM_BSWAP): Delete.
(CONFIG_CFLAGS): Delete $(SIM_BSWAP).
* sim-config.h (htonl, ntohl): Delete.
(WITH_BSWAP): Delete.
2016-01-03 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (sim_parse_args): Declare local save_opterr. Save
opterr state to it before calling getopt_long and restore afterwards.
Set opterr to 0. When optc is '?', call sim_io_eprintf.
2016-01-03 Mike Frysinger <vapier@gentoo.org>
* hw-device.h (device): Delete commented typedef.
* sim-basics.h (device): Delete typedef.
2016-01-03 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (sim_parse_args): Replace for loop with a call
to countargv.
2016-01-03 Mike Frysinger <vapier@gentoo.org>
* nrun.c (myname): Mark const.
(main): Mark name const. Replace myname parsing loop with a
call to lbasename.
2016-01-03 Mike Frysinger <vapier@gentoo.org>
(CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
* acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
(SIM_AC_OPTION_HOSTENDIAN): Delete.
* config.in, configure: Regenerate.
* Make-common.in (SIM_HOSTENDIAN): Delete.
* sim-config.c (current_host_byte_order): Delete.
(sim_config): Delete current_host_byte_order assignments and
CURRENT_HOST_BYTE_ORDER checks.
(print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
* sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
(HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
(current_host_byte_order): Delete.
(CURRENT_HOST_BYTE_ORDER): Likewise.
* sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
(HOST_BYTE_ORDER): ... this.
(sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
HOST_BYTE_ORDER.
(sim_endian_join_16): Likewise.
* sim-n-core.h (sim_core_read_misaligned_N): Change
CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
(sim_core_write_misaligned_N): Likewise.
* sim-n-endian.h (endian_t2h_N): Likewise.
(endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
endian_le2h_N): Likewise.
(offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
2016-01-02 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
BFD_ENDIAN_UNKNOWN.
(SIM_AC_OPTION_HOSTENDIAN): Likewise.
* cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
(SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
* nrun.c (main): Likewise.
* sim-config.c (current_host_byte_order): Change type to enum
bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
(current_target_byte_order): Likewise.
(config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
BFD_ENDIAN_UNKNOWN.
(sim_config): Change prefered_target_byte_order type to enum
bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
* sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
Delete all the various arch/OS endian includes & defines.
(current_host_byte_order): Change type to enum bfd_endian.
(current_target_byte_order): Likewise.
(CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
(CURRENT_TARGET_BYTE_ORDER): Likewise.
* sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
* sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
BFD_ENDIAN_UNKNOWN.
(sim_events_watch_core): Likewise.
* sim-events.h: Likewise.
* sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
BFD_ENDIAN_BIG.
(sim_core_write_misaligned_N): Likewise.
* sim-n-endian.h (endian_h2be_N): Likewise.
(endian_be2h_N): Likewise.
(endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
(offset_N): Likewise.
* sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
2016-01-02 Mike Frysinger <vapier@gentoo.org>
* cgen-defs.h (current_state): Delete.
* sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
* sim-utils.c (current_state): Delete.
2015-12-30 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
to use lbasename.
2015-12-27 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
2015-12-26 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
* config.in, configure: Regenerate.
* Make-common.in (sim-basics_h): Delete tconfig.h.
(distclean): Likewise.
* sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
(new_sim_core_mapping): Delete WITH_HW and device *device.
(sim_core_map_attach, sim_core_attach): Likewise.
(sim_core_read_buffer): Delete WITH_DEVICES logic.
(sim_core_write_buffer): Likewise.
* sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
*device.
(sim_core_attach): Likewise.
(device_io_read_buffer, device_io_write_buffer): Delete.
* sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
(sim_core_write_aligned_N): Likewise.
* tconfig.h: Delete file.
2015-12-26 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
Call sim_cpu_hw_io_read_buffer if cpu is valid.
(sim_core_write_buffer): Move cia decl to top of func. Call
sim_cpu_hw_io_write_buffer if cpu is valid.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* hw-properties.c (hw_find_ihandle_runtime_property): Delete
HW_TRACE call.
(hw_find_integer_property): Likewise.
(hw_find_integer_array_property): Likewise.
(hw_add_duplicate_property): Likewise.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* sim-config.h (WITH_ENGINE): Delete.
* sim-module.c (modules): Always include sim_engine_install.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
* cgen-types.h (SIM_HAVE_MODEL): Delete.
* sim-base.h: Always include sim-model.h.
* sim-config.h (WITH_DEFAULT_MODEL): Delete.
* sim-cpu.h (sim_cpu_base): Always declare mach/model members.
* sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
[!WITH_MODEL_P] (sim_machs): Define.
* sim-model.h: Add some developer docs.
[!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
(WITH_MODEL_P): Define.
* sim-module.c (modules): Always include sim_model_install.
* sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
* sim-model.c: Likewise.
* sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
SIM_MACH_IMP_PROPERTIES
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (device_error): Delete.
(sim_core_map_attach): Delete calls to device_error.
(sim_core_attach): Likewise.
* sim-core.h (device_error): Delete.
* sim-n-core.h (sim_core_read_aligned_N): Change device_error call
to sim_engine_abort.
(sim_core_write_aligned_N): Likewise.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* sim-config.h (WITH_CALLBACK_MEMORY): Delete.
* sim-core.c (sim_core_write_buffer): Likewise.
* sim-n-core.h (sim_core_read_aligned_N): Likewise.
(sim_core_write_aligned_N): Likewise.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* dv-pal.c: Include config.h and sim-main.h.
(hw_pal_io_read_buffer): Always call CPU_INDEX.
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (standard_options): Always enable load-lma and
load-vma options.
(standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (MODULE_LIST): Delete.
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
Move to h8300/compile.c.
[SIM_H8300] (standard_options): Likewise.
(standard_option_handler): Likewise.
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-module.c [WITH_WATCHPOINTS] (modules): Always call
sim_watchpoint_install.
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
* sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
sim_memopt_install.
* sim-options.c (OPTION_MEM_SIZE): Delete.
[SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
(standard_option_handler): Likewise.
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* tconfig.h (SIM_HAVE_SIMCACHE): Delete.
2015-11-21 Mike Frysinger <vapier@gentoo.org>
PR sim/18762
* Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
2015-11-21 Mike Frysinger <vapier@gentoo.org>
PR sim/19273
* sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
vasprintf, and va_end together. Check ret after va_end call.
2015-11-21 Mike Frysinger <vapier@gentoo.org>
* sim-types.h (SIM_PRI_TB): Define.
(PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
(PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
(PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
(PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
2015-11-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (WITH_MODULO_MEMORY): Delete.
* sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
(sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
(sim_core_translate): Likewise.
* sim-core.h: Delete mention of WITH_MODULO_MEMORY.
2015-11-16 Mike Frysinger <vapier@gentoo.org>
* sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
(cgen_cpu_close): Change to XCONCAT2.
2015-11-15 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
and sim-stop.o.
2015-11-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
* sim-close.c: New file.
2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
Ali Lown <ali.lown@imgtec.com>
* sim-bits.h (EXTEND6): New macro.
(EXTEND12): New macro.
(EXTEND25): New macro.
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (trace_one_insn): Delete.
* sim-trace.h (trace_one_insn): Delete.
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (debug_printf): Rename to ...
(sim_debug_printf): ... this.
* sim-trace.h (debug_printf): Delete define.
(debug_printf): Rename to ...
(sim_debug_printf): ... this.
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (OPTION_TRACE_REGISTER): New enum.
(trace_options): Add trace-register option.
(trace_option_handler): Handle OPTION_TRACE_REGISTER case.
(trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
* sim-trace.h (TRACE_REGISTER_IDX): New enum.
(TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
TRACE_REGISTER_P, TRACE_REGISTER): Define.
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
STRACE_DEBUG): Define.
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (trace_options): Update help text for trace-alu,
trace-fpu, trace-vpu, and trace-semantics.
* sim-trace.h (TRACE_ALU_IDX): Update comment text.
(TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
2015-06-24 Mike Frysinger <vapier@gentoo.org>
* sim-assert.h (SIM_FILTER_PATH): Delete.
[!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
(SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
[!ASSERT, WITH_ASSERT]: Include libiberty.h.
(ASSERT): Replace SIM_FILTER_PATH with lbasename.
* sim-events.c: Include libiberty.h.
(ETRACE): Replace SIM_FILTER_PATH with lbasename.
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
(AC_ARG_ENABLE(sim-cflags)): Likewise.
(AC_ARG_ENABLE(sim-debug)): Likewise.
(AC_ARG_ENABLE(sim-stdio)): Likewise.
(AC_ARG_ENABLE(sim-trace)): Likewise.
(AC_ARG_ENABLE(sim-profile)): Likewise.
(AC_ARG_ENABLE(sim-environment)): Likewise.
(AC_ARG_ENABLE(sim-alignment)): Likewise.
(AC_ARG_ENABLE(sim-assert)): Likewise.
(AC_ARG_ENABLE(sim-bitsize)): Likewise.
(AC_ARG_ENABLE(sim-endian)): Likewise.
(AC_ARG_ENABLE(sim-hostendian)): Likewise.
(AC_ARG_ENABLE(sim-float)): Likewise.
(AC_ARG_ENABLE(sim-scache)): Likewise.
(AC_ARG_ENABLE(sim-default-model)): Likewise.
(AC_ARG_ENABLE(sim-inline)): Likewise.
(AC_ARG_ENABLE(sim-packages)): Likewise.
(AC_ARG_ENABLE(sim-regparm)): Likewise.
(AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
(AC_ARG_ENABLE(sim-smp)): Likewise.
(AC_ARG_ENABLE(sim-stdcall)): Likewise.
(AC_ARG_ENABLE(sim-xor-endian)): Likewise.
(AC_ARG_ENABLE(cgen-maint)): Likewise.
* configure: Regenerate.
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c [!__STDC__]: Delete.
* sim-trace.h [!__STDC__]: Likewise.
2015-06-21 Mike Frysinger <vapier@gentoo.org>
* sim-model.c (sim_model_init): Assert model is not NULL.
2015-06-21 Mike Frysinger <vapier@gentoo.org>
* sim-types.h: Move SIM_TYPES_H define to top of file. Include
stdint.h. Replace all signed/unsigned typedefs with int#_t and
uint#_t.
2015-06-21 Mike Frysinger <vapier@gentoo.org>
* sim-alu.h (_SIM_ALU_H_): Rename to ...
(SIM_ALU_H): ... this.
* sim-assert.h (_SIM_ASSERT_H_): Rename to ...
(SIM_ASSERT_H): ... this.
* sim-basics.h (_SIM_BASICS_H_): Rename to ...
(SIM_BASICS_H): ... this.
* sim-bits.h (_SIM_BITS_H_): Rename to ...
(SIM_BITS_H): ... this.
* sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
(SIM_ENDIAN_H): ... this.
2015-06-18 Mike Frysinger <vapier@gentoo.org>
* sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
constant string.
2015-06-18 Mike Frysinger <vapier@gentoo.org>
* callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
m for sentinel testing.
2015-06-17 Mike Frysinger <vapier@gentoo.org>
* sim-syscall.c: Include errno.h and targ-vals.h.
(sim_syscall_multi, sim_syscall): Define.
* sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
* syscall.c (cb_syscall): Extend comment.
2015-06-17 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
* sim-syscall.c: New file.
* sim-syscall.h: New file.
2015-06-17 Mike Frysinger <vapier@gentoo.org>
* callback.c (cb_target_map_entry, cb_host_map_entry): Define.
(cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
(cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
(cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
Define.
* gentmap.c (gen_targ_map_c): Output name field.
2015-06-12 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Change configure.in to configure.ac.
* sim-config.h: Likewise.
2015-06-12 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (sim-trace): Delete -DTRACE flags.
* configure: Regenerate.
2015-06-12 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
TRACE_DEBUG): Define.
2015-06-12 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
* sim-trace.c (trace_option_handler): Likewise.
* sim-trace.h (WITH_TRACE_ANY_P): Define.
(STRACE_ANY_P): Use WITH_TRACE_ANY_P.
(TRACE_ANY_P): Likewise.
2015-06-12 Mike Frysinger <vapier@gentoo.org>
* cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
CGEN_TRACE_INSN_FINI.
* cgen-trace.c: Rename trace_insn to cgen_trace_insn,
trace_result to cgen_trace_result, trace_insn_fini to
cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
and trace_extract to cgen_trace_extract.
* cgen-trace.h (trace_insn_init): Rename to ...
(cgen_trace_insn_init): ... this.
(trace_insn_fini): Rename to ...
(cgen_trace_insn_fini): ... this.
(trace_insn): Rename to ...
(cgen_trace_insn): ... this.
(trace_extract): Rename to ...
(cgen_trace_extract): ... this.
(trace_result): Rename to ...
(cgen_trace_result): ... this.
(TRACE_RESULT_P): Rename to ...
(CGEN_TRACE_RESULT_P): ... this.
(TRACE_INSN_INIT): Rename to ...
(CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
cgen_trace_insn_init.
(TRACE_INSN_FINI): Rename to ...
(CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
cgen_trace_insn_fini.
(TRACE_PRINTF): Rename to ...
(CGEN_TRACE_PRINTF): ... this.
(TRACE_INSN): Rename to ...
(CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
(TRACE_EXTRACT): Rename to ...
(CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
cgen_trace_extract.
(TRACE_RESULT): Rename to ...
(CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
* genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
TRACE_INSN to CGEN_TRACE_INSN.
(@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
2015-06-11 Mike Frysinger <vapier@gentoo.org>
* sim-events.c (ETRACE_P): Delete.
(ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
(update_time_from_event, sim_events_schedule_vtracef): Likewise.
* sim-events.h (struct _sim_events): Delete trace member.
* sim-trace.c (set_trace_option_mask): Delete trace_nr check and
always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
2015-06-11 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
2015-06-11 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
2015-06-11 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (WITH_TRACE_P): New define.
(WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
Redefine to use WITH_TRACE_P.
2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
* sim-events.c (sim_events_schedule_after_signal): Fix spelling
mistake in call to sim_engine_abort.
2015-04-29 Nick Clifton <nickc@redhat.com>
PR 18273
* sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
increasing parenthesis around casts to signed values.
2015-04-21 Mike Frysinger <vapier@gentoo.org>
* gennltvals.sh: Add mcore support.
* nltvals.def: Regenerate.
2015-04-21 Mike Frysinger <vapier@gentoo.org>
* cgen.sh: Add +x permissions.
* genmloop.sh: Likewise.
* gentvals.sh: Likewise.
* gennltvals.sh (newlibroot): New variable to hold the path to newlib.
Change all uses of srcroot for newlib to newlibroot.
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* sim-base.h (SIM_CPU): New typedef.
2015-04-18 Mike Frysinger <vapier@gentoo.org>
* cgen-engine.h (CIA_ADDR): Delete.
* sim-base.h: Update sim_cia example.
[!CIA_ADDR] (sim_cia): New typedef.
2015-04-17 Mike Frysinger <vapier@gentoo.org>
* cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
* sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
* sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
* sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
CIA_SET to CPU_PC_SET.
2015-04-15 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
* sim-main.h (STATE_CPU): Remove from comment and define.
2015-04-13 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
* configure: Regenerate.
2015-04-13 Mike Frysinger <vapier@gentoo.org>
* sim-options.c: Include version.h.
(OPTIONS_VERSION): New enum.
(standard_options): Add "version".
(standard_option_handler): Handle OPTIONS_VERSION.
2015-04-13 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (version.o): Change to using create-version.sh from gdb.
(create-version.sh): Delete.
2015-04-06 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
2015-04-01 Mike Frysinger <vapier@gentoo.org>
* run-sim.h, run.c: Delete.
* tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
2015-03-31 Mike Frysinger <vapier@gentoo.org>
* config.in, configure: Regenerate.
* Make-common.in (CSEARCH): Add $(ZLIBINC).
(ZLIB, ZLIBINC): Define.
(BFD_LIB): Add $(ZLIB).
2015-03-31 Mike Frysinger <vapier@gentoo.org>
* cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
* cgen-ops.h (SEMOPS_INLINE): Likewise.
2015-03-29 Mike Frysinger <vapier@gentoo.org>
* sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
(sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
* sim-inline.h (INLINE2): Define to gnu_inline when available.
2015-03-24 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
usage of STATE_WATCHPOINTS.
(profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
2015-03-24 Mike Frysinger <vapier@gentoo.org>
* tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
2015-03-24 Mike Frysinger <vapier@gentoo.org>
* tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
2015-03-24 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
of enable_sim_hardware to AC_ARG_ENABLE.
2015-03-23 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
Add dv-sockser.o to sim_hw_objs.
2015-03-23 Mike Frysinger <vapier@gentoo.org>
* dv-sockser.c: Include config.h.
* dv-sockser.h: Include sim-inline.h.
[HAVE_DV_SOCKSER]: Move all prototypes here.
[!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
dv_sockser_write_buffer, dv_sockser_read): New stub functions.
2015-03-16 Mike Frysinger <vapier@gentoo.org>
* gentmap.c, run.c: Convert old style prototypes.
2015-03-16 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
symlinking tconfig.h to tconfig.in.
* config.in, configure: Regenerate.
* nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
* tconfig.in: Rename file ...
* tconfig.h: ... here.
2015-03-15 Mike Frysinger <vapier@gentoo.org>
* dv-socker.h (dv_sockser_install): Declare.
* sim-module.c: Include config.h.
[HAVE_DV_SOCKSER]: Include dv-sockser.h.
(modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
* sim-module.h: Include gdb/remote-sim.h.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
(sim-inline.c): Delete rule.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
* run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
[!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
[!ASSERT, WITH_ASSERT]: Likewise.
* sim-endian.c: Delete sim-io.h include.
2015-02-19 Mike Frysinger <vapier@gentoo.org>
* run-sim.h (sim_kill): Delete unused prototype.
2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
* gentmap.c: Include "string.h".
2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
* sim-options.c (sim_args_command): Call freeargv() when failure
occurs.
2015-01-07 Joel Brobecker <brobecker@adacore.com>
* aclocal.m4, configure: Regenerate using automake 1.11.1.
2014-12-03 Joel Brobecker <brobecker@adacore.com>
* sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
callbacks following renaming in callback.h.
* syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
callback by call to "to_lstat" callback
2014-08-28 Gary Benson <gbenson@redhat.com>
* sim-trace.h (debug_printf): New define.
2014-08-19 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
2014-08-15 Roland McGrath <mcgrathr@google.com>
* configure: Regenerate.
* config.in: Regenerate.
2014-03-10 Mike Frysinger <vapier@gentoo.org>
* sim-command.c (sim_do_command): Add const to cmd.
* sim-options.c (sim_args_command): Add const to cmd.
* sim-options.h (sim_args_command): Add const to cmd.
2014-03-05 Mike Frysinger <vapier@gentoo.org>
* sim-hload.c (sim_load): Add const to prog.
* sim-load.c (sim_load_file): Likewise.
* sim-utils.c (sim_analyze_program): Likewise.
* sim-utils.h (sim_analyze_program): Likewise.
(sim_load_file): Likewise.
2014-03-04 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
* callback.c (system): Delete unused prototype.
(os_init): Likewise.
(os_shutdown): Likewise.
(os_unlink): Likewise.
(os_time): Likewise.
(os_system): Likewise.
(os_rename): Likewise.
(os_write_stdout): Likewise.
(os_flush_stdout): Likewise.
(os_write_stderr): Likewise.
(os_flush_stderr): Likewise.
(os_write): Likewise.
(os_read_stdin): Likewise.
(os_read): Likewise.
(os_open): Likewise.
(os_lseek): Likewise.
(os_isatty): Likewise.
(os_get_errno): Likewise.
(os_close): Likewise.
(os_vprintf_filtered): Likewise.
(os_evprintf_filtered): Likewise.
(os_error): Likewise.
(fdmap): Likewise.
(fdbad): Likewise.
(wrap): Likewise.
(wrap): Change to new style prototype.
(fdbad): Likewise.
(fdmap): Likewise.
(os_close): Likewise.
(os_poll_quit): Likewise.
(os_get_errno): Likewise.
(os_isatty): Likewise.
(os_lseek): Likewise.
(os_open): Likewise.
(os_read): Likewise.
(os_read_stdin): Likewise.
(os_write): Likewise.
(os_write_stdout): Likewise.
(os_flush_stdout): Likewise.
(os_write_stderr): Likewise.
(os_flush_stderr): Likewise.
(os_rename): Likewise.
(os_system): Likewise.
(os_time): Likewise.
(os_unlink): Likewise.
(os_stat): Likewise.
(os_fstat): Likewise.
(os_lstat): Likewise.
(os_ftruncate): Likewise.
(os_truncate): Likewise.
(os_pipe): Likewise.
(os_pipe_empty): Likewise.
(os_pipe_nonempty): Likewise.
(os_shutdown): Likewise.
(os_init): Likewise.
(cb_read_target_syscall_maps): Likewise.
(cb_target_to_host_syscall): Likewise.
(cb_host_to_target_errno): Likewise.
(cb_target_to_host_open): Likewise.
(cb_store_target_endian): Likewise.
(cb_host_to_target_stat): Likewise.
* sim-hload.c (sim_load): Change to new style prototype.
* sim-load.c (sim_load_file): Change to new style prototype.
(report_transfer_performance): Likewise.
(xprintf_bfd_vma): Likewise.
* syscall.c (cb_get_string): Change to new style prototype.
(get_path): Likewise.
(cb_syscall): Likewise.
2013-10-15 Hans-Peter Nilsson <hp@axis.com>
* create-version.sh: Align parameters to match those of
../../gdb/common/create-version.sh.
* Make-common.in (srcsim): New variable.
(version.c): Adjust call to create-version.sh as per above.
2013-09-23 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
2013-09-03 Mike Stump <mikestump@comcast.net>
* sim-options.c (complete_option_list): Mark text and word const.
2013-06-28 Tom Tromey <tromey@redhat.com>
* Make-common.in (version.c): Use version.in, not
common/version.in.
* create-version.sh: Likewise.
2013-06-24 Joel Brobecker <brobecker@adacore.com>
* create-version.sh: New script. Adapted from
gdb/commong/create-version.sh.
* Make-common.in (version.c): Update rule dependencies,
and re-implement using create-version.sh.
2013-06-21 Nick Clifton <nickc@redhat.com>
* gennltvals.sh: Add msp430 support.
* nltvals.def: Regenerate.
2013-06-03 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
* aclocal.m4, configure: Regenerate.
2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
PR build/15414:
* acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
-Wformat-nonliteral with -Wno-format.
2013-03-26 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Regenerate.
2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
which do not support dv-sockser.o. Add always as option to
first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
is always required to be enabled by simulator.
2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
* gennltvals.sh: Use libgloss/syscall.h for cr16.
* nltvals.def: Regenerate.
2012-06-16 Joel Brobecker <brobecker@adacore.com>
* acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
* config.in, configure: Regenerate.
2012-05-24 Pedro Alves <palves@redhat.com>
* sim-signal.h (sim_signal_to_target): Rename to ...
(sim_signal_to_gdb_signal): ... this.
* sim-signal.c (sim_signal_to_target): Rename to ...
(sim_signal_to_gdb_signal): ... this.
* sim-reason.c (sim_stop_reason): Adjust to rename.
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205
Replace target_signal with gdb_signal throughout.
2012-05-18 Nick Clifton <nickc@redhat.com>
PR 14072
* callback.c: Include config.h before system header files.
* cgen-trace.c: Likewise.
* cgen-utils.c: Likewise.
* gentmap.c: Likewise.
2012-04-02 Mike Frysinger <vapier@gentoo.org>
* hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
2012-03-28 Rathish C <rathish.c@kpitcummins.com>
* sim-trace.c: Update the function prototype of save_data_size.
Move the enum data_fmt from here...
* sim-trace.h: ...to here.
Add function prototype of save_data.
2012-03-25 Mike Frysinger <vapier@gentoo.org>
* sim-core.h (sim_core_trans_addr): Add prototype.
2012-03-24 Hans-Peter Nilsson <hp@axis.com>
* nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
missing in last change.
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
* nrun.c: Include string.h/strings.h.
* aclocal.m4, config.in, configure: Regenerate.
2012-03-22 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
out -Werror initialization.
2012-03-19 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (TAGS): Change a-z to [:lower:].
* acinclude.m4 (sim-trace): Likewise.
* gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
Change A-Za-z0-9 to [:alnum:].
2012-03-18 Mike Frysinger <vapier@gentoo.org>
* nrun.c (main): Display strsignal of sigrc.
2012-01-06 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (abs_srcdir): Declare.
(srcroot): Define in terms of abs_srcdir.
(headers): Change srcdir to abs_srcdir.
2012-01-02 Joel Brobecker <brobecker@adacore.com>
* dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
header.
2011-12-19 Joel Brobecker <brobecker@adacore.com>
* Make-common.in (hw-config.h): Work around bug in Solaris 2.8
system bourne shell.
2011-12-03 Mike Frysinger <vapier@gentoo.org>
* syscall.c (cb_get_string): Rename from "get_string".
(get_path): Rename get_string call to cb_get_string.
2011-12-03 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (VPATH): Add $(srccom).
(DEP): Delete.
(DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
POSTCOMPILE): New variables.
(.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
Include dependency files, when using GNU Make. Delete all
dependency-only rules.
* aclocal.m4: Include ../../config/depstand.m4. Call
ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
(MAKE, GMAKE): New substs.
2011-11-07 Mike Frysinger <vapier@gentoo.org>
PR sim/13161
* configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
* configure, config.in: Regenerate.
* dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
2011-10-19 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
2011-10-18 John Wehle <john@feith.com> (tiny patch)
* sim-profile.c (profile_info): Only print the title once.
2011-10-17 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Rename from aclocal.m4.
* aclocal.m4: Regenerate.
2011-10-17 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4: Change AC_PREREQ comment to 2.64.
* common.m4: Delete.
* configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
call and common.m4 include with SIM_AC_COMMON(cconfig.h).
* configure: Regenerate.
2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
* sim-alu.h (ALU32_AND): Clear carry flag.
(ALU32_AND): Clear carry flag.
2011-10-09 Mike Frysinger <vapier@gentoo.org>
* dv-cfi.c: Include stdbool.h.
2011-10-09 Mike Frysinger <vapier@gentoo.org>
* dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
2011-10-04 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
2011-07-12 Mike Frysinger <vapier@gentoo.org>
* sim-command.c: Include sim-options.h.
2011-07-12 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4: Move sinclude comment after AC_INIT comment.
2011-07-12 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
Delete direct call to AC_PROG_CC.
2011-07-05 Mike Frysinger <vapier@gentoo.org>
* sim-command.c: New file.
* Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
(sim-command.o): New rule.
2011-05-27 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (standard_option_handler): Remove arg[0] check
when freeing simulator_sysroot. Only strdup arg when arg[0] is
not an empty string, otherwise assign "" back to it.
2011-05-26 Mike Frysinger <vapier@gentoo.org>
* nltvals.def: Regenerate to include Blackfin syscalls again.
2011-05-25 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
(trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
(trace_option_handler): Handle OPTION_TRACE_SYSCALL.
(trace_idx_to_str): Likewise.
* sim-trace.h (TRACE_SYSCALL_IDX): New enum.
(TRACE_syscall): Define.
(WITH_TRACE_SYSCALL_P): Likewise.
(TRACE_SYSCALL_P): Likewise.
2011-05-23 Mike Frysinger <vapier@gentoo.org>
* dv-glue.c (hw_glue_finish): Move "name" to function scope and
remove now-unnecessary sub-scope for glue->type setting.
Check to see if the "reg" property exists before we use it, and
if it doesn't exist, error out for "glue" devices.
2011-05-23 Mike Frysinger <vapier@gentoo.org>
* dv-glue.c (hw_glue_finish): Set type to glue_or when name is
glue-or, and set type to glue_xor when name is glue-xor.
(hw_glue_port_event): Return immediately when type is glue_io
or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
and hw_port_event calls from glue_and to end of function.
2011-05-11 Mike Frysinger <vapier@gentoo.org>
* callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
around function arguments.
2011-04-14 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (complete_option_list, sim_complete_command):
New functions.
2011-04-02 Mike Frysinger <vapier@gentoo.org>
* dv-glue.c: Fix up style.
2011-04-02 Mike Frysinger <vapier@gentoo.org>
* hw-alloc.c (hw_alloc_data): Adjust brace.
* hw-base.c (hw_base_data): Likewise.
(generic_hw_unit_decode): Fix indentation.
* hw-device.h (_hw_unit, enum, hw): Adjust braces.
* hw-events.c (hw_event, hw_event_data): Likewise.
* hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
* hw-instances.c (hw_instance_data): Likewise.
* hw-instances.h (hw_instance): Likewise.
* hw-main.h (hw_descriptor, enum): Likewise.
* hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
* hw-ports.h (hw_port_descriptor): Likewise.
* hw-properties.c (hw_property_data): Likewise.
* hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
_range_property_spec, _reg_property_spec): Likewise.
* hw-tree.c (_name_specifier, printer): Likewise.
(split_device_specifier, parse_string_property, hw_tree_traverse,
print_size, print_reg_property, print_string, print_properties):
Fix indentation.
2011-03-29 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
* Make-common.in (dv-cfi.o): New rule.
* dv-cfi.c, dv-cfi.h: New files.
2011-03-21 Kevin Buettner <kevinb@redhat.com>
* gennltvals.sh: Search sys/_default_fcntl.h, in addition to
fcntl.h and sys/fcntl.h, for constants.
* nltvals.def: Regenerate.
* sim-io.c (sim_io_stat, sim_io_fstat): New functions.
* sim-io.h (sys/types.h, sys/stat.h): Include.
(sim_io_stat, sim_io_fstat): Declare.
2011-03-14 Mike Frysinger <vapier@gentoo.org>
* callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
syscall.c: Trim trailing whitespace.
2011-03-05 Mike Frysinger <vapier@gentoo.org>
* gennltvals.sh: Handle bfin targets.
* nltvals.def: Regenerate.
2011-02-25 Kevin Buettner <kevinb@redhat.com>
* callback.c (fdbad): Return EBADF rather than EINVAL for bad
file descriptors.
2011-02-14 Mike Frysinger <vapier@gentoo.org>
* hw-alloc.c (hw_alloc_data): Delete zalloc_p.
(hw_zalloc, hw_malloc): Delete zalloc_p reference.
(hw_free): Drop zfree logic and always call free.
* hw-base.c (hw_delete): Change zfree to free.
* hw-handles.c (hw_handle_remove_ihandle): Likewise.
(hw_handle_remove_phandle): Likewise.
* hw-instances.c (hw_instance_delete): Likewise.
* hw-tree.c (parse_reg_property): Likewise.
(parse_ranges_property): Likewise.
(parse_string_property): Likewise.
* sim-core.c (sim_core_uninstall): Likewise.
* sim-cpu.c (sim_cpu_free_all): Likewise.
* sim-hw.c (sim_hw_uninstall): Likewise.
* sim-memopt.c (do_memopt_delete): Likewise.
(sim_memory_uninstall): Likewise.
* sim-module.c (sim_module_uninstall): Likewise.
* sim-options.c (sim_parse_args): Likewise.
* sim-profile.c (profile_pc_cleanup): Likewise.
(profile_uninstall): Likewise.
* sim-watch.c (do_watchpoint_delete): Likewise.
* sim-utils.c (zfree): Delete.
(sim_state_free): Change zfree to free.
* sim-utils.h (zfree): Delete.
2011-02-13 Mike Frysinger <vapier@gentoo.org>
* sim-events.h (_sim_events.time_from_event): Change type to signed64.
2011-01-12 Mike Frysinger <vapier@gentoo.org>
* sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
2011-01-12 Mike Frysinger <vapier@gentoo.org>
* sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
fails.
* sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
when asprintf fails.
* sim-utils.c (sim_do_commandf): Issue an error and return when
asprintf fails.
* sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
asprintf fails.
2011-01-11 Mike Frysinger <vapier@gentoo.org>
* sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
bytes has been calculated and when mmap_next_fd is valid and
nr_bytes is 0.
(memory_option_handler): Allow missing size when mmap_next_fd is
valid.
2011-01-10 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
not empty, and always append $3 to $hardware.
2011-01-10 Mike Frysinger <vapier@gentoo.org>
* hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
* sim-hw.h (sim_hw_abort): Likewise.
2011-01-05 Mike Frysinger <vapier@gentoo.org>
* sim-load.c (sim_load_file): Change buffer type to unsigned char *.
2011-01-05 Joel Brobecker <brobecker@adacore.com>
* run.1: Copyright year update.
2010-12-28 Mike Frysinger <vapier@gentoo.org>
* hw-alloc.h (HW_NALLOC): Define.
010-12-28 Mike Frysinger <vapier@gentoo.org>
* hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
2010-12-15 Mike Frysinger <vapier@gentoo.org>
* sim-memopt.c (OPTION_MAP_INFO): Define.
(memory_options): Handle --map-info.
(memory_option_handler): Handle OPTION_MAP_INFO.
2010-11-22 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
PROFILE_INSN_COUNT): Add stubs when profile is disabled.
2010-11-22 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (WITH_HW): Add device casts to device_error,
device_io_read_buffer, and device_io_write_buffer.
2010-11-16 Mike Frysinger <vapier@gentoo.org>
* dv-sockser.c (dv_sockser_write_buffer): New function.
(dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
* dv-sockser.h (dv_sockser_write_buffer): New prototype.
2010-10-07 Hans-Peter Nilsson <hp@axis.com>
* callback.c (os_lseek): Call wrap on lseek result.
2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
* dv-sockser.c (dv_sockser_init): Check error return from socket()
call by its equality to -1 not by it being negative.
(connected_p): Likewise for accept() call.
2010-04-23 Mike Frysinger <vapier@gentoo.org>
* sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
2010-04-21 Mike Frysinger <vapier@gentoo.org>
* profile.c (sim_profile_print_bar): Add cpu argument.
2010-04-21 Mike Frysinger <vapier@gentoo.org>
* sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
2010-04-21 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (profile_vprintf, profile_printf): New functions.
(profile_print_pc): Convert sim_io_printf to profile_printf.
(profile_print_insn): Likewise.
(profile_print_memory): Likewise.
(profile_print_core): Likewise.
(profile_print_model): Likewise.
(sim_profile_print_bar): Likewise.
(profile_print_speed): Likewise.
(profile_print_addr_ranges): Likewise.
(profile_info): Likewise.
* sim-profile.h (sim_profile_print_bar): Add cpu argument.
2010-04-19 Mike Frysinger <vapier@gentoo.org>
* sim-model.c (OPTION_MODEL): Convert to enum.
(OPTION_MODEL_INFO): New enum.
(model_options): Add model-info/info-model entries.
(model_option_handler): Handle OPTION_MODEL_INFO.
2010-04-13 Mike Frysinger <vapier@gentoo.org>
* dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
* dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
initially.
2010-04-13 Mike Frysinger <vapier@gentoo.org>
* sim-hrw.c (sim_write): Add const to buf arg.
* sim-utils.h (sim_write_fn): Likewise.
2010-04-12 Mike Frysinger <vapier@gentoo.org>
* sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
defines.
2010-04-12 Mike Frysinger <vapier@gentoo.org>
* dv-core.c (dv_core_descriptor): Add NULL initializer.
* dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
* dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
* dv-sockser.c (sockser_options): Likewise.
* hw-ports.c (empty_hw_ports): Likewise.
* sim-hw.c (hw_options): Likewise.
* sim-model.c (model_options): Likewise.
* sim-options.c (standard_options): Likewise.
* sim-profile.c (profile_options): Likewise.
* sim-trace.c (trace_options): Likewise.
* sim-watch.c (watchpoint_options): Likewise.
2010-04-12 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
the local "arg_table" variable, and the xmalloc cast.
2010-04-10 Mike Frysinger <vapier@gentoo.org>
* sim-fpu.c (sim_fpu_print_status): Add const markings to local
"prefix" var.
(sim_fpu_print_func): Add const markings to format buffer.
2010-04-10 Mike Frysinger <vapier@gentoo.org>
* sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
2010-04-10 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (save_data): Add const markings to "buf" argument.
2010-04-10 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (standard_option_handler): Add const markings to
local "type" var.
2010-04-02 Mike Frysinger <vapier@gentoo.org>
* hw-ports.h: Fix spelling typos.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Check for socklen_t.
* configure, config.in: Regenerated.
* dv-sockser.c (connected_p): Change addrlen type to socklen_t.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
* sim-hw.c (hw_option_handler): Likewise.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-watch.c (watchpoint_type_to_str): Add const to return.
(interrupt_nr_to_str): Likewise.
(default_interrupt_names): Add const to pointer type.
(sim_watchpoint_install): Add const to prefix.
* sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-core.c (sim_core_read_buffer): Change raddr to address_word.
(sim_core_write_buffer): Likewise.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c (trace_option_handler): Move cpu_nr decl behind
the SIM_HAVE_ADDR_RANGE define.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-core.h (device_error): Add const to message, and add printf
format attribute.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (profile_print_addr_ranges): Wrap with the
SIM_HAVE_ADDR_RANGE define.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* dv-glue.c (hw_glue_ports): Swap static and const.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* nrun.c (usage): Use void in definition.
* sim-options.c (dup_arg_p): Convert old-style function definition.
(sim_parse_args): Likewise.
(sim_print_help): Likewise.
* sim-trace.c (set_trace_option_mask): Likewise.
(set_trace_option): Likewise.
* sim-utils.c (sim_analyze_program): Likewise.
(sim_elapsed_time_get): Likewise.
(sim_elapsed_time_since): Likewise.
2010-03-22 Mike Frysinger <vapier@gentoo.org>
* sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
(standard_options): Likewise.
(standard_option_handler): Likewise.
2010-03-16 Mike Frysinger <vapier@gentoo.org>
* hw-ports.c (TRACE): Delete.
* hw-properties.c (TRACE): Delete.
(hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
(hw_find_integer_property): Likewise.
(hw_find_integer_array_property): Likewise.
(hw_add_duplicate_property): Likewise.
2010-03-15 Mike Frysinger <vapier@gentoo.org>
* hw-properties.h (hw_add_boolean_property): Rename "bool" to
"boolean".
2010-02-04 Mike Frysinger <vapier@gentoo.org>
* sim-model.c: Include sim-model.h
2010-02-04 Mike Frysinger <vapier@gentoo.org>
* sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
& from the STATE_CPU() examples.
2010-01-24 Doug Evans <dje@sebabeach.org>
* cgen-accfp.c (fextsfdf): New arg how. All callers updated.
(ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
ufixsfsi): Ditto.
* cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
(struct cgen_fp_ops): Update signatures of floating point conversion
operations.
* Make-common.in (CGEN_SIM_DEPS): Define.
(CGEN_INCLUDE_DEPS): Use it.
(CGEN_MAIN_CPU_DEPS): Simplify.
2010-01-22 Doug Evans <dje@sebabeach.org>
* cgen-ops.h (SUBWORDXFSI): Fix word ordering.
(SUBWORDTFSI, JOINSIDI): Ditto.
2010-01-05 Doug Evans <dje@sebabeach.org>
* cgen-types.h (SETDI): Delete, unused.
2009-12-02 Doug Evans <dje@sebabeach.org>
* cgen-engine.h: Remove duplicated comment.
2009-11-23 Doug Evans <dje@sebabeach.org>
* cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
(EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
2009-11-22 Doug Evans <dje@sebabeach.org>
* cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
(EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
(EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
instead of CGEN_INSN_INT.
* cgen-trace.h (trace_extract): Add cast to fix warning.
2009-11-05 Doug Evans <dje@sebabeach.org>
* cgen-mem.h (DECLARE_GETT): Don't inline.
(DECLARE_SETT): Ditto.
2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* sim-inline.h: Fix spelling error.
2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
* Make-common.in: Add datarootdir.
2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
(SIM_CHECK_MEMBERS_1): Remove.
* configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
AC_CHECK_MEMBERS one.
* configure: Regenerate.
* aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
* configure: Regenerate.
2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* config.in: Regenerate.
* configure: Likewise.
* aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
definition of AC_CHECK_MEMBER.
* aclocal.m4: m4_include toplevel config/override.m4.
* configure: Regenerate.
2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in (datarootdir): New variable.
2009-07-07 Doug Evans <dje@sebabeach.org>
* Make-common.in (CPU_DIR): Define.
2009-07-06 Doug Evans <dje@sebabeach.org>
* Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
identifiers for file types rather than encoding internal
implementation details of cgen.sh.
(CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
* cgen.sh: Add support for parallel makes.
Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2009-05-18 Jon Beniston <jon@beniston.com>
* gennltvals.sh: Add lm32 target.
* nltvals.def: Add lm32 syscall definitions.
2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
Speed up simulator startup:
* sim-utils.c (zalloc): Use xcalloc.
2009-01-07 Hans-Peter Nilsson <hp@axis.com>
* cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
(MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
(SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
variant; UQI, UHI, USI, UDI, and cast the result to the signed
type, QI, HI, SI, DI.
* callback.c (os_error): Mark as being a noreturn function.
* sim-io.h (sim_io_error): Similar for sim_io_error.
2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal.m4: Fix underquoting of function names.
2008-10-21 Julian Brown <julian@codesourcery.com>
* Make-common.in (run$(EXEEXT)): Add LDFLAGS.
2008-07-11 Hans-Peter Nilsson <hp@axis.com>
* common.m4: Add test for libz and zlib.h.
* configure: Regenerate to track ../common/common.m4 changes.
* config.in: Ditto.
2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* aclocal.m4: Include ../../config/acx.m4.
* common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
* configure, config.in: Regenerate.
* Make-common.in (LIB_OBJS): Add version.o.
(version.c, version.o): New rules.
* run.c: Include version.h.
(usage): Add help parameter. Print output either to stdout or
stderr depending on that parameter.
(print_version): New.
(main): Check for --help and --version.
* run-sim.h (sim_target_display_usage): Add help parameter.
* version.h: New.
2008-04-14 Hans Kester <kester.hans@gmail.com>
* sim-signal.c: Define missing signals for _WIN32.
2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
* gennltvals.sh: Add cr16.
* nltvals.def: Rebuild.
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
* syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2007-08-10 Nick Clifton <nickc@redhat.com>
* sim-memopt.c (memory_options): Mention that the
--memory-size switch accepts suffixes.
(parse_size): Handle a suffix on the size value.
* sim-options.c (standard_options): Mention that the mem-size
switch accepts suffixes.
(standard_option_handler): Handle a suffix on the size value.
2006-12-21 Hans-Peter Nilsson <hp@axis.com>
* acconfig.h: Remove.
* config.in: Regenerate.
2006-11-07 Thiemo Seufer <ths@mips.com>
* gentmap.c: Fix compile time warning.
2006-11-07 Thiemo Seufer <ths@mips.com>
* sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
for bfd text addresses.
2006-08-29 Thiemo Seufer <ths@mips.com>
Nigel Stephens <nigel@mips.com>
* sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
SIM_QUIET_NAN_NEGATED.
2006-08-29 Nigel Stephens <nigel@mips.com>
* sim-profile.c (profile_pc_init): Initialise default profiling
frequency to a prime number.
(profile_print_pc): Convert gmon.out sample data into target
byte order.
2006-06-13 Richard Earnshaw <rearnsha@arm.com>
* aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
* common.m4: Likewise.
* configure: Regenerated.
2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
* aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
* configure: Regenerated.
2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
* Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
and LIBINTL_DEP everywhere.
(CSEARCH): Use INCINTL.
* aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
gettext macros.
* configure: Regenerated.
2006-03-29 Hans-Peter Nilsson <hp@axis.com>
* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
option-contents test.
2005-11-28 Mark Mitchell <mark@codesourcery.com>
* sim-signal.c (sim_signal_to_target): Fix typos.
* sim-reason.c (sim_stop_reason): Use
sim_signal_to_target, not sim_signal_to_host.
* sim-signal.c (sim_signal_to_host): Fix typo.
(sim_signal_to_target): New function.
2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
* sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
change.
2005-07-08 Ian Lance Taylor <ian@airs.com>
* sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
* sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
different fraction for a quiet NaN.
(unpack_fpu): Likewise.
2005-07-08 Ben Elliston <bje@au.ibm.com>
* callback.c: Remove ANSI_PROTOTYPES conditional code.
* sim-load.c: Likewise.
* syscall.c: Likewise.
2005-05-24 Corinna Vinschen <vinschen@redhat.com>
* Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
check.
2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
* Make-common.in (install-common, installdirs): Honor $DESTDIR.
2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
* sim-types.h: Changed unsigned32 and unsigned64 to signed32
and signed64 for __ALPHA__.
2005-03-23 Mark Kettenis <kettenis@gnu.org>
* aclocal.m4 Include ../../gettext.m4.
(CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
(AM_LC_MESSAGES): Remove.
* configure: Regenerate.
2005-02-28 Jim Blandy <jimb@redhat.com>
* aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
-Wuninitialized in the default list of build warnings if CFLAGS is
set, and doesn't include -O. (Using -Wuninitialized without
optimization produces a warning, which interferes with compilation
with -Werror.)
2005-02-21 Jim Blandy <jimb@redhat.com>
* callback.c (os_fstat): Don't declare 't' unless it's used.
2005-02-09 Jim Blandy <jimb@redhat.com>
* Make-common.in (CGEN): Load guile.scm, and include a trailing
'-s' argument.
(CGEN_FLAGS_TO_PASS): Include single quotes around the reference
to $(CGEN), to ensure that the command substitution happens where
the variable is referenced in the submake, not when the submake's
arguments are expanded.
(cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
(arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
application Scheme script directly after ${cgen}; don't precede it
with a -s.
2005-01-28 Hans-Peter Nilsson <hp@axis.com>
* syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
* callback.c [HAVE_LIMITS_H]: Include limits.h.
Include libiberty.h.
(os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
being either end of a pipe.
(os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
(os_shutdown): Clear pipe state.
(default_callback): Initialize new members.
* callback.c (default_callback): Initialize target_endian.
(cb_store_target_endian): Renamed from store, new first parameter
host_callback *cb, drop last parameter big_p. Take endianness
from cb.
(cb_host_to_target_stat): Change to use cb_store_target_endian.
Remove variable big_p.
* nrun.c (main): Initialize default_callback.target_endian.
2005-01-14 Andrew Cagney <cagney@gnu.org>
* configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
Add explicit call to AC_CONFIG_HEADER.
* common.m4: Delete call to AC_CONFIG_HEADER, update usage.
* configure: Re-generate.
2005-01-12 Andrew Cagney <cagney@gnu.org>
* common.m4: New file, based on of aclocal.m4.
2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
* aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
* configure: Regenerated to track ../common/aclocal.m4 changes.
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
* configure: Re-generate.
2004-12-15 Hans-Peter Nilsson <hp@axis.com>
* syscall.c (cb_syscall) <case CB_SYS_truncate>
<case CB_SYS_ftruncate>: New cases.
2004-12-13 Hans-Peter Nilsson <hp@axis.com>
* syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
(cb_syscall) <case CB_SYS_rename>: New case.
* callback.c (os_lstat): New function.
2004-12-08 Hans-Peter Nilsson <hp@axis.com>
* run.1: Document --sysroot=filepath.
* sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
(standard_options): Support --sysroot=<path>.
(standard_option_handler): Handle OPTION_SYSROOT.
* syscall.c (simulator_sysroot): Define, initialized empty.
(get_path): Prepend simulator_sysroot to absolute file path.
[HAVE_STRING_H]: Include string.h.
[!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
* nrun.c [HAVE_UNISTD_H]: Include unistd.h.
(main): If simulator_sysroot is not empty, chdir there.
* sim-config.h (simulator_sysroot): Declare.
* aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
cgen_rtx_error" in a CGEN-generated simulator.
* gdbinit.in: Break on sim_core_signal too. Have autoconf
replacement for CGEN-related breakpoints.
2004-12-07 Hans-Peter Nilsson <hp@axis.com>
* Make-common.in (sim-basics_h): Add $(callback_h).
2004-12-03 Hans-Peter Nilsson <hp@axis.com>
* configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
* aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
(SIM_CHECK_MEMBERS): New macros.
* callback.c (cb_host_to_target_stat): Use temporary macro ST_x
for struct stat member test and write. Add ST_x calls for each
struct stat member tested in configure.in. Wrap each ST_x call in
#ifdef of configure macro for that member.
* configure, config.in: Regenerate.
2004-12-01 Hans-Peter Nilsson <hp@axis.com>
* cgen.sh: New thirteenth parameter opcfile, defaulting to
/dev/null.
<case desc>: Pass -OPC opcfile.
* Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
parameter to cgen.sh.
2004-11-30 Richard Earnshaw <rearnsha@arm.com>
* Make-common.in (sim-basics_h): Correct dependencies on
cconfig.h and tconfig.h
(sim-load.o): Correct typo in sim-basics_h dependency.
2004-11-18 Richard Earnshaw <rearnsha@arm.com>
* Make-common.in (sim-*_h): Add macros for all sim headers listing
sub-dependencies for other sim files that they include.
(sim_main_headers): Use sim-*_h macros.
(sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2004-11-16 Hans-Peter Nilsson <hp@axis.com>
* sim-config.c (sim_config): Recognize when a bfd has unspecified
endian information.
* Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
$(remote_sim_h) too.
(sim_main_headers): Add sim-utils.h.
2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2004-07-26 Andrew Cagney <cagney@gnu.org>
Problem from Olaf Hering <olh@suse.de>.
* Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2004-07-10 Ben Elliston <bje@au.ibm.com>
* hw-tree.c (parse_integer_property): Typo fix in comments.
* sim-options.c (sim_args_command): Likewise.
2004-06-28 Andrew Cagney <cagney@gnu.org>
* run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
* callback.c (os_shutdown): Fix bug in last change: actually
mark file descriptors as available on startup.
2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
[ include/gdb: * callback.h (host_callback_struct): Replace
members fdopen and alwaysopen with fd_buddy. ]
* callback.c: Changed all users.
2004-06-15 Alan Modra <amodra@bigpond.net.au>
* sim-load.c (sim_load_file): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc.
2004-05-18 Daniel Jacobowitz <dan@debian.org>
* dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
passing it to printf.
2004-05-10 Daniel Jacobowitz <dan@debian.org>
* callback.c: Update copyright dates.
* run.c: Likewise.
* sim-basics.h: Likewise.
* sim-load.c: Likewise.
* syscall.c: Likewise.
2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* callback.c: Include cconfig.h instead of config.h.
* run.c: Likewise.
* sim-basics.h: Likewise.
* sim-load.c: Likewise.
* syscall.c: Likewise.
2004-01-16 Ben Elliston <bje@wasabisystems.com>
* Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
* sim-options.c (standard_options): Fix the names of H8
variants.
2003-10-30 Andrew Cagney <cagney@redhat.com>
* sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
with "struct bfd_symbol".
2003-10-21 Andrew Cagney <cagney@redhat.com>
* callback.c (os_truncate): Call "truncate", and not "stat".
2003-10-20 Andrew Cagney <cagney@redhat.com>
* sim-base.h: Replace "struct sec" with "struct bfd_section".
2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
* callback.c (os_ftruncate, os_truncate): New functions.
(default_callback): Initialize ftruncate and truncate members.
2003-09-08 Dave Brolley <brolley@redhat.com>
On behalf of Doug Evans <dje@sebabeach.org>
* cgen.sh: New arg archfile.
* Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2003-08-28 Andrew Cagney <cagney@redhat.com>
* dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
* sim-options.c (print_help): Cast the format with specifier to
"int".
2003-08-20 Michael Snyder <msnyder@redhat.com>
Dave Brolley <brolley@redhat.com>
* cgen-par.h (flags, word1): New target-specific
fields of CGEN_WRITE_QUEUE_ELEMENT.
(CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
(CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
* gennltvals.sh: Add frv target.
* nltvals.def: Add frv target.
2003-06-23 Michael Snyder <msnyder@redhat.com>
* nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
* sim-reg.c: Fix cut-and-paste bug in comment.
2003-06-22 Andrew Cagney <cagney@redhat.com>
From matthew green <mrg@redhat.com>:
* sim-fpu.h: Update copyright.
(sim_fpu_fraction, sim_fpu_guard): New prototypes.
* sim-fpu.c: Update copyright.
(sim_fpu_fraction, sim_fpu_guard): New inline functions.
2003-06-17 Frank Ch. Eigler <fche@redhat.com>
From Doug Evans <dje@sebabeach.org>:
* cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
with disassemble_info:read_memory_func.
* cgen-trace.c (sim_disasm_read_memory): Ditto.
2003-06-04 Michael Snyder <msnyder@redhat.com>
* common/run.c (main): Remove SIM_H8300 ifdef.
(usage): Ditto.
* common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
(standard_options): Add '-x' for h8/300sx.
(standard_option_handler): Add case for SIM_H8300SX.
2003-04-13 Michael Snyder <msnyder@redhat.com>
* Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2003-03-01 Andrew Cagney <cagney@redhat.com>
* sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
(sim_engine_vabort): Ditto.
2003-02-27 Andrew Cagney <cagney@redhat.com>
* sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
* sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
* nrun.c (main): Ditto.
2003-02-26 Andrew Cagney <cagney@redhat.com>
* sim-engine.h (sim_engine_abort): Add noreturn attribute.
(sim_engine_vabort): Ditto.
(sim_engine_halt, sim_engine_restart): Ditto.
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
(sim-break_h): Delete macro.
(sim-break.o): Delete rule.
* sim-break.c: Delete file.
* sim-break.h: Delete file.
* sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
(STATE_BREAKPOINTS): Delete macro.
(sim_state_base): Delete field breakpoints.
* sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
sim_break_install to array.
2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
* run.c (usage): Fix typos.
2002-11-27 Richard Sandiford <rsandifo@redhat.com>
* sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2002-11-22 Andrew Cagney <ac131313@redhat.com>
* dv-core.c: Update copyright. sim/common contributed to the FSF.
* dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
* hw-device.h, hw-handles.c, hw-handles.h: Ditto.
* hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
* hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
* sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
* sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
* sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
* sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
* sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2002-11-13 Andrew Cagney <cagney@redhat.com>
* run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2002-11-06 Richard Sandiford <rsandifo@redhat.com>
* Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
(distclean): Depend on it.
2002-10-14 Alan Modra <amodra@bigpond.net.au>
* cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2002-08-29 Dave Brolley <brolley@redhat.com>
* Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2002-07-17 Andrew Cagney <cagney@redhat.com>
* run-sim.h: Add #ifdef RUN_SIM_H wrapper.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
to here from "gdb/remote-sim.h".
2002-07-16 Andrew Cagney <ac131313@redhat.com>
* sim-resume.c (sim_resume): Add local variable sig_to_deliver to
avoid possible longjmp problems with automatic variable siggnal.
2002-07-14 Andrew Cagney <ac131313@redhat.com>
From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
* Make-common.in (installdirs): Make $(libdir) too, needed when
installing libsim.a.
2002-07-13 Andrew Cagney <ac131313@redhat.com>
* gennltvals.sh (dir): Mark d30v as obsolete.
* nltvals.def: Remove d30v.
2002-06-17 Andrew Cagney <cagney@redhat.com>
* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
* sim-memopt.c: Include <unistd.h>.
(do_memopt_add): Fix printf format.
* sim-events.c (sim_events_schedule): Initialize ``dummy''.
2002-06-16 Andrew Cagney <ac131313@redhat.com>
* aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
--enable-gdb-build-warnings.
* configure: Regenerated to track ../common/aclocal.m4 changes.
2002-06-09 Aldy Hernandez <aldyh@redhat.com>
* sim-fpu.c (unpack_fpu): Initialize exponent for
sim_fpu_class_zero.
(i2fpu): Same.
(sim_fpu_sqrt): Same.
2002-06-08 Andrew Cagney <cagney@redhat.com>
* gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
* sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
* run.c: Ditto.
* sim-load.c: Ditto.
* callback.c: Ditto.
* syscall.c: Ditto.
* Make-common.in (callback_h): Define.
(remote_sim_h): Define.
(run.o): Update.
(callback.o): Update.
(syscall.o): Update.
(sim-load.o):
(nrun.o): Update.
(sim-hload.o): Update.
(sim-io.o): Update.
(sim-reason.o): Update.
(sim-reg.o): Update.
(sim-resume.o): Update.
2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
* run.c: Fix formatting.
2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
* run-sim.h: New header. Provide prototypes for functions used
between run() and libsim.a which are not used by GDB.
* run.c: Include run-sim.h.
(main): If SIM_TARGET_SWITCHES is defined call
sim_target_parse_command_line.
(usage): If SIM_TARGET_SWITCHES is defined call
sim_target_display_usage.
2002-05-17 Andrey Volkov <avolkov@transas.com>
* run.c: Made h8300s as new target, not h8300h alias.
Added new option -S (h8300s target)
* sim-options.c: Ditto.
2002-05-01 Chris Demetriou <cgd@broadcom.com>
* callback.c: Use 'deprecated' rather than 'depreciated.'
2002-02-24 Andrew Cagney <ac131313@redhat.com>
From wiz at danbala:
* sim-fpu.h: Fix grammar and typos.
Fix PR gdb/287.
2002-02-10 Chris Demetriou <cgd@broadcom.com>
* callback.c: Fix some spelling errors.
* hw-device.h: Likewise.
* hw-tree.c: Likewise.
* sim-abort.c: Likewise.
* sim-alu.h: Likewise.
* sim-core.h: Likewise.
* sim-events.c: Likewise.
* sim-events.h: Likewise.
* sim-fpu.h: Likewise.
* sim-profile.h: Likewise.
* sim-utils.c: Likewise.
2002-01-31 Hans-Peter Nilsson <hp@axis.com>
* cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
New functions.
2002-01-20 Ben Elliston <bje@redhat.com>
* sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
the comment for this enumerator.
2002-01-14 Ben Elliston <bje@redhat.com>
* sim-fpu.h: Fix comment about sim_fpu_* constants.
2001-12-20 Kazu Hirata <kazu@hxi.com>
* run.c (usage): Fix a typo.
2001-07-05 Ben Elliston <bje@redhat.com>
* Make-common.in (srccgen): Remove.
(CGEN_CPU_DIR): Define.
(CGEN_READ_SCM): Redefine without $(srccgen).
(CGEN_ARCH_SCM): Ditto.
(CGEN_CPU_SCM): Ditto.
(CGEN_DECODE_SCM): Ditto.
(CGEN_DESC_SCM): Ditto.
2001-04-25 Frank Ch. Eigler <fche@redhat.com>
* sim-load.c (sim_load_file): Put it back: external now.
* sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
2001-04-21 Andrew Cagney <ac131313@redhat.com>
* sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
internal interface.
* sim-utils.c (sim_analyze_program): Ditto.
2001-04-19 Frank Ch. Eigler <fche@redhat.com>
* sim-utils.c (sim_analyze_program): Call bfd_cache_close after
we're finished with its immediate use.
* sim-load.c (sim_load_file): Ditto.
2001-03-16 Frank Ch. Eigler <fche@redhat.com>
Add support for mmap-based memory regions.
* sim-memopt.c (mmap_next_fd): New global.
(sim_memory_init): Reinitialize it.
(OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
"--memory-mapfile FILE" option. Check for some errors.
(do_memopt_add): Conditionally do mmap instead of malloc for
backing store of simulated memory. Check for more errors.
(do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
* sim-memopt.h (munmap_length): New member of _sim_memopt.
* configure.in: Look for mmap/fstat related functions and headers.
* config.in, configure: Regenerated.
2001-03-15 Frank Ch. Eigler <fche@redhat.com>
* sim-core.c (sim_core_map_attach): Correct overlap-related
error messages.
2001-03-07 Michael Meissner <meissner@redhat.com>
* run.c (alloca-conf.h): Delete, no longer provided.
2001-02-22 Ben Elliston <bje@redhat.com>
* sim-trace.h (TRACE_VPU_IDX): Add.
(TRACE_vpu): Define.
(WITH_TRACE_VPU_P): Likewise.
(TRACE_VPU_P): Likewise.
* sim-trace.c (OPTION_TRACE_VPU): Define.
(trace_options): Add --trace-vpu.
(trace_option_handler): Handle OPTION_TRACE_VPU.
(trace_option_handler): Include VPU tracing in --trace-semantics.
(trace_idx_to_str): Handle TRACE_VPU_IDX.
2001-02-21 Ben Elliston <bje@redhat.com>
* sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
(TRACE_BRANCH_INPUT2): Likewise.
2001-02-09 Ben Elliston <bje@redhat.com>
* (profile_print_pc): Write header out in target byte order.
2001-02-09 Ben Elliston <bje@redhat.com>
* sim-profile.c (profile_pc_init): Correct bug in loop logic when
adjusting the pc shift value.
2001-01-12 Chris Demetriou <cgd@sibyte.com>
* aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
where a numeric value is supplied.
2001-01-06 Ben Elliston <bje@redhat.com>
* cgen.sh: Allow extrafiles to include the semantics files when
generating an ISA-specific decoder.
2000-12-27 Alexandre Oliva <aoliva@redhat.com>
* Make-common.in (sim-io.o): Depend on targ-vals.h.
2000-12-23 Ben Elliston <bje@redhat.com>
* cgen-trace.c (trace_result): Handle 'f' type operands; output
them to the trace stream using sim_fpu_printn_fpu. Include
"sim-fpu.h".
2000-12-15 Ben Elliston <bje@redhat.com>
* sim-fpu.h (sim_fpu_printn_fpu): Declare.
* sim-fpu.c (print_bits): Add digits parameter. Print only as many
trailing digits as specified (-1 to print all digits).
(sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
(sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
to print_bits ().
2000-12-13 Ben Elliston <bje@redhat.com>
* cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
(defs): New action.
2000-12-12 Geoffrey Keating <geoffk@redhat.com>
* sim-endian.h: Don't have parameters on macro definitions which
are simply renaming functions, to permit use of XCONCAT2 in both
the macro name and the arguments in a use of such a definition.
2000-12-11 Ben Elliston <bje@redhat.com>
* cgen-ops.h (SUBWORDDFDI): New function.
2000-12-05 Ben Elliston <bje@redhat.com>
* Make-common.in (cgen-defs): New target.
(cgen-decode): Pass $(EXTRAFILES).
* genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
-outfile-suffix options.
2000-12-04 Ben Elliston <bje@redhat.com>
* cgen-ops.h (SUBWORDSIQI): Mask off top bits.
(SUBWORDSIUQI): Likewise.
(SUBWORDDIHI): Likewise.
(SUBWORDDIQI): New function.
* cgen-trace.c (disassemble_insn): Remove unused declaration.
* cgen-scache.c (scache_option_handler): Remove unused local var.
2000-12-03 Ben Elliston <bje@redhat.com>
* sim-profile.c (profile_option_handler): Remove unused prof_nr.
2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* hw-events.c (delete_hw_event_data): Remove the scheduled events.
2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* dv-core.c (dv_core_attach_address_callback): Don't abort if
space is not zero.
2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
(set_hw_delete): Moved the macro as a function.
* hw-base.h (set_hw_delete): Declare as external function.
* hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
allocated using hw_malloc.
2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* sim-options.c (sim_parse_args): Free the memory used for
long_options, short_options, handlers, opt_cpu, orig_val.
2000-11-20 Ben Elliston <bje@redhat.com>
* cgen-ops.h (SUBBI): New macro.
(SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
(SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
2000-11-16 Ben Elliston <bje@redhat.com>
* cgen-types.h (VOID): New type.
2000-11-09 Ben Elliston <bje@redhat.com>
* sim-fpu.c (sim_fpu_one): Set exponent to 0.
(sim_fpu_two): Set exponent to 1.
2000-10-26 Ben Elliston <bje@redhat.com>
* cgen.sh: Handle an isa argument between cpu and mach. Default to
`all'. Pass `-i' options to cgen applications.
* Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
cgen-desc): Pass $(isa) to cgen.sh.
2000-10-08 Ben Elliston <bje@redhat.com>
* cgen-utils.c (cgen_rtx_error): New function.
2000-10-07 Ben Elliston <bje@redhat.com>
* cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
conditions for sim_core_read_buffer().
2000-09-26 Dave Brolley <brolley@redhat.com>
* cgen-utils.c (RORQI): New function.
(ROLQI): New function.
(RORHI): New function.
(ROLHI): New function.
2000-08-28 Dave Brolley <brolley@redhat.com>
* cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
in insn_value if it will fit.
2000-08-21 Frank Ch. Eigler <fche@redhat.com>
* Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
2000-08-15 Dave Brolley <brolley@redhat.com>
* sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
2000-08-15 Dave Brolley <brolley@redhat.com>
* sim-profile.h (PROFILE_DATA): Add cpu_freq.
(PROFILE_CPU_FREQ): New macro.
* sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
(profile-options): Add profile-cpu-frequency.
(parse_frequency): New function.
(profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
(profile_print_speed): Print cpu frequency and simulated execution time.
Re-indent other items to match.
2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
* dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
2000-07-27 Frank Ch. Eigler <fche@redhat.com>
From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* Makefile.in (install): Install run.1 man page.
Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
* Makefile.in (headers,nltvals.def): Merge.
Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* nrun.c (main): Print the simulator statistics only in
verbose mode.
* hw-properties.h (hw_find_integer_array_property): Fix
prototype (use signed_cell).
From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* sim-events.c (sim_events_remain_time): New function returning
the time that remains before the event is raised.
* hw-events.c (hw_event_remain_time): Likewise.
* sim-events.h (sim_events_remain_time): Declare.
* hw-events.h (hw_event_remain_time): Declare.
From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* sim-hw.c: Use <errno.h> instead of <sys/errno.h>
(OPTION_HW_LIST): New option --hw-list to list the devices.
(hw_option_handler): List the device tree with 'sim_hw_print'.
From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
(MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
(EXTENDED): Define for 16-bit word size.
* sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
* sim-types.h: Added support for 16-bit targets.
2000-06-23 Frank Ch. Eigler <fche@redhat.com>
* cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
2000-06-24 Frank Ch. Eigler <fche@redhat.com>
From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
* Makefile.in (distclean): Clean cconfig.h also.
Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
* aclocal.m4 (sim-profile): Enable the profiler by default.
Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
* run.c (main): Initialize sigrc.
Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
* sim-events.c (update_time_from_event): Add more detailed event
tracing.
2000-03-30 Dave Brolley <brolley@redhat.com>
* aclocal.m4 (cgen): Use guile to run cgen.
2000-03-23 Dave Brolley <brolley@redhat.com>
* cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
ftruncdfsf.
* cgen-accfp.c (fextsfdf): New function.
(ftruncdfsf): New function.
(cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
* cgen-ops.h: Added TRUNCSISI.
2000-03-08 Dave Brolley <brolley@redhat.com>
* cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
(CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
(sim_queue_fn_si_write): Last argument is has type USI.
(sim_queue_fn_sf_write): New function.
* cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
(sim_queue_fn_sf_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
* run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
sim_set_trace and run simulator using sim_resume.
(main): Add option ``-o'' - operating environment. Only continue
after a signal when operating environment.
(main): Always set REASON and SIGRC using sim_stop_reason.
(sim_trace): Delete extern declaration.
2000-02-08 Nick Clifton <nickc@cygnus.com>
* callback.c: Fix compile time warning messages.
* run.c: Fix compile time warning messages.
1999-12-17 Dave Brolley <brolley@cygnus.com>
* sim-profile.h: (set_profile_option_mask): Add prototype.
* sim-profile.c (set_profile_option_mask): No longer static.
Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
* sim-arange.c: Include <string.h>
1999-12-07 Dave Brolley <brolley@cygnus.com>
* sim-options.c (print_help): '=' required before optional argument.
* cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
(CGEN_FN_MEM_HI_WRITE): New enumerator.
(CGEN_FN_MEM_SI_WRITE): New enumerator.
(CGEN_FN_MEM_DI_WRITE): New enumerator.
(CGEN_FN_MEM_DF_WRITE): New enumerator.
(CGEN_FN_MEM_XI_WRITE): New enumerator.
(fn_mem_qi_write): New union members.
(fn_mem_hi_write): New union members.
(fn_mem_si_write): New union members.
(fn_mem_di_write): New union members.
(fn_mem_df_write): New union members.
(fn_mem_xi_write): New union members.
(sim_queue_fn_mem_qi_write): New function.
(sim_queue_fn_mem_hi_write): New function.
(sim_queue_fn_mem_si_write): New function.
(sim_queue_fn_mem_di_write): New function.
(sim_queue_fn_mem_df_write): New function.
(sim_queue_fn_mem_xi_write): New function.
* cgen-par.c (sim_queue_fn_mem_qi_write): New function.
(sim_queue_fn_mem_hi_write): New function.
(sim_queue_fn_mem_si_write): New function.
(sim_queue_fn_mem_di_write): New function.
(sim_queue_fn_mem_df_write): New function.
(sim_queue_fn_mem_xi_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
1999-12-01 Dave Brolley <brolley@cygnus.com>
* cgen-accfp.c (subsf): Check status code.
(mulsf): Ditto.
(negsf): Ditto.
(abssf): Ditto.
(sqrtsf): Ditto.
(invsf): Ditto.
(minsf): Ditto.
(maxsf): Ditto.
(subdf): Ditto.
(muldf): Ditto.
(divdf): Ditto.
(negdf): Ditto.
(absdf): Ditto.
(sqrtdf): Ditto.
(invdf): Ditto.
(mindf): Ditto.
(maxdf): Ditto.
1999-11-26 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (fn_df_write): Mode of data is DF.
(sim_queue_fn_df_write): Mode of data is DF.
* cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
1999-11-22 Dave Brolley <brolley@cygnus.com>
* cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
* cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
1999-11-04 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
CGEN_MEM_XI_WRITE members.
(CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
(sim_queue_fn_xi_write): New function.
(sim_queue_mem_xi_write): New function.
* cgen-par.c (sim_queue_fn_xi_write): New function.
(sim_queue_mem_xi_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
CGEN_MEM_XI_WRITE.
1999-10-22 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
(CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
* cgen-par.c: Set insn_address for each queued write. Get pc from
cpu when executing queued writes.
1999-10-19 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (sim_queue_fn_pc_write): New function.
(CGEN_FN_PC_WRITE): New enumerator.
(fn_pc_write): New union member.
* cgen-par.c (sim_queue_fn_pc_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
1999-10-18 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
(CGEN_MEM_DF_WRITE): New enumerator.
(mem_di_write): New union member.
(mem_df_write): New union member.
* cgen-par.c (sim_queue_mem_di_write): New function.
(sim_queue_mem_df_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
CGEN_MEM_DF_WRITE.
* cgen-accfp.c (divsf): Check for division errors.
1999-10-14 Doug Evans <devans@casey.cygnus.com>
* cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
1999-10-07 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
(fn_hi_write): New union member.
(sim_queue_fn_hi_write): New function.
* cgen-par.c (sim_queue_fn_hi_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
1999-09-29 Doug Evans <devans@casey.cygnus.com>
* cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
Change type of result to SEM_PC.
Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
* cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
1999-09-25 Doug Evans <devans@casey.cygnus.com>
* cgen-ops.h (SUBWORD*): Delete cpu arg.
(JOIN*): Delete cpu arg.
Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
* genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
parameter.
(SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
* sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
large values.
Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
* run.c (main): Check the sim_stop_reason and only halt simulation
when a valid stop condition is identified.
Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
* hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
* cgen-par.h (CGEN_BI_WRITE): New enumerator.
(bi_write): New union element.
(sim_queue_bi_write): New function.
* cgen-par.c (sim_queue_bi_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
* aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
../gdb/configure.in.
* Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
(SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
(SIM_WARNINGS): Delete
(CONFIG_CFLAGS): Update.
Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
* cgen-par.c: New file.
* cgen-par.h: New file.
* cgen-sim.h (cgen-par.h): #include it.
* cgen-cpu.h (write_queue): New field.
(CPU_WRITE_QUEUE): New access macro.
* Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
(cgen-par.o): New target.
1999-08-28 Doug Evans <devans@casey.cygnus.com>
* cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
* cgen-utils.c (mode_names): Update.
1999-08-20 Doug Evans <devans@casey.cygnus.com>
* genmloop.sh: New args -parallel-generic-write, -parallel-only.
* cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
buffer arg if WITH_PARALLEL_GENWRITE.
(struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
(struct idesc): Ditto.
Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
* sim-model.c (model_option_handler): Add \n to error message.
1999-08-08 Doug Evans <devans@casey.cygnus.com>
* cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
(insn_sem): Rewrite.
(sem_fn_desc): New struct.
(idesc): Rewrite.
* genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
misses if ! FAST_P.
(scache case): Split into non-parallel/parallel versions.
(@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
if not use semantic switch version.
1999-08-04 Doug Evans <devans@casey.cygnus.com>
* cgen-defs.h (SEM_BRANCH_TYPE): New enum.
* cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
(SEM_BRANCH_INIT_EXTRACT): Delete.
(SEM_BRANCH_INIT): Replace npc_ptr with br_type.
(SEM_BRANCH_FINI): Ditto.
(SEM_BRANCH_VIA_ADDR): Ditto.
(SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
(SEM_BRANCH_ADDR_CACHE): Delete.
(SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
* cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
pbb_br_type.
* genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
(@cpu@_pbb_begin): Initialize branch_target.
(@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
(@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
pbb_br_type.
(@cpu@_engine_run_fast): Ditto.
Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
* cgen-utils.c (RORSI): New function.
(ROLSI): New function.
1999-07-14 Doug Evans <devans@casey.cygnus.com>
* Makefile.in (TAGS): Tweak TAGS regex.
* cgen-mem.h (*): Add TAGS markers.
Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
* sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
passed in when sim_resume is first entered - don't re-pass it
after a restart.
Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
* sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
OPTION_LOAD_LMA but only when is defined.
(standard_options): When SIM_HANDLES_LMA is defined include
options --load-lma and --load-vma.
(standard_install): Initialize STATE_LOAD_AT_LMA_P.
* sim-base.h (STATE_LOAD_AT_LMA_P): Define.
(struct sim_state_base): Add load_at_lma_p.
* sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
STATE_LOAD_AT_LMA_P.
Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
* nrun.c (main): Re-format loop gnu style.
Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
* dv-sockser.c (connected_p): Initialize addrlen.
1999-07-06 Dave Brolley <brolley@cygnus.com>
* cgen-accfp.c (floatsidf): New function.
(fixdfsi): New function.
1999-07-06 Doug Evans <devans@casey.cygnus.com>
* sim-model.c (sim_model_init): Issue error if machine is unsupported.
1999-07-05 Doug Evans <devans@casey.cygnus.com>
* Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
(cgen-fpu.o,cgen-accfp.o): Add rules for.
* cgen-fpu.c: New file.
* cgen-fpu.h: New file.
* cgen-accfp.c: New file.
* cgen-cpu.h (CGEN_CPU): New member fpu.
* cgen-mem.h: Redo fp support.
* cgen-ops.h: Delete k&r support. Redo fp support.
* cgen-sim.h: Include cgen-fpu.h.
* cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
1999-06-23 Doug Evans <devans@casey.cygnus.com>
* cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
ifndef.
* genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
(@cpu@_pbb_cti_chain): Minor clean up.
1999-05-08 Felix Lee <flee@cygnus.com>
* aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
AM_CYGWIN32 and AM_EXEEXT.
* configure: Regenerate.
Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
* sim-core.c (device_error,device_io_read_buffer,
device_io_write_buffer): Delete decls.
* sim-core.h: Put them here.
* sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
(sim_core_write_buffer): Pass sd to device_io_write_buffer.
* sim-n-core.h (sim_core_read_aligned_N): Ditto.
(sim_core_write_aligned_N): Ditto.
1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
* sim-memopt.c (sim_memory_uninstall): Don't look into
free()d memory.
1999-04-14 Doug Evans <devans@casey.cygnus.com>
* cgen-utils.scm (virtual_insn_entries): Update attribute definition.
1999-04-13 Doug Evans <devans@casey.cygnus.com>
* sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
(sim_core_write_buffer): Ditto.
1999-04-02 Keith Seitz <keiths@cygnus.com>
* sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
after the interval counter has expired.
(POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
poll_quit callbacks. May be overridden by Makefile.
(poll_quit_counter): New global.
* sim-events.c: Remove all mentions of ui_loop_hook. The
host callback "poll_quit" will serve the purpose.
* run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
is defined.
* nrun.c: Remove declaration of ui_loop_hook.
Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
* cgen-run.c (sim_resume): Don't tell main loop to run "forever"
if being used by gdb.
1999-03-22 Doug Evans <devans@casey.cygnus.com>
* cgen-types.h (XF,TF): Tweak.
* cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
in cgen-types.h.
(SUBWORD*,JOIN*): Define.
* cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
moved into cpu descriptor.
* sim-model.h (MACH): New member `num'.
1999-02-09 Doug Evans <devans@casey.cygnus.com>
* cgen-cpu.h (CGEN_DISASSEMBLER): New type.
(CGEN_CPU): Member opcode renamed to cpu_desc.
New members get_idata,disassembler.
* cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
CGEN_INSN_ATTR_VALUE.
(CGEN_STATE): Delete member opcode_table.
(sim_disassemble_insn): Delete decl.
* cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
(struct idesc): Moved to here from <cpu>-decode.h.
* cgen-run.c (prime_cpu): Call prepare_run callback.
* cgen-trace.h (SFILE): New type.
(sim_disasm_sprintf): Declare.
(sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
(sim_cgen_disassemble_insn): Declare.
* cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
(insn_fields): Delete.
(trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
CPU_CPU_DESC (cpu).
(trace_insn): Call CPU_DISASSEMBLER hook.
(sim_disasm_sprintf): New function.
(sim_disasm_read_memory): New function.
(sim_disasm_perror_memory): New function.
(sim_cgen_disassemble_insn): New function.
* cgen-utils.c: Don't include cpu-opc.h.
(virtual_insn_entries): New static local.
(cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
(cgen_insn_name): Rewrite.
(disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
* cgen.sh (desc): New file generator handler.
* genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
Don't include cpu-opc.h,cpu-sim.h.
* sim-model.c (model_set): Delete SIM_DESC arg.
(sim_model_set): Update.
* sim-model.h (MACH): New member prepare_run.
1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
* sim-memopt.c (memory_option_handler): Avoid memset() calls
if redundant with allocator functions.
Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
* cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
* sim-profile.h: Make like sim-trace.h.
(PROFILE_USEFUL_MASK): New macro.
* sim-profile.c (profile_options): Make like trace_options, allow
optional on|off arg where applicable.
(set_profile_option_mask): New function.
(sim_profile_set_option): New function.
(profile_option_handler): Simplify.
Have -p only enable selected things, not everything.
Add missing break to OPTION_PROFILE_PC_RANGE.
* cgen-scache.c (scache_options): Allow optional on|off arg to
--profile-scache.
(scache_option_handler): Use sim_profile_set_option.
1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
* sim-memopt.c (memory_options): Add MEMORY_FILL option.
(memory_option_handler): Implement MEMORY_FILL option. Make
MEMORY_CLEAR an alias for MEMORY_FILL=0.
(parse_ulong_value): New function.
(do_memopt_add): Allocate all buffers. Optionally fill them.
1999-01-15 Richard Henderson <rth@cygnus.com>
* hw-events.c (hw_event_queue_schedule): _vtracef takes a
va_list, not an integer.
* sim-events.c (sim_events_schedule): Likewise.
* sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
the appropriate type.
1999-01-14 Doug Evans <devans@casey.cygnus.com>
* cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
(sim_disassemble_insn): Update prototype.
(sim_engine_invalid_insn): Ditto.
* cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
(SEM_BRANCH_INIT): PCADDR->IADDR.
(SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
* cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
* cgen-scache.h (*): Ditto.
* cgen-trace.c (*): Ditto.
* cgen-trace.h (*): Ditto.
* cgen-utils.c (*): Ditto.
* cgen-types.h (integer modes): Use signedNN/unsignedNN types.
(insn_t): Delete.
* genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
(simple engine framework): Rewrite.
* sim-module.c (modules): Install model module sooner (and in
particular before the profile module).
1999-01-12 Doug Evans <devans@casey.cygnus.com>
* sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
* sim-model.c (sim_mach_lookup_bfd_name): New function.
(sim_model_init): Call it.
* cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
1999-01-05 Doug Evans <devans@casey.cygnus.com>
* Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
* cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
(SEM_BRANCH_INIT_EXTRACT): New macro.
(SEM_BRANCH_INIT): Add taken_p.
(TARGET_SEM_BRANCH_FINI): Provide default definition.
(SEM_BRANCH_FINI): Use it.
(SEM_INSN): Update.
* cgen-run.c (sim_resume): Handle tracing of last insn.
* cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
* cgen-trace.c (current_abuf): New static global.
(trace_insn_init): Initialize it.
(trace_insn_fini): Use it.
(trace_insn): Set it.
* cgen.sh (arch case): Pass -m ${mach} to cgen.
* genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
(@cpu@_emit_after): Ditto.
(simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
labels if WITH_SEM_SWITCH_FULL.
* sim-model.c: Include bfd.h.
(sim_model_init): New function.
(sim_model_install): Record init fn.
* sim-model.h (MACH): New member bfd_name.
* sim-module.c (modules): Initialize model before scache.
1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
* dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
* nrun.c (main): Remain in simulation loop for traps and
exceptions when in operating environment mode.
(ui_loop_hook): New stub hook for standalone use.
* sim-events.c (sim_events_process): Call ui_loop_hook
periodically on CYGWIN host.
* sim-reason.c (sim_stop_reason): Return host signal numbers
to gdb on sim_stopped and sim_signalled cases.
* sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
hook just before longjmp.
* sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
hook just before sim_engine_run.
* sim-n-core.h (sim_core_trace_M): Allay const warning.
* sim-trace.h (trace_generic): Ditto.
* sim-trace.c (trace_generic): Ditto.
1998-12-14 Doug Evans <devans@casey.cygnus.com>
* Make-common.in (SIM_MAIN_DEPS): New var.
(CGEN_MAIN_CPU_DEPS): New var.
* aclocal.m4: Add --enable-cgen-maint option.
* cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
(SETMEM*): Ditto.
(GETIMEM*): Pass pc value to sim_core routine.
Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
* hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
Compare with ZERO not NULL.
Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
* hw-properties.c, hw-instances.c, hw-tree.c: Include
"sim-assert.h".
1998-12-09 Doug Evans <devans@casey.cygnus.com>
* sim-arange.c: Include libiberty.h, and stdlib.h if present.
* sim-trace.c: Include stdlib.h if present.
* dv-sockser.c: Include unistd.h if present.
(dv_sockser_init): Add missing arg to call to sim_io_eprintf.
* cgen-scache.c (scache_flush): Delete unused locals i,sc.
1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
* gennltvals.sh: Add i960.
* nltvals.def: Rebuild.
1998-12-04 Doug Evans <devans@casey.cygnus.com>
* cgen-defs.h: New file, old cgen-sim.h.
* cgen-sim.h: Simple header that includes others.
* sim-arange.c: New file.
* sim-arange.h: New file.
* sim-basics.h: Include it.