1997-09-25 07:19:05 +00:00
|
|
|
Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (SIM_BITSIZE): Assign from configured value.
|
|
|
|
(CONFIG_CFLAGS): Add SIM_BITSIZE.
|
|
|
|
|
|
|
|
* aclocal.m4 (--enable-sim-bitsize): Developer option for
|
|
|
|
controling the bitsize/msb of the target.
|
|
|
|
|
1997-09-25 00:51:17 +00:00
|
|
|
Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in: New files sim-break.c, sim-break.h.
|
|
|
|
* sim-base.h: Add point to breakpoint list to sim_state_base.
|
|
|
|
* sim-break.c sim-break.h: New modules that implement intrinsic
|
|
|
|
breakpoint support.
|
|
|
|
* sim-module.c: Add breakpoint module.
|
|
|
|
|
1997-09-23 18:08:09 +00:00
|
|
|
Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
|
|
|
|
|
|
|
|
* sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
|
|
|
|
an hour.
|
|
|
|
* sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
|
|
|
|
if (0) { 1 % 0; }
|
|
|
|
* sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
|
|
|
|
(SIGBUS) define for Windows.
|
|
|
|
* sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
|
|
|
|
* sim-resume.c: define SIGTRAP for windows.
|
|
|
|
* sim-xcat.h: use token pasting if ALMOST_STDC.
|
|
|
|
|
1997-09-23 04:05:50 +00:00
|
|
|
Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
|
|
|
|
configured values.
|
|
|
|
(CONFIG_CFLAGS): Add same.
|
|
|
|
|
1997-09-23 03:51:33 +00:00
|
|
|
Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
|
|
|
|
|
|
|
|
* sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
|
|
|
|
(SIGNED32): use ##i32.
|
|
|
|
|
1997-09-23 01:25:26 +00:00
|
|
|
Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (sim-endian): Simplify logic determining [default]
|
|
|
|
endian of target.
|
|
|
|
|
|
|
|
* Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
|
|
|
|
SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
|
|
|
|
SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
|
|
|
|
SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
|
|
|
|
(CONFIG_CFLAGS): Add same.
|
|
|
|
|
|
|
|
* aclocal.m4: Perform AC_SUBST on optional options.
|
|
|
|
|
1997-09-22 09:16:14 +00:00
|
|
|
Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-09-22 09:34:28 +00:00
|
|
|
* sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
|
|
|
|
|
|
|
|
* sim-options.c (standard_option_handler): Typo in warning message.
|
|
|
|
|
1997-09-22 09:16:14 +00:00
|
|
|
* sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
|
|
|
|
|
|
|
|
* sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
|
|
|
|
insn count. Make count conditional on there being a valid
|
|
|
|
INSN_NAME.
|
|
|
|
(profile_pc_init): Make default PC profile frequency an arbitrary
|
|
|
|
256.
|
|
|
|
|
|
|
|
* sim-base.h: Ditto.
|
|
|
|
|
|
|
|
* sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
|
|
|
|
SIM_HAVE_MODEL.
|
|
|
|
|
|
|
|
* sim-model.h (struct MACH): Depreciate, to be replaced by bfd
|
|
|
|
archure struct.
|
|
|
|
|
1997-09-22 02:49:57 +00:00
|
|
|
Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (sim_alignment): Simplify logic for selecting the
|
|
|
|
configured alignment.
|
|
|
|
|
1997-09-22 00:24:46 +00:00
|
|
|
Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-config.c (sim_config): Check for default alignment.
|
|
|
|
|
|
|
|
* sim-options.c (standard_option_handler): Add alignment option.
|
|
|
|
|
|
|
|
* aclocal.m4 (sim_alignment): Allow configuration of hardwired and
|
|
|
|
default alignment requirements on memory accesses.
|
|
|
|
|
|
|
|
Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
|
|
|
|
|
|
|
|
* sim-load.c (sim_load_file): Return failure if the executable
|
|
|
|
had no loadable sections.
|
|
|
|
|
1997-09-17 05:28:32 +00:00
|
|
|
Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-09-17 08:13:07 +00:00
|
|
|
* sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
|
|
|
|
trace output.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_signal): When bad access halt simulator
|
|
|
|
SIGSEGV / SIGBUS instead of aborting.
|
|
|
|
(signal.h): Include.
|
|
|
|
|
|
|
|
* sim-watch.c (sim_watchpoint_install): Handler for watchpoint
|
|
|
|
options was missing.
|
|
|
|
|
1997-09-17 05:28:32 +00:00
|
|
|
* sim-bits.h (MOVED): Define
|
|
|
|
|
1997-09-17 03:25:54 +00:00
|
|
|
Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
|
|
|
|
BIT.
|
|
|
|
|
|
|
|
* sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
|
|
|
|
|
|
|
|
* sim-bits.c: Add 8 bit versions of bit macros.
|
|
|
|
|
|
|
|
* sim-bits.h: Ditto.
|
|
|
|
|
1997-09-16 07:04:46 +00:00
|
|
|
Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
|
|
|
|
(LSINSERTED, MSINSERTED): Ditto for INSERTED.
|
|
|
|
|
|
|
|
* sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
|
|
|
|
(LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
|
|
|
|
|
|
|
|
* sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
|
|
|
|
(INSERTED*): Ditto for LSINSERTED/MSINSERTED.
|
|
|
|
|
1997-09-15 08:11:50 +00:00
|
|
|
Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
|
|
|
|
configure.in: Output to cconfig.h instead of config.h.
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
|
|
|
|
BFD if known.
|
|
|
|
|
1997-09-15 08:02:23 +00:00
|
|
|
Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (os_write): divert stdout and stderr to their
|
|
|
|
respective hooks.
|
|
|
|
|
1997-09-12 02:44:03 +00:00
|
|
|
Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-profile.c (profile_print_speed): Call
|
|
|
|
sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_elapsed_time): New function return nr
|
|
|
|
host MS consumed by the simulator.
|
|
|
|
(sim_watch_valid): Use.
|
|
|
|
|
|
|
|
* sim-module.c (modules): Install sim_events very very early.
|
|
|
|
|
|
|
|
* sim-profile.c (profile_print): Call profile_print_pc.
|
|
|
|
(print_bar):
|
|
|
|
(profile_pc_init): New function, set up processor for PC
|
|
|
|
profiling.
|
|
|
|
(profile_print_pc): New function, print a PC profile.
|
|
|
|
(profile_pc_event): New function, sample PC.
|
|
|
|
|
|
|
|
* sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
|
|
|
|
PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
|
|
|
|
profile struct.
|
|
|
|
|
|
|
|
* sim-options.c (sim_print_help): Pacify GCC.
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_read_aligned_N,
|
|
|
|
sim_core_write_aligned_N): Add un-conditional profile call.
|
|
|
|
(sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
|
|
|
|
profile call when aligned read/write isn't used.
|
|
|
|
|
|
|
|
* sim-base.h: Include sim-profile, sim-model after sim-core &
|
|
|
|
sim-events allow sim-core to define useful values.
|
|
|
|
|
|
|
|
* sim-profile.c (OPTION_PROFILE_CORE): Define.
|
|
|
|
(profile_option_handler, profile_options): Add support for
|
|
|
|
--profile-core option.
|
|
|
|
(print_bar): Include when core profiling.
|
|
|
|
(profile_print_core): New function, print core profile.
|
|
|
|
|
|
|
|
* sim-config.c (print_sim_config): Print profile status.
|
|
|
|
|
|
|
|
* sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
|
|
|
|
WITH_PROFILE_PC_P): Define.
|
|
|
|
(PROFILE_CORE_COUNT): Count each core-map/size separatly.
|
|
|
|
(PROFILE_COUNT_CORE): Define.
|
|
|
|
|
1997-09-10 22:47:12 +00:00
|
|
|
Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-watch.c (handle_watchpoint): Pass a char** index into the
|
|
|
|
interrupt_names array as the data.
|
|
|
|
(sim-watch.h): Document.
|
|
|
|
|
|
|
|
Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-options.c (sim_print_help): When the doc string is to long
|
|
|
|
word wrap it.
|
|
|
|
|
|
|
|
* sim-watch.c (sim_watchpoint_install): Use option.doc_name so
|
|
|
|
that only the first few the watch options are listed. Generate
|
|
|
|
meanginful usage messages.
|
|
|
|
|
|
|
|
* sim-options.h (struct OPTION): Clarify use of doc_name field
|
|
|
|
|
1997-09-10 05:16:34 +00:00
|
|
|
Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
|
|
|
|
(standard_option_handler): Handle --architecture-info.
|
|
|
|
|
1997-09-10 04:46:37 +00:00
|
|
|
Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
|
|
|
|
illegal zero-sized array.
|
|
|
|
* sim-core.c (sim_core_xor_read_buffer): same.
|
|
|
|
|
1997-09-09 18:20:57 +00:00
|
|
|
Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* nltvals.def: Regenerate.
|
|
|
|
|
1997-09-08 17:21:13 +00:00
|
|
|
Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
|
|
|
|
|
|
|
|
Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-bits.c (MASKED): Delete.
|
|
|
|
(EXTRACTED): Delete.
|
|
|
|
(LSEXTRACTED, MSEXTRACTED): New functions.
|
|
|
|
|
|
|
|
* sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
|
|
|
|
(MSMASKEDn, LSMASKEDn): Add last argument.
|
|
|
|
(MSMASK*): Ditto.
|
|
|
|
|
|
|
|
* sim-bits.h (EXTEND8, EXTEND16): Define.
|
|
|
|
(EXTRACTED64): Define as 64 bit extract, not 32 bit.
|
|
|
|
|
|
|
|
* sim-run.c (sim_engine_run): Use CPU_CIA macro.
|
|
|
|
|
|
|
|
* sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
|
|
|
|
current instruction address.
|
|
|
|
|
|
|
|
* sim-inline.h (*_ENGINE): Define.
|
|
|
|
|
1997-09-05 00:30:38 +00:00
|
|
|
Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-09-05 08:16:23 +00:00
|
|
|
* sim-core.c (sim_core_attach): Fix checks of modulo/mask.
|
|
|
|
|
|
|
|
* sim-watch.c (delete_watchpoint): Delete by ident and type.
|
|
|
|
(watch_option_handler): Call delete_watchpoint with ident or type.
|
|
|
|
(sim_watchpoint_install): Create interrupt specific watchpoint
|
|
|
|
commands on the fly.
|
|
|
|
(do_watchpoint_create): New function, create a watch point using
|
|
|
|
type/int-nr info encoded in the option nr.
|
|
|
|
(do_watchpoint_info): New function. List active watchpoints.
|
|
|
|
|
|
|
|
* sim-watch.h: Change data structure to a list.
|
|
|
|
|
|
|
|
* sim-memopt.c (memory_option_handler): Require explicit "all"
|
|
|
|
before deleting all memory regions.
|
|
|
|
|
1997-09-05 07:57:27 +00:00
|
|
|
* sim-utils.c (sim_do_commandf): New function, printf version of
|
|
|
|
sim_do_command.
|
|
|
|
|
|
|
|
* sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
|
|
|
|
|
1997-09-05 00:30:38 +00:00
|
|
|
* sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
|
|
|
|
bit endianness.
|
|
|
|
(SIGNED64, UNSIGNED64): Delete.
|
|
|
|
(ALU64_ADD): Don't rely on bit endianness.
|
|
|
|
(ALU64_BEGIN): Define.
|
|
|
|
|
|
|
|
* sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
|
|
|
|
(EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
|
|
|
|
|
|
|
|
* sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
|
|
|
|
suffix - u64, LL - to 64 bit constants.
|
|
|
|
|
1997-09-04 03:47:39 +00:00
|
|
|
Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-09-04 10:08:44 +00:00
|
|
|
* sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
|
|
|
|
|
|
|
|
* sim-utils.h (NZALLOC): Define - zalloc * N.
|
|
|
|
|
|
|
|
* sim-hrw.c (sim_read, sim_write): New file. Provide generic
|
|
|
|
implementation of read/write functions.
|
|
|
|
|
|
|
|
* Make-common.in (sim-hrw.o): New target.
|
|
|
|
|
|
|
|
* sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
|
|
|
|
memory.
|
|
|
|
|
|
|
|
* sim-memopt.c (memory_option_handler): Implement memory-size
|
|
|
|
command. Implement memory-alias command. Let memory-delete delete
|
|
|
|
all memory regions.
|
|
|
|
(add_memopt): New function. Add a memory region.
|
|
|
|
(do_memopt_delete): New function. Delete a memory region.
|
|
|
|
|
1997-09-04 03:47:39 +00:00
|
|
|
* sim-utils.c (sim_elapsed_time_get): Never return zero.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_detach): New function.
|
|
|
|
(sim_core_map_detach): New function. Perform the actual detach.
|
|
|
|
(sim_core_init): Move initialization code from here.
|
|
|
|
(sim_core_install): To here.
|
|
|
|
(sim_core_uninstall): And here.
|
|
|
|
|
|
|
|
* sim-module.c: Add memopt module.
|
|
|
|
|
|
|
|
* sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
|
|
|
|
simulator base type.
|
|
|
|
|
|
|
|
* Make-common.in (sim_main_headers): Add sim-memopt.h
|
|
|
|
(sim-memopt.o): New target.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_install): Add core_options to the option
|
|
|
|
table.
|
|
|
|
|
|
|
|
* sim-watch.c (watch_options): Make --delete-watch a synonym for
|
|
|
|
--watch-delete.
|
|
|
|
|
|
|
|
* sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
|
|
|
|
comments.
|
|
|
|
|
|
|
|
* sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
|
|
|
|
address_word, add mask member.
|
|
|
|
|
|
|
|
* sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
|
|
|
|
address_word, allow for 64bit targets in 32bit host. Add modulo
|
|
|
|
argument.
|
|
|
|
(sim_core_map_attach): Ditto.
|
|
|
|
(new_sim_core_mapping): Ditto.
|
|
|
|
(sim_core_translate): Mask address when modulo memory.
|
|
|
|
|
1997-09-04 00:49:57 +00:00
|
|
|
Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
|
|
|
|
|
1997-09-04 00:57:21 +00:00
|
|
|
* sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
|
|
|
|
|
1997-09-04 00:49:57 +00:00
|
|
|
* gdbinit.in: New file.
|
|
|
|
* aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
|
|
|
|
* Make-common.in (distclean): Delete .gdbinit.
|
|
|
|
(.gdbinit): Add rule for.
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
* Make-common.in (cgen-run.o): Add rule for.
|
|
|
|
|
1997-09-03 07:26:11 +00:00
|
|
|
Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-resume.c (sim_resume): Suspend/resume the simulator.
|
|
|
|
|
|
|
|
* sim-events.c (sim_watch_valid): Compute total elapsed time from
|
|
|
|
both resumed and previous elapsed time.
|
|
|
|
(sim_events_init): Set initial_wallclock and current_wallclock to
|
|
|
|
zero.
|
|
|
|
(sim_events_install): Install sim_events_suspend and
|
|
|
|
sim_events_resume.
|
|
|
|
(sim_events_watch_clock): Allow for suspended simulator when
|
|
|
|
computing the time of the clock event.
|
|
|
|
|
|
|
|
* sim-events.h (struct _sim_event): Add resume_wallclock, rename
|
|
|
|
initial_wallclock to elapsed_wallclock, set both to zero.
|
|
|
|
(sim_events_init, sim_events_uninstall): Delete prototypes.
|
|
|
|
|
|
|
|
* sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
|
|
|
|
|
|
|
|
* sim-module.c(sim_module_resume, sim_module_suspend): New
|
|
|
|
functions.
|
|
|
|
|
1997-09-03 04:06:27 +00:00
|
|
|
Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_map_attach): Clarify memory overlap error
|
|
|
|
message.
|
|
|
|
|
1997-09-02 21:58:58 +00:00
|
|
|
Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
|
1997-09-02 22:03:41 +00:00
|
|
|
* Make-common.in (TAGS): Likewise.
|
1997-09-02 21:58:58 +00:00
|
|
|
* sim-n-bits.h: Add TAGS comments for all functions.
|
|
|
|
* sim-n-core.h: Likewise.
|
|
|
|
* sim-n-endian.h: Likewise.
|
|
|
|
|
1997-09-01 03:26:31 +00:00
|
|
|
Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
|
|
|
|
kind.
|
|
|
|
|
|
|
|
* sim-base.h (sim_state_alloc): Add callback and kind arguments.
|
|
|
|
|
|
|
|
* sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
|
|
|
|
definition.
|
|
|
|
|
1997-08-30 00:02:19 +00:00
|
|
|
Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
|
|
|
|
(DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
|
|
|
|
|
|
|
|
Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_map_attach): Cast attach enum to int.
|
|
|
|
(sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
|
|
|
|
nr_transfered and nr_this_transfer unsigned.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_tickn): N is signed, as limited to
|
|
|
|
MAXINT.
|
|
|
|
|
|
|
|
* sim-n-endian.h (offset_N): Change size to unsigned.
|
|
|
|
|
|
|
|
* callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
|
|
|
|
|
|
|
|
Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
|
|
|
|
|
|
|
|
* sim-options.c (sim_parse_args): Use dupargv.
|
|
|
|
|
1997-08-28 17:37:30 +00:00
|
|
|
Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* sim-options.c (standard_option_handler): Use xstrdup, not strdup.
|
|
|
|
|
1997-08-28 09:44:42 +00:00
|
|
|
Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
|
|
|
|
base type.
|
|
|
|
|
|
|
|
* sim-options.c (standard_options): Add --architecture=MACHINE and
|
|
|
|
--target=TARGET options.
|
|
|
|
(OPTION_ARCHITECTURE, OPTION_TARGET): Define.
|
|
|
|
(standard_option_handler): Handle architecture and target options.
|
|
|
|
(bfd.h): Include.
|
|
|
|
|
|
|
|
* sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
|
|
|
|
bfd_openr.
|
|
|
|
(sim_analyze_program): Set prog_bfd architecture from
|
|
|
|
STATE_ARCHITECTURE if known.
|
|
|
|
|
1997-08-27 22:43:18 +00:00
|
|
|
Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
* config.in: Ditto.
|
|
|
|
|
|
|
|
Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (enable-sim-warnings): Remove comment stating
|
|
|
|
that option does not apply to certain files.
|
|
|
|
|
1997-08-27 07:56:27 +00:00
|
|
|
Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
|
|
|
|
MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
|
|
|
|
offset from MSB/LSB.
|
|
|
|
|
|
|
|
* sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
|
|
|
|
access address of sub word quantity of a hosts 16, 32, 64 bit word
|
|
|
|
type.
|
|
|
|
(V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
|
|
|
|
(U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
|
|
|
|
(V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
|
|
|
|
return N*2 byte value with argument in Hi/Lo word. Renamed from
|
|
|
|
V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
|
|
|
|
|
|
|
|
* sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
|
|
|
|
(ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
|
|
|
|
so that bit offset is explicit.
|
|
|
|
|
1997-08-27 04:44:41 +00:00
|
|
|
Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-utils.c (sim_analyze_program): Add prog_name argument.
|
|
|
|
Update STATE_PROG_BFD when needed with a dup'd copy of the
|
|
|
|
program.
|
|
|
|
|
|
|
|
* sim-config.c (sim_config): Delete ABFD argument, use
|
|
|
|
STATE_PROG_BFD directly.
|
|
|
|
|
|
|
|
Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Pass the open ABFD to sim_create_inferior.
|
|
|
|
|
|
|
|
* nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
|
|
|
|
and sim_load.
|
|
|
|
(bfd.h): Include.
|
|
|
|
|
|
|
|
* sim-hload.c (sim_load): New file. Implement generic sim_load for
|
|
|
|
hardware only simulator targets.
|
|
|
|
|
|
|
|
* Make-common.in (sim-hload.o): Add rule.
|
|
|
|
|
1997-08-27 00:35:34 +00:00
|
|
|
Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
|
|
|
|
used by copyargv and freeargv.
|
|
|
|
|
|
|
|
* sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
|
|
|
|
STATE_PROG_ARGV, not just a pointer.
|
|
|
|
|
1997-08-25 23:14:25 +00:00
|
|
|
Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
* config.in: Ditto.
|
|
|
|
|
|
|
|
Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (sim-endian): Add second argument to
|
|
|
|
SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
|
|
|
|
default endian when not hardwired.
|
|
|
|
|
|
|
|
* sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
|
|
|
|
else failes value for target byte order.
|
|
|
|
|
|
|
|
* sim-config.c (sim_config): Add abfd arguments. Set
|
|
|
|
STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
|
|
|
|
from same.
|
|
|
|
(sim_config): Return SIM_RC, don't abort.
|
|
|
|
(bfd.h): Include.
|
|
|
|
|
|
|
|
* run.c (main): Update call to sim_open - add ABFD argument.
|
|
|
|
* nrun.c (main): Add NULL ABFD argument.
|
|
|
|
|
1997-08-14 19:53:10 +00:00
|
|
|
Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (os_poll_quit): Make static.
|
|
|
|
Call sim_cb_eprintf, not p->eprintf.
|
|
|
|
(sim_cb_printf, sim_cb_eprintf): New functions.
|
1997-08-25 23:14:25 +00:00
|
|
|
* sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
|
|
|
|
|
|
|
|
* sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
|
|
|
|
sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
|
|
|
|
sim-utils.h. #include sim-utils.h.
|
|
|
|
* sim-utils.h: Above decls moved here.
|
|
|
|
(sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
|
|
|
|
|
|
|
|
* sim-watch.c (action_watchpoint): Fix thinkos.
|
1997-08-14 19:53:10 +00:00
|
|
|
|
|
|
|
Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
|
|
|
|
|
|
|
|
* sim-types.h: Fix defs of 64 bit data types for MSVC.
|
|
|
|
|
1997-07-22 17:36:23 +00:00
|
|
|
Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_write_unaligned_N): Add missing break
|
|
|
|
to FORCED_ALIGNMENT case.
|
|
|
|
|
1997-06-06 02:34:55 +00:00
|
|
|
Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (target_to_host_open): Handle hosts with O_BINARY.
|
|
|
|
|
|
|
|
Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
|
|
|
|
|
|
|
|
* Make-common.in (libsim.a): Fix typo.
|
|
|
|
|
1997-06-05 04:51:34 +00:00
|
|
|
Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* nrun.c (main): Verify the structure returned before using it.
|
|
|
|
|
1997-06-04 02:47:49 +00:00
|
|
|
Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-config.h (WITH_ENGINE): Enable the sim-engine module by
|
|
|
|
default.
|
|
|
|
|
|
|
|
* sim-engine.c (sim_engine_install): New function. Install the
|
|
|
|
engine init functions.
|
|
|
|
(sim_engine_init): [Re]initialize the simulator engine.
|
|
|
|
|
|
|
|
* sim-module.c: Add sim_engine to list of modules that always
|
|
|
|
install.
|
|
|
|
|
1997-06-03 23:03:50 +00:00
|
|
|
Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
|
|
|
|
to remove the old watchpoint, not delete_watchpoint.
|
|
|
|
(watch_option_handler): Action the correct watchpoint, not just
|
|
|
|
cycles.
|
|
|
|
|
|
|
|
Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
|
|
|
|
both low and high word.
|
|
|
|
(sim_core_write_aligned_N): Ditto.
|
|
|
|
|
|
|
|
* sim-trace.c (set_trace_options): Delete code explicitly setting
|
|
|
|
core->trace.
|
|
|
|
|
|
|
|
* sim-options.c (sim_print_help): Call the list commands if not a
|
|
|
|
standalone simulator.
|
|
|
|
(sim_print_help): Advise that some options may not be applicable.
|
|
|
|
|
|
|
|
* sim-trace.c (set_trace_options): Assume core present.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_schedule_after_signal): Overflow signal
|
|
|
|
buffer when full not almost full.
|
|
|
|
|
1997-05-27 06:48:20 +00:00
|
|
|
Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-05-27 11:25:47 +00:00
|
|
|
* sim-events.c (sim_events_process): Don't blat the event queue
|
|
|
|
when processing watchpoints.
|
|
|
|
|
|
|
|
* sim-watch.h: Make arg unsigned long - stop sign extension.
|
|
|
|
|
|
|
|
* sim-events.c (sim_watch_valid): rewrite so debugable.
|
|
|
|
|
|
|
|
* sim-config.h (WITH_XOR_ENDIAN): Default to zero.
|
|
|
|
|
1997-05-27 06:48:20 +00:00
|
|
|
* sim-watch.c (schedule_watchpoint): Add is_within option so that
|
|
|
|
inequality test is possible.
|
|
|
|
(handle_watchpoint): Re-pass is_within arg.
|
|
|
|
(watch_option_handler): When `!' prefix to pc-watchpoint arg pass
|
|
|
|
0 to schedule_watchpoint's is_within arg.
|
|
|
|
(sim_watchpoint_init): Re-pass is_within arg.
|
|
|
|
|
|
|
|
* sim-options.c (sim_print_help): Add is_command argument. Don't
|
|
|
|
include -- prefix when called from the command line interpreter.
|
|
|
|
|
|
|
|
* sim-watch.c (schedule_watchpoint): Pass true is_within argument.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_watch_sim): Add is_within argument,
|
|
|
|
zero indicates that the test should be reversed.
|
|
|
|
(sim_events_watch_core): Ditto.
|
|
|
|
(WATCH_CORE): Compare range against is_within.
|
|
|
|
(WATCH_SIM): Ditto.
|
|
|
|
|
|
|
|
Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
|
|
|
|
|
|
|
|
* sim-events.c (WATCH_CORE): Pass NULL cpu argument to
|
|
|
|
sim_core_read_buffer. Check nr-bytes transfered.
|
|
|
|
|
|
|
|
* sim-core.h (sim_core_common): Define a new struct that contains
|
|
|
|
the common data. to sd and cpu structures.
|
|
|
|
* sim-core.c (sim_core_attach): Update.
|
|
|
|
(sim_core_init): Update. Remember to copy initialized data to each
|
|
|
|
cpu.
|
|
|
|
(sim_core_find_mapping): Ditto.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_read_buffer): Add cpu argument.
|
|
|
|
(sim_core_write_buffer): Ditto.
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
|
|
|
|
transfer use xor version of read buffer.
|
|
|
|
(sim_core_write_unaligned_N): Ditto for write.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_xor_read_buffer): New function implement
|
|
|
|
xor-endian data read breaking transfer up into xor-endian sized
|
|
|
|
blocks.
|
|
|
|
(sim_core_xor_write_buffer): Ditto for write.
|
|
|
|
(reverse_n): Reverse order of arbitrary number of bytes in buffer
|
|
|
|
- needed for xor-endian transfers.
|
|
|
|
|
1997-05-23 09:19:43 +00:00
|
|
|
Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-inline.h: Review description.
|
|
|
|
|
|
|
|
* sim-core.h, sim-core.c: Reduce number of functions being inlined
|
|
|
|
to just those involved in data transfers and configuration.
|
|
|
|
|
|
|
|
* sim-xcat.h (XSTRING): New macro, map macro definition onto
|
|
|
|
string.
|
|
|
|
* sim-n-core.h (sim_core_read_aligned_N): Use.
|
|
|
|
(sim_core_read_unaligned_N): Ditto.
|
|
|
|
(sim_core_read_unaligned_N): Ditto..
|
|
|
|
(sim_core_write_unaligned_N): Ditto.
|
|
|
|
|
|
|
|
* sim-core.h: Add xor endian bitmap to main structure. *
|
|
|
|
|
|
|
|
sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
|
|
|
|
endian.
|
|
|
|
(sim_core_read_aligned_N): Ditto.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_set_xor_endian): New function.
|
|
|
|
(sim_core_attach): Don't overwrite the per-cpu xor map when
|
|
|
|
cloning the global core.
|
|
|
|
|
1997-05-23 01:29:16 +00:00
|
|
|
Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-engine.h: Update below so that it is using an enumerated
|
|
|
|
type.
|
|
|
|
|
1997-05-22 13:16:03 +00:00
|
|
|
Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
|
|
|
|
|
|
|
|
* sim-engine.c (sim_engine_restart):
|
|
|
|
* sim-resume.c (sim_resume): Change longjmp param/setjmp
|
|
|
|
return value used for simulator restart from 0 to 2.
|
|
|
|
|
1997-05-21 06:54:13 +00:00
|
|
|
Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* cgen-scache.c (scache_option_handler): Add is_command arg.
|
|
|
|
|
|
|
|
* sim-model.c (model_option_handler): Add is_command argument.
|
|
|
|
|
|
|
|
* sim-profile.c (profile_option_handler): Add is_command arg.
|
|
|
|
|
|
|
|
* sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
|
|
|
|
involved.
|
|
|
|
|
|
|
|
* sim-module.c (sim_module_add_init_fn): Call init fn in the same
|
|
|
|
order that they are registered.
|
|
|
|
|
|
|
|
* sim-options.h (OPTION_HANDLER): Add argument to differentiate
|
|
|
|
between option and command line processing.
|
|
|
|
|
|
|
|
* sim-options.c: Include stdlib.h, ctype.h.
|
|
|
|
|
|
|
|
* Make-common.in (sim-watch.o): Add rule.
|
|
|
|
(sim_main_headers): Assume sim-assert.h included.
|
|
|
|
(sim-*.o): Simplify make rule.
|
|
|
|
|
|
|
|
* sim-module.c: Add sim_watch_install to module list.
|
|
|
|
|
|
|
|
Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-base.h (STATE_LOADED_P): New predicate. Set once everything
|
|
|
|
has been loaded.
|
|
|
|
|
|
|
|
* sim-trace.c (trace_install): Check magic. Include sim-assert.h.
|
|
|
|
* sim-events.c (sim_events_install): Ditto.
|
|
|
|
* sim-core.c (sim_core_install): Ditto.
|
|
|
|
* sim-model.c (model_install): Ditto.
|
|
|
|
* sim-options.c (standard_install): Ditto.
|
|
|
|
* sim-profile.c (profile_install): Ditto.
|
|
|
|
* sim-reason.c (sim_stop_reason): Ditto.
|
|
|
|
* sim-run.c (sim_engine_run): Ditto.
|
|
|
|
* sim-utils.c (sim_analyze_program): Ditto.
|
|
|
|
|
|
|
|
* sim-module.c (modules): Make profile_install and trace_install
|
|
|
|
optional.
|
|
|
|
|
|
|
|
* sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
|
|
|
|
|
|
|
|
* sim-options.c (standard_option_handler): Set the byte order.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_process): Allow multi tick processing.
|
|
|
|
(sim_events_tickn): New function - multi cycle tick.
|
|
|
|
|
|
|
|
* sim-events.h (sim_events_tickn, sim_events_timewarp): Add
|
|
|
|
prototypes. Under development.
|
|
|
|
(sim_events): Replace processing with nr_ticks_to_process.
|
|
|
|
|
|
|
|
Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* nrun.c (main): Pass callbacks to sim_open instead of using
|
|
|
|
sim_set_callbacks.
|
|
|
|
|
|
|
|
* run.c (main): Ditto.
|
|
|
|
|
1997-05-19 03:42:33 +00:00
|
|
|
Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-05-19 06:55:56 +00:00
|
|
|
* sim-events.c (sim_events_zalloc): Signal save memory allocator -
|
|
|
|
stop tk interrupting malloc calls.
|
|
|
|
(sim_events_zalloc): Converse.
|
|
|
|
|
|
|
|
* Make-common.in (sim_main_headers): Add sim-events.h.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_schedule_after_signal): Change return
|
|
|
|
type to void - signal events are strictly internal.
|
|
|
|
(sim_events_init): Allocate a finite buffer for signal events.
|
|
|
|
(sim_events_schedule_after_signal): Enter signal events into the
|
|
|
|
signal buffer.
|
|
|
|
|
|
|
|
* sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
|
|
|
|
(sim_engine_restart): Ditto.
|
|
|
|
(sim_engine_abort): Ditto.
|
|
|
|
* sim-stop.c (sim_stop): Ditto.
|
|
|
|
(control_c_simulation): Ditto.
|
|
|
|
* sim-resume.c (sim_resume): Ditto.
|
|
|
|
(has_stepped): Ditto.
|
|
|
|
* sim-abort.c (sim_engine_abort): Ditto.
|
|
|
|
|
1997-05-19 03:42:33 +00:00
|
|
|
* sim-basics.h (transfer_type): New type.
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_signal): New function. Print core signal
|
|
|
|
information.
|
|
|
|
(sim_core_find_mapping): Add transfer argument.
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
|
|
|
|
SIM_CORE_SIGNAL if a recoverable abort.
|
|
|
|
* sim-core.c (sim_core_find_mapping): Ditto.
|
|
|
|
|
|
|
|
Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_find_mapping): Replace calls to
|
|
|
|
sim_io_error to more resiliant sim_engine_abort.
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_read_unaligned_N): Ditto.
|
|
|
|
(sim_core_write_unaligned_N): Ditto.
|
|
|
|
|
|
|
|
Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-module.c: Add sim_events_install to list.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_install, sim_events_uninstall): Clonse
|
|
|
|
from sim_core_*.
|
|
|
|
(sim_events_init): Now returns SIG_RC.
|
|
|
|
|
|
|
|
* sim-run.c: New file. Generic sim_engine_run.
|
|
|
|
* sim-reason.c: New file. Generic sim_stop_reason.
|
|
|
|
* sim-stop.c: New file. Generic sim_stop.
|
|
|
|
* sim-resume.c: New file. Generic sim_resume.
|
|
|
|
|
|
|
|
* Make-common.in (sim-engine.o): Add rule.
|
|
|
|
(sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
|
|
|
|
|
|
|
|
* sim-engine.h, sim-engine.c: New file. Provide generic
|
|
|
|
implementation of sim_engine_halt, sim_engine_error. et.al.
|
|
|
|
|
|
|
|
* sim-base.h (sim_state_base): Add member halt.
|
|
|
|
(sim-engine.h): Include.
|
|
|
|
|
|
|
|
* sim-events.h (sim_event_handler): Always pass SIM_DESC to event
|
|
|
|
handlers.
|
|
|
|
* sim-events.c (sim_events_poll): Update event handler.
|
|
|
|
|
|
|
|
Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
|
|
|
|
|
|
|
|
* sim-events.h, sim-events.c (sim_events_watch_clock): New
|
|
|
|
function.
|
|
|
|
(sim_events_watch_sim): New function.
|
|
|
|
(sim_events_watch_core): New function.
|
|
|
|
(sim_watch_valid): New function.
|
|
|
|
(sim_events_preprocess): New function.
|
|
|
|
(sim_events_process): Process the watchpoints as well as the timer
|
|
|
|
queue.
|
|
|
|
(sim_events_tick): Check WORK_PENDING instead of the hold queue.
|
|
|
|
(sim_events_deschedule): Check all the queues when removing an
|
|
|
|
event.
|
|
|
|
(sim_events_init): Ditto for cleaning.
|
|
|
|
|
|
|
|
Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-fpu.c (is_ufpu_number): Comment out - currently unused.
|
|
|
|
|
1997-05-19 01:24:31 +00:00
|
|
|
Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (os_open): Type of arg flags is int.
|
|
|
|
|
1997-05-17 02:28:11 +00:00
|
|
|
Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
|
|
|
|
just like normal numbers as per IEEE rules.
|
|
|
|
|
1997-05-16 22:39:08 +00:00
|
|
|
Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (os_close): Mark the descriptor as being
|
|
|
|
available if the close succeeded.
|
|
|
|
(os_open): Pass 0644 as the mode of the file being created.
|
|
|
|
|
1997-05-15 02:22:37 +00:00
|
|
|
Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
1997-05-15 16:39:38 +00:00
|
|
|
* sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
|
|
|
|
float.
|
|
|
|
|
|
|
|
* sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
|
|
|
|
* sim-lnline.h: Update.
|
|
|
|
|
|
|
|
* sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
|
1997-05-15 02:22:37 +00:00
|
|
|
conversion functions.
|
1997-05-15 16:39:38 +00:00
|
|
|
(sim_fpu_to{32,64}[iu]): New fp2int functions.
|
1997-05-15 02:22:37 +00:00
|
|
|
|
|
|
|
* sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
|
|
|
|
compare functions. Replacing.
|
|
|
|
(sim_fpu_cmp): This. Delete.
|
|
|
|
|
1997-05-12 04:57:49 +00:00
|
|
|
Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_find_mapping): Call engine_error not
|
|
|
|
sim_io_error when possible.
|
|
|
|
|
|
|
|
Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
|
|
|
|
|
|
|
|
* sim-endian.h (V1_H2): Add macro's to insert a word into a
|
|
|
|
high/low double word.
|
|
|
|
|
|
|
|
* sim-trace.h: Remove definition of attribute - defined in
|
|
|
|
sim_basics.h.
|
|
|
|
|
1997-05-12 04:30:38 +00:00
|
|
|
Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-options.h (struct OPTION): Add doc_opt as the documenting
|
|
|
|
name of the option - or family of options.
|
|
|
|
|
|
|
|
* sim-options.c (sim_args_command): Match command `a-b c' with
|
|
|
|
option `--a-b-c' from option table.
|
|
|
|
|
1997-05-08 05:28:20 +00:00
|
|
|
Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-options.c (sim_print_help): For optional arguments, wrap
|
|
|
|
them in [].
|
|
|
|
|
|
|
|
* sim-trace.c (set_trace_options): New function, handle optional
|
|
|
|
argument and multiple assignment.
|
|
|
|
(trace_option_handler): Update.
|
|
|
|
|
|
|
|
* sim-trace.c (trace_option_handler): Trace branch and not fpu
|
|
|
|
when branch tracing selected.
|
|
|
|
|
1997-05-07 13:58:52 +00:00
|
|
|
Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-trace.c (trace_one_insn): Make a va-args function.
|
|
|
|
|
|
|
|
* sim-trace.c (trace_vprintf): New function, va-arg version of
|
|
|
|
trace_printf.
|
|
|
|
|
1997-05-06 23:38:31 +00:00
|
|
|
Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* sim-trace.c (trace_uninstall): Don't close a file twice.
|
1997-05-06 23:40:31 +00:00
|
|
|
* sim-profile.c (profile_uninstall): Likewise.
|
1997-05-06 23:38:31 +00:00
|
|
|
|
1997-05-06 10:21:57 +00:00
|
|
|
Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* sim-trace.c (toplevel): Include bfd.h.
|
|
|
|
(trace_options): Note that --trace-linenum also turns on
|
1997-05-06 19:27:57 +00:00
|
|
|
--trace-insn. Add --trace-{branch,semantics}.
|
1997-05-06 10:21:57 +00:00
|
|
|
(trace_option_handler): If --trace-linenum, also turn on
|
1997-05-06 19:27:57 +00:00
|
|
|
--trace-insn. Add --trace-branch support. If --trace-semantics,
|
|
|
|
turn on ALU, FPU, branch, and memory tracing.
|
1997-05-06 10:21:57 +00:00
|
|
|
(trace_one_insn): New function to trace an instruction. Support
|
|
|
|
--trace-linenum.
|
1997-05-06 19:27:57 +00:00
|
|
|
(OPTION_TRACE_*): Use an enum, rather than lots of defines.
|
1997-05-06 10:21:57 +00:00
|
|
|
|
1997-05-06 19:27:57 +00:00
|
|
|
* sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
|
|
|
|
(MAX_TRACE_VALUES): Use 32, not 12 by default.
|
|
|
|
(TRACE_branch): Add new mask.
|
|
|
|
(TRACE_*_P): Define all possible trace_p macros.
|
1997-05-06 10:21:57 +00:00
|
|
|
(trace_one_insn): Declare function.
|
|
|
|
|
1997-05-05 18:10:05 +00:00
|
|
|
Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* sim-trace.h (__attribute__): Define as nothing if not GNU C or
|
|
|
|
GNU C doesn't support __attributes__.
|
|
|
|
({trace,debug}_printf): Add attribute's so -Wformat can check the
|
|
|
|
format strings.
|
|
|
|
|
1997-05-05 13:21:04 +00:00
|
|
|
Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-config.h (FORCED_ALIGNMENT): New alignment option -
|
|
|
|
addresses are masked forcing them to be correctly aligned.
|
|
|
|
(WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
|
|
|
|
* sim-config.c (config_alignment_to_a): Update.
|
|
|
|
|
|
|
|
* sim-core.h (sim_cpu_core): New data type contains cpu specific
|
|
|
|
core data.
|
|
|
|
* sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
|
|
|
|
type.
|
|
|
|
* sim-core.c (sim_core_attach): Add CPU argument. Ready for
|
|
|
|
processor specific core maps.
|
|
|
|
(sim_core_map_attach): Copy the core map data to each of the
|
|
|
|
processor specific core data structures.
|
|
|
|
* sim-core.c (sim_core_find_mapping): Update.
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
|
|
|
|
(sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
|
|
|
|
(sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
|
|
|
|
alternatives that handle unaligned addresses.
|
|
|
|
(sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
|
|
|
|
with just CPU arg.
|
|
|
|
* cgen-utils.c (sim_disassemble_insn): Update.
|
|
|
|
|
1997-05-05 12:46:25 +00:00
|
|
|
Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
|
|
|
|
tracing.
|
|
|
|
|
|
|
|
* sim-fpu.h, sim-fpu.c: New files - prototype for generic target
|
|
|
|
fpu support.
|
|
|
|
|
|
|
|
* sim-inline.h, sim-inline.c: Add support for SIM_FPU.
|
|
|
|
|
1997-05-02 08:41:15 +00:00
|
|
|
Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.c (sim_core_map_to_str): New function ascii equivalent
|
|
|
|
to map type.
|
|
|
|
|
|
|
|
* sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
|
|
|
|
statement.
|
|
|
|
|
|
|
|
Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
|
|
|
|
|
|
|
|
* cgen-trace.c: Prepend additional trace_printf argument.
|
|
|
|
|
|
|
|
* cgen-utils.c (sim_disassemble_insn): Add additional core
|
|
|
|
arguments.
|
|
|
|
|
|
|
|
Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* nrun.c (main): Catch/report errorenous simulator states.
|
|
|
|
|
|
|
|
* sim-module.c: #include "libiberty.h" so that xmalloc is defined.
|
|
|
|
* sim-trace.c: #include string.h/strings.h so that memset is
|
|
|
|
defined.
|
|
|
|
* sim-utils.c: Ditto.
|
|
|
|
* sim-profile.c: Ditto. And stdlib.h.
|
|
|
|
(print_bar): Only define when used by instruction or memory profiler.
|
|
|
|
|
|
|
|
* sim-options.c (standard_option_handler): Make ul more local.
|
|
|
|
|
|
|
|
* sim-load.c (sim_load_file): Make the name constant.
|
|
|
|
(sim_load_file): Passify gcc.
|
|
|
|
|
|
|
|
* sim-utils.h: New file, pre-declare utilites in corresponding .c
|
|
|
|
file.
|
|
|
|
* sim-utils.c, sim-load.c: Include sim-utils.h.
|
|
|
|
|
|
|
|
* sim-base.h (sim_cpu): Pre define here so available to all.
|
|
|
|
|
|
|
|
* sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
|
|
|
|
Restore the sim_cpu and instruction_address arguments so that full
|
|
|
|
information is available to the abort function.
|
|
|
|
* sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
|
|
|
|
* sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
|
|
|
|
|
|
|
|
* sim-trace.h, sim-trace.c (trace_option_handler): Add interim
|
|
|
|
tracing support for sim-events and sim-core.
|
|
|
|
(trace_option_handler): Convert #if to if where possible so always
|
|
|
|
compiled/checked by C compiler.
|
|
|
|
* sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
|
|
|
|
|
|
|
|
* sim-base.h: Adjust comment documenting how to define the cpu
|
|
|
|
structure.
|
|
|
|
(sim_state_base): Add sim_core and sim_events to simulator base
|
|
|
|
object.
|
|
|
|
|
|
|
|
* sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
|
|
|
|
* sim-core.c (sim_core_init, sim_core_attach,
|
|
|
|
sim_core_find_mapping): Update.
|
|
|
|
* sim-events.c (ETRACE, sim_events_init, sim_events_time,
|
|
|
|
update_time_from_event, insert_sim_event,
|
|
|
|
sim_events_schedule_after_signal, sim_events_deschedule,
|
|
|
|
sim_events_tick): Ditto.
|
|
|
|
|
|
|
|
* sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
|
|
|
|
sim-model.h): Move #includes from here.
|
|
|
|
* sim-base.h: To here.
|
|
|
|
(sim-core.h, sim-events.h, sim-io.h): Include also
|
|
|
|
|
|
|
|
Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (default_callback): Missing initialisers.
|
|
|
|
|
* Makefile.in (sim-options_h): Define.
(sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
(sim-model.o): Add new rule.
(cgen-{scache,trace,utils}.o): Add new rules.
* aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
* cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
Indent output by 2 spaces.
* cgen-scache.h (scache_print_profile): Update.
* cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
Use trace_printf, not fprintf.
(trace_extract): Use trace_printf, not cgen_trace_printf.
* genmloop.sh (!FAST case): Increment `insn_count'.
* sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
(sim_cpu_base): Rename member `sd' to `state' to be consistent with
access macro's name.
* sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
Change return type to SIM_RC.
(sim_core_{install,uninstall}): New functions.
* sim-core.h (sim_core_{install,uninstall}): Declare.
(sim_core_init): Use EXTERN_SIM_CORE to define it.
Change return type to SIM_RC.
* sim-model.h (models,machs,model_install): Declare.
* sim-module.c (modules): Add scache_install, model_install.
(sim_post_argv_init): Set cpu->state backlinks.
* sim-options.c (standard_options): Delete --simcache-size,--max-insns.
(standard_option_handler): Likewise.
* sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
sim-profile.h.
(*): Assume ANSI C.
(profile_options): Delete --profile-simcache.
(profile_option_handler): Likewise.
(profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
spaces.
(profile_print_{memory,model}): Likewise.
(profile_print_simcache): Delete.
(profile_print_speed): New function.
(profile_print): Rewrite.
* sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
(WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
(PROFILE_DATA): Delete members simcache_{hits,misses}.
(PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
(PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
(profile_print): Update prototype.
1997-05-01 18:05:37 +00:00
|
|
|
Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
1997-05-02 00:32:05 +00:00
|
|
|
* sim-utils.c (sim_add_commas): New function.
|
|
|
|
* sim-basics.h (sim_add_commas): Add prototype.
|
|
|
|
* cgen-scache.c (scache_print_profile): Print commas in numbers.
|
|
|
|
* sim-profile.c (COMMAS): New macro.
|
|
|
|
(print_*): Use it to print commas in numbers.
|
|
|
|
|
1997-05-01 20:53:43 +00:00
|
|
|
* configure: Regenerated.
|
|
|
|
|
|
|
|
* cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
|
|
|
|
(cgen_state): New member run_fast_p.
|
|
|
|
(cgen_init): Add prototype.
|
|
|
|
(sim_disassemble_insn): New arg `cpu'.
|
|
|
|
* cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
|
|
|
|
* cgen-utils.c (cgen_init): New function.
|
|
|
|
(sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
|
|
|
|
* genmloop.sh: Call engine_halt if loop exits.
|
|
|
|
|
* Makefile.in (sim-options_h): Define.
(sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
(sim-model.o): Add new rule.
(cgen-{scache,trace,utils}.o): Add new rules.
* aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
* cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
Indent output by 2 spaces.
* cgen-scache.h (scache_print_profile): Update.
* cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
Use trace_printf, not fprintf.
(trace_extract): Use trace_printf, not cgen_trace_printf.
* genmloop.sh (!FAST case): Increment `insn_count'.
* sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
(sim_cpu_base): Rename member `sd' to `state' to be consistent with
access macro's name.
* sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
Change return type to SIM_RC.
(sim_core_{install,uninstall}): New functions.
* sim-core.h (sim_core_{install,uninstall}): Declare.
(sim_core_init): Use EXTERN_SIM_CORE to define it.
Change return type to SIM_RC.
* sim-model.h (models,machs,model_install): Declare.
* sim-module.c (modules): Add scache_install, model_install.
(sim_post_argv_init): Set cpu->state backlinks.
* sim-options.c (standard_options): Delete --simcache-size,--max-insns.
(standard_option_handler): Likewise.
* sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
sim-profile.h.
(*): Assume ANSI C.
(profile_options): Delete --profile-simcache.
(profile_option_handler): Likewise.
(profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
spaces.
(profile_print_{memory,model}): Likewise.
(profile_print_simcache): Delete.
(profile_print_speed): New function.
(profile_print): Rewrite.
* sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
(WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
(PROFILE_DATA): Delete members simcache_{hits,misses}.
(PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
(PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
(profile_print): Update prototype.
1997-05-01 18:05:37 +00:00
|
|
|
* Makefile.in (sim-options_h): Define.
|
|
|
|
(sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
|
|
|
|
(sim-model.o): Add new rule.
|
|
|
|
(cgen-{scache,trace,utils}.o): Add new rules.
|
|
|
|
* aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
|
|
|
|
* cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
|
|
|
|
Indent output by 2 spaces.
|
|
|
|
* cgen-scache.h (scache_print_profile): Update.
|
|
|
|
* cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
|
|
|
|
Use trace_printf, not fprintf.
|
|
|
|
(trace_extract): Use trace_printf, not cgen_trace_printf.
|
|
|
|
* genmloop.sh (!FAST case): Increment `insn_count'.
|
|
|
|
* sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
|
|
|
|
(sim_cpu_base): Rename member `sd' to `state' to be consistent with
|
|
|
|
access macro's name.
|
|
|
|
* sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
|
|
|
|
Change return type to SIM_RC.
|
|
|
|
(sim_core_{install,uninstall}): New functions.
|
|
|
|
* sim-core.h (sim_core_{install,uninstall}): Declare.
|
|
|
|
(sim_core_init): Use EXTERN_SIM_CORE to define it.
|
|
|
|
Change return type to SIM_RC.
|
|
|
|
* sim-model.h (models,machs,model_install): Declare.
|
|
|
|
* sim-module.c (modules): Add scache_install, model_install.
|
|
|
|
(sim_post_argv_init): Set cpu->state backlinks.
|
|
|
|
* sim-options.c (standard_options): Delete --simcache-size,--max-insns.
|
|
|
|
(standard_option_handler): Likewise.
|
|
|
|
* sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
|
|
|
|
sim-profile.h.
|
|
|
|
(*): Assume ANSI C.
|
|
|
|
(profile_options): Delete --profile-simcache.
|
|
|
|
(profile_option_handler): Likewise.
|
|
|
|
(profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
|
|
|
|
spaces.
|
|
|
|
(profile_print_{memory,model}): Likewise.
|
|
|
|
(profile_print_simcache): Delete.
|
|
|
|
(profile_print_speed): New function.
|
|
|
|
(profile_print): Rewrite.
|
|
|
|
* sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
|
|
|
|
(WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
|
|
|
|
(PROFILE_DATA): Delete members simcache_{hits,misses}.
|
|
|
|
(PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
|
|
|
|
(PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
|
|
|
|
(profile_print): Update prototype.
|
|
|
|
|
1997-04-30 18:35:58 +00:00
|
|
|
Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
1997-05-01 20:11:00 +00:00
|
|
|
* cgen-scache.[ch], cgen-sim.h: New files.
|
1997-05-01 01:48:27 +00:00
|
|
|
* cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
|
|
|
|
* sim-model.c: New file.
|
|
|
|
|
1997-04-30 18:35:58 +00:00
|
|
|
* Make-common.in (clean targets): Undo patch of Apr. 22.
|
|
|
|
|
|
|
|
Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* sim-n-bits.h (signed): If we have a standard compiler, undef
|
|
|
|
signed, so that signedN is defined correctly.
|
|
|
|
|
* sim-module.h, sim-model.h, sim-profile.h: New files.
* sim-module.c, sim-profile.c: New files.
* Make-common.in (SIM_PROFILE): Define
(CONFIG_CFLAGS): Add $(SIM_PROFILE).
(sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
(sim_module.o,sim-profile.o): Add rules for.
* aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
(--enable-sim-profile): Add.
* configure: Regenerated.
* sim-base.h (sim_state_base): New members init_list, uninstall_list,
model. Move trace and profile support to sim-{trace,profile}.h.
New members trace_data, profile_data.
* sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
* sim-config.h: Provide default definition of WITH_PROFILE.
(WITH_TRACE): Change default to -1.
(MAX_NR_PROCESSORS): Always define.
* sim-options.c: Move trace and profile support to
sim-{trace,profile}.h.
(sim_pre_argv_init): Moved to sim-model.c.
(standard_install): New function.
* sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
(standard_install): Declare.
* sim-trace.c: Tracing option handling moved here from sim-options.c.
(trace_install, trace_uninstall): New functions.
(trace_printf): Update reference to TRACE_FILE.
* sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
(TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
(WITH_TRACE_FOO_P): Define.
(trace_install): Declare.
(TRACE_DATA): New struct.
1997-04-24 07:33:45 +00:00
|
|
|
Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* sim-module.h, sim-model.h, sim-profile.h: New files.
|
|
|
|
* sim-module.c, sim-profile.c: New files.
|
|
|
|
* Make-common.in (SIM_PROFILE): Define
|
|
|
|
(CONFIG_CFLAGS): Add $(SIM_PROFILE).
|
|
|
|
(sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
|
|
|
|
(sim_module.o,sim-profile.o): Add rules for.
|
|
|
|
* aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
|
|
|
|
(--enable-sim-profile): Add.
|
|
|
|
* configure: Regenerated.
|
|
|
|
* sim-base.h (sim_state_base): New members init_list, uninstall_list,
|
|
|
|
model. Move trace and profile support to sim-{trace,profile}.h.
|
|
|
|
New members trace_data, profile_data.
|
|
|
|
* sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
|
|
|
|
* sim-config.h: Provide default definition of WITH_PROFILE.
|
|
|
|
(WITH_TRACE): Change default to -1.
|
|
|
|
(MAX_NR_PROCESSORS): Always define.
|
|
|
|
* sim-options.c: Move trace and profile support to
|
|
|
|
sim-{trace,profile}.h.
|
|
|
|
(sim_pre_argv_init): Moved to sim-model.c.
|
|
|
|
(standard_install): New function.
|
|
|
|
* sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
|
|
|
|
(standard_install): Declare.
|
|
|
|
* sim-trace.c: Tracing option handling moved here from sim-options.c.
|
|
|
|
(trace_install, trace_uninstall): New functions.
|
|
|
|
(trace_printf): Update reference to TRACE_FILE.
|
|
|
|
* sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
|
|
|
|
(TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
|
|
|
|
(WITH_TRACE_FOO_P): Define.
|
|
|
|
(trace_install): Declare.
|
|
|
|
(TRACE_DATA): New struct.
|
|
|
|
|
1997-04-24 00:30:41 +00:00
|
|
|
Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* run.c: Undo last exec_bfd patch.
|
|
|
|
(main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
|
|
|
|
|
1997-04-23 21:57:39 +00:00
|
|
|
Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* run.c (exec_bfd): Add back in.
|
|
|
|
(main): Set exec_bfd.
|
|
|
|
|
1997-04-22 21:44:43 +00:00
|
|
|
Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* sim-load.c (sim_load_file): #include <stdio.h> for NULL.
|
|
|
|
|
1997-04-22 17:46:07 +00:00
|
|
|
Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-events.c (insert_sim_event): Call sim_io_error instead of
|
|
|
|
less well defined engine_error.
|
|
|
|
* sim-core.c: Ditto.
|
|
|
|
|
1997-04-22 16:00:06 +00:00
|
|
|
Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
|
|
|
|
|
|
|
|
* Make-common.in: Change clean targets to use :: so that other
|
|
|
|
Makefiles can have their own clean targets.
|
|
|
|
* sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
|
|
|
|
__STDC__ to control use of stdarg vs. varargs syntax. Some
|
|
|
|
systems can't use __STDC__, but require stdarg.
|
|
|
|
|
1997-04-18 18:16:30 +00:00
|
|
|
Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
1997-04-18 21:32:07 +00:00
|
|
|
* sim-options.c (standard_options): Add --endian.
|
|
|
|
(standard_option_handler): Likewise.
|
|
|
|
|
1997-04-18 18:16:30 +00:00
|
|
|
* nrun.c: #include <signal.h>.
|
|
|
|
(main, cntrl_c): Wrap calls to sim_resume in a SIGINT
|
|
|
|
handler that calls sim_stop ().
|
|
|
|
|
1997-04-18 12:24:52 +00:00
|
|
|
Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
|
|
|
|
handler that calls sim_stop (). Simulators may still be
|
|
|
|
establishing their own handler.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_poll): Rename from
|
|
|
|
sim_events_at_large_int. Poll IO.
|
|
|
|
|
|
|
|
* sim-io.c (sim_io_poll_quit): New function - pass on a polling
|
|
|
|
request.
|
|
|
|
|
|
|
|
* callback.c (os_poll_quit): New function poll for quit signal
|
|
|
|
where needed.
|
|
|
|
(default_callback): Include magic number.
|
|
|
|
|
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h.
* run.c (exec_bfd, target_byte_order): Delete.
(main): Pass -E <endian> to sim_open. Delete code to load sections,
call sim_load instead. Check return code of sim_create_inferior.
* sim-base.h (CURRENT_STATE): Define.
(sim_state_base): Make typedef. New members options, prog_argv,
prog_bfd, text_{section,start,end}, start_addr, simcache_size,
mem_size, memory [+ corresponding access macros].
(sim_cpu_base): New typedef.
* sim-trace.h: New file.
* sim-basics.h: #include it.
* sim-load.c: New file.
1997-04-17 09:37:02 +00:00
|
|
|
Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
1997-04-17 22:26:31 +00:00
|
|
|
* aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
|
|
|
|
Check for functions getrusage, time.
|
|
|
|
* sim-basics.h (SIM_ELAPSED_TIME): New typedef.
|
|
|
|
(sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
|
|
|
|
* sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
|
|
|
|
(sim_elapsed_time_get, sim_elapsed_time_since): New functions.
|
|
|
|
|
1997-04-17 14:14:49 +00:00
|
|
|
* sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
|
|
|
|
|
1997-04-17 12:39:29 +00:00
|
|
|
* sim-options.c, sim-options.h: New files.
|
1997-04-17 12:41:19 +00:00
|
|
|
* sim-config.h (WITH_DEBUG): Provide default value of zero.
|
1997-04-17 14:08:30 +00:00
|
|
|
* Make-common.in (nrun.o): Add rules for.
|
1997-04-17 12:43:31 +00:00
|
|
|
* nrun.c: New file.
|
1997-04-17 12:39:29 +00:00
|
|
|
|
1997-04-17 11:14:21 +00:00
|
|
|
* run.c (main): Check return value of sim_open.
|
|
|
|
|
1997-04-17 14:08:30 +00:00
|
|
|
* Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
|
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h.
* run.c (exec_bfd, target_byte_order): Delete.
(main): Pass -E <endian> to sim_open. Delete code to load sections,
call sim_load instead. Check return code of sim_create_inferior.
* sim-base.h (CURRENT_STATE): Define.
(sim_state_base): Make typedef. New members options, prog_argv,
prog_bfd, text_{section,start,end}, start_addr, simcache_size,
mem_size, memory [+ corresponding access macros].
(sim_cpu_base): New typedef.
* sim-trace.h: New file.
* sim-basics.h: #include it.
* sim-load.c: New file.
1997-04-17 09:37:02 +00:00
|
|
|
(sim_main_headers): Add sim-trace.h.
|
|
|
|
* run.c (exec_bfd, target_byte_order): Delete.
|
|
|
|
(main): Pass -E <endian> to sim_open. Delete code to load sections,
|
|
|
|
call sim_load instead. Check return code of sim_create_inferior.
|
|
|
|
* sim-base.h (CURRENT_STATE): Define.
|
|
|
|
(sim_state_base): Make typedef. New members options, prog_argv,
|
|
|
|
prog_bfd, text_{section,start,end}, start_addr, simcache_size,
|
|
|
|
mem_size, memory [+ corresponding access macros].
|
|
|
|
(sim_cpu_base): New typedef.
|
|
|
|
* sim-trace.h: New file.
|
1997-04-17 14:08:30 +00:00
|
|
|
* sim-trace.c: New file.
|
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h.
* run.c (exec_bfd, target_byte_order): Delete.
(main): Pass -E <endian> to sim_open. Delete code to load sections,
call sim_load instead. Check return code of sim_create_inferior.
* sim-base.h (CURRENT_STATE): Define.
(sim_state_base): Make typedef. New members options, prog_argv,
prog_bfd, text_{section,start,end}, start_addr, simcache_size,
mem_size, memory [+ corresponding access macros].
(sim_cpu_base): New typedef.
* sim-trace.h: New file.
* sim-basics.h: #include it.
* sim-load.c: New file.
1997-04-17 09:37:02 +00:00
|
|
|
* sim-basics.h: #include it.
|
1997-04-17 09:38:01 +00:00
|
|
|
* sim-load.c: New file.
|
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h.
* run.c (exec_bfd, target_byte_order): Delete.
(main): Pass -E <endian> to sim_open. Delete code to load sections,
call sim_load instead. Check return code of sim_create_inferior.
* sim-base.h (CURRENT_STATE): Define.
(sim_state_base): Make typedef. New members options, prog_argv,
prog_bfd, text_{section,start,end}, start_addr, simcache_size,
mem_size, memory [+ corresponding access macros].
(sim_cpu_base): New typedef.
* sim-trace.h: New file.
* sim-basics.h: #include it.
* sim-load.c: New file.
1997-04-17 09:37:02 +00:00
|
|
|
|
1997-04-15 19:13:56 +00:00
|
|
|
Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (INSTALL): Set to @INSTALL@.
|
|
|
|
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
|
|
|
|
(install-common): Depend upon installdirs. Use
|
|
|
|
$(program_transform_name) directly, rather than using
|
|
|
|
$(INSTALL_XFORM).
|
|
|
|
(installdirs): New target.
|
|
|
|
* Makefile.in (INSTALL): Set to @INSTALL@.
|
|
|
|
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
|
|
|
|
(install-man): Depend upon installdirs. Use
|
|
|
|
$(program_transform_name) directly, rather than using
|
|
|
|
$(INSTALL_XFORM).
|
|
|
|
(installdirs): New target.
|
|
|
|
|
1997-04-15 08:54:01 +00:00
|
|
|
Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
|
|
|
|
|
|
|
* sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
|
|
|
|
be overriden.
|
|
|
|
|
|
|
|
Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-basics.h: Only bring in config.h and tconfig.h if
|
|
|
|
HAVE_CONFIG_H.
|
|
|
|
|
|
|
|
Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
|
|
|
|
numbering convention of the target.
|
|
|
|
* sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
|
|
|
|
and WITH_TARGET_WORD_MSB.
|
|
|
|
(sim_config): When possible, check for consistency with bitsize
|
|
|
|
and msb.
|
|
|
|
|
|
|
|
* sim-bits.h: Allow MSB to be other than zero.
|
|
|
|
* sim-bits.c: Ditto.
|
|
|
|
* sim-n-bits.h: Ditto.
|
|
|
|
|
|
|
|
* sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
|
|
|
|
* sim-n-bits.h (MSMASKEDn): Ditto.
|
|
|
|
|
|
|
|
Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
|
|
|
|
|
|
|
|
* Makefile.in (INSTALL): Change install.sh to install-sh.
|
|
|
|
|
1997-04-07 17:47:38 +00:00
|
|
|
Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* sim-base.h (sim_state_base): Move `magic' to end of struct.
|
|
|
|
|
1997-04-07 06:07:13 +00:00
|
|
|
Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Check that a program to run was specified.
|
|
|
|
|
1997-04-07 05:58:59 +00:00
|
|
|
Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (AC_TYPE_SIGNAL): Add check.
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
* config.in: Ditto.
|
|
|
|
|
1997-04-02 23:17:50 +00:00
|
|
|
Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
1997-04-03 03:02:48 +00:00
|
|
|
* sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
|
|
|
|
* sim-config.h: To here.
|
|
|
|
|
1997-04-03 02:36:59 +00:00
|
|
|
* Make-common.in (SIM_EXTRA_DEPS): New config var.
|
|
|
|
(sim_main_headers): Define.
|
|
|
|
(sim-*.o): Depend on $(SIM_EXTRA_DEPS).
|
|
|
|
(BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
|
|
|
|
(clean): Use it.
|
|
|
|
(sim-utils.o): Add rule for.
|
|
|
|
* sim-utils.o: New file.
|
|
|
|
* sim-basics.h: #include sim-base.h.
|
|
|
|
(zalloc): Make argument unsigned long.
|
|
|
|
* sim-base.h: New file.
|
|
|
|
* sim-inline.h (SIM_IO support): Delete.
|
|
|
|
* sim-io.h: Delete inline support.
|
|
|
|
* sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
|
|
|
|
* sim-config.c: sim-state.h renamed to sim-main.h.
|
|
|
|
* sim-core.c: Likewise.
|
|
|
|
* sim-events.c: Likewise.
|
|
|
|
|
1997-04-02 23:28:12 +00:00
|
|
|
* run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
|
|
|
|
|
1997-04-02 23:17:50 +00:00
|
|
|
* aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
|
|
|
|
(sim-debug): Allow arguments. Define WITH_DEBUG in addition to
|
|
|
|
-DDEBUG.
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
1997-04-02 05:04:25 +00:00
|
|
|
Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Regenerated to track ../common/aclocal.m4 changes.
|
|
|
|
|
|
|
|
Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
|
|
|
|
WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
|
|
|
|
are defined by the configure.
|
|
|
|
|
|
|
|
* aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
|
|
|
|
|
|
|
|
* aclocal.m4 (floating-point, xor-endian, alignment, smp,
|
|
|
|
reserved-bits): Always define.
|
|
|
|
|
|
|
|
* sim-config.h, sim-config.c (sim_config): New function - and new
|
|
|
|
file - co-ordinate the setting/checking of the common simulator
|
|
|
|
configuration options.
|
|
|
|
|
|
|
|
* Make-common.in (sim-config.o): Add rule.
|
|
|
|
|
|
|
|
Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (os_{,e}vprintf_filtered): Change stdarg type to
|
|
|
|
va_list from void *, since va_list might not be a pointer type.
|
|
|
|
|
|
|
|
Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-n-endian.h (offset_N): Correct assertion - word and sub word
|
|
|
|
in wrong order.
|
|
|
|
(offset_N): Correct computation of LE offset.
|
|
|
|
|
|
|
|
* sim-io.c (sim_io_error): Include a new line when reporting
|
|
|
|
errors.
|
|
|
|
|
|
|
|
* sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
|
|
|
|
`/'.
|
|
|
|
|
1997-03-21 05:41:28 +00:00
|
|
|
Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
|
|
|
|
|
|
|
|
* run.c: Include alloca-conf.h.
|
1997-03-21 04:53:13 +00:00
|
|
|
|
|
|
|
* callback.c (os_evprintf_filtered): Fix typo.
|
|
|
|
|
1997-03-21 03:56:07 +00:00
|
|
|
Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (string.h, strings.h, stdlib.h): Include.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_tick): Recent cleanup failed to return
|
|
|
|
0 when nothing pending.
|
|
|
|
|
|
|
|
* run.c (sim_size, sim_trace): Plicate GCC - these two functions
|
|
|
|
will soon be going away.
|
|
|
|
(getopt): Plicate GCC.
|
|
|
|
|
|
|
|
* sim-endian.c (sim-io.h): Plicate GCC.
|
|
|
|
* sim-bits.c (sim-io.h): Ditto.
|
|
|
|
* sim-n-bits.h (ROTn): Ditto.
|
|
|
|
|
|
|
|
* sim-io.c (sim_io_error): Correct check for NULL.
|
|
|
|
|
|
|
|
* sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
|
|
|
|
the __FILE__.
|
|
|
|
* sim-events.c: Use SIM_FILTER_PATH to filter out the filename
|
|
|
|
path.
|
|
|
|
|
|
|
|
Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
|
|
|
|
SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
|
|
|
|
|
1997-03-18 10:10:10 +00:00
|
|
|
Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-alu.h: Include sim-xcat.h.
|
|
|
|
|
1997-03-18 07:43:22 +00:00
|
|
|
Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
|
|
|
|
sim-events.c, sim-inline.c, sim-io.c): Define rules for building
|
|
|
|
these.
|
|
|
|
|
|
|
|
* sim-events.c (sim_events_at_large_int): New function. Just
|
|
|
|
schedules an event every large-int ticks.
|
|
|
|
(sim_events_init): Call.
|
|
|
|
(sim_events_tick, sim_events_process): Move async handing to
|
|
|
|
sim_events_process. Move timer decrement so that it occures after
|
|
|
|
events have been processed.
|
|
|
|
|
|
|
|
* sim-basics.h (struct _engine): Remove declaration.
|
|
|
|
|
|
|
|
* sim-events.h, sim-events.c: Rename type to sim_events. Prefix
|
|
|
|
everything with same. Rename global struct to SIM_DESC.
|
|
|
|
* sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
|
|
|
|
* sim-io.h, sim-io.c: Ditto.
|
|
|
|
|
|
|
|
* sim-assert.h: New file. Optional assertion checking macros.
|
|
|
|
* sim-io.c (sim_io_error): Make just this function tolerant to
|
|
|
|
null pointers.
|
|
|
|
|
|
|
|
* sim-xcat.h: New file. Define concatenate macros.
|
|
|
|
* sim-basics.h (XCONCAT*): Move to sim-xcat.h.
|
|
|
|
* sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
|
|
|
|
concat macros.
|
|
|
|
|
|
|
|
|
1997-03-18 02:41:21 +00:00
|
|
|
Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-bits.h (LSMASK): New macro. Create mask of LS bits.
|
|
|
|
|
1997-03-17 16:29:21 +00:00
|
|
|
Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-inline.h: Add definitions for sim-types.
|
|
|
|
(ALL_BY_MODULE): New macro, encapsulate full inlining by the
|
|
|
|
module.
|
|
|
|
|
1997-03-17 16:26:35 +00:00
|
|
|
Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-events.h: Remove defunct reference to callback struct.
|
|
|
|
|
1997-03-17 15:29:29 +00:00
|
|
|
Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* configure: Re-generate.
|
|
|
|
|
|
|
|
Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (CSEARCH): Do not include the gdb directory in
|
|
|
|
the search path.
|
|
|
|
|
|
|
|
Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
|
|
|
|
SIM_WARNING): Drop, requiring the simulator specific Makefile.in
|
|
|
|
to explicitly incorporate these.
|
|
|
|
|
|
|
|
* aclocal.m4 (--enable-sim-alignment); New option. Strongly
|
|
|
|
specify the alignment restrictions of the target architecture -
|
|
|
|
without this option all alignment restrictions are accomodated.
|
|
|
|
(--enable-sim-assert): New option. Conditionally compile in
|
|
|
|
assertion statements.
|
|
|
|
(--enable-sim-float): New option. Strongly specify the target's
|
|
|
|
floating point support.
|
|
|
|
(--enable-sim-hardware): New option. Specify the hardware devices
|
|
|
|
included in the simulation.
|
|
|
|
(--enable-sim-packages): New option. Specify the hardware
|
|
|
|
packages included in the simulation.
|
|
|
|
(--enable-sim-regparm): New option. Specify that parameters be
|
|
|
|
passed in registers instead of on the stack.
|
|
|
|
(--enable-sim-reserved-bits): New option. Specify that reserved
|
|
|
|
bits within an instruction are are correctly set.
|
|
|
|
(--enable-sim-smp): New option. Specify the level of SMP support
|
|
|
|
to be included in the simulator.
|
|
|
|
(--enable-sim-stdcall): New option. Specify an alternative
|
|
|
|
function call convention.
|
|
|
|
(--enable-sim-xor-endian): New option. Configure xor-endian
|
|
|
|
support used by some targets to implement bi-endian support.
|
|
|
|
|
1997-03-14 15:13:58 +00:00
|
|
|
Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (--enable-sim-hostendian): New option. Allow the
|
|
|
|
host endianness to be overridden.
|
|
|
|
(--enable-sim-endian): Allow the target platform's byte order
|
|
|
|
to be overridden.
|
|
|
|
(--enable-sim-inline): Control the inlining of common components.
|
|
|
|
(--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
|
|
|
|
(--enable-sim-warnings): Enable additional GCC compiler checks.
|
|
|
|
* Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
|
|
|
|
SIM_WARNINGS): Add.
|
|
|
|
|
|
|
|
* sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
|
|
|
|
sim-*-n.h so that the names are uniq on dos machines
|
|
|
|
* sim-core.c, sim-bits.c, sim-endian.c: Update.
|
|
|
|
|
1997-03-13 20:37:15 +00:00
|
|
|
Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* run.c: #include "libiberty.h".
|
|
|
|
(main): New locals sd,no_args,sim_argv.
|
|
|
|
Run buildargv on -a option. Pass argv to sim_open, argv[0]
|
|
|
|
is program name. Update call to sim_set_callbacks.
|
|
|
|
Record result of sim_open, pass to other sim_foo routines.
|
|
|
|
|
1997-03-13 16:04:50 +00:00
|
|
|
Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
|
|
|
|
|
|
|
|
* callback.c (os_printf_filtered): Do not call exit(1) or print a
|
|
|
|
final newline.
|
|
|
|
|
|
|
|
Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
|
|
|
|
Route stdout through buffered IO.
|
|
|
|
|
|
|
|
* callback.c: Add os_flush_stderr, os_write_stderr,
|
|
|
|
os_evprintf_filtered functions to route error output through
|
|
|
|
stderr.
|
|
|
|
|
|
|
|
* sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
|
|
|
|
Correct return type - should be void.
|
|
|
|
|
|
|
|
Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
|
|
|
|
|
|
|
|
* sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
|
|
|
|
not provide a default value as undefined indicates disable code.
|
|
|
|
|
|
|
|
Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
|
|
|
|
directory.
|
|
|
|
* sim-events.h, sim-events.c: Ditto.
|
|
|
|
* sim-io.h, sim-io.c: Ditto.
|
|
|
|
|
1997-03-07 09:08:07 +00:00
|
|
|
Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
|
|
|
|
|
|
|
|
* sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
|
|
|
|
extract the tail or least signifiant bits from an integer of the
|
|
|
|
specified size.
|
|
|
|
|
|
|
|
* sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
|
|
|
|
WITH_TARGET_BITSIZE so that the compilation will fail when an
|
|
|
|
unsupported bitsize value is defined.
|
|
|
|
|
|
|
|
(INSERTED*): Convert to functions.
|
|
|
|
(EXTRACTED*): Ditto.
|
|
|
|
|
|
|
|
(SIGN_EXTEND, SEXT): Change to more terse name.
|
|
|
|
|
1997-03-07 08:57:02 +00:00
|
|
|
Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-inline.h: Allow explicit control over which .c files will be
|
|
|
|
included by their header.
|
|
|
|
|
|
|
|
* sim-inline.h: Allow explicit control over which .c files use the
|
|
|
|
alternative - REGPARM - parameter passing mechanism.
|
|
|
|
|
|
|
|
* sim-inline.h, sim-inline.c: Don't attempt to include any of
|
|
|
|
icache.c, idecode.c, semantics.c or support.c. Those names are
|
|
|
|
not generally applicable.
|
|
|
|
|
1997-03-07 09:08:07 +00:00
|
|
|
Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
|
|
|
|
in a fashion similar to sim-endian-n.
|
|
|
|
|
|
|
|
* sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
|
|
|
|
both value and address macro's.
|
|
|
|
|
|
|
|
Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
|
|
|
|
|
|
|
|
* sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
|
|
|
|
|
|
|
|
* sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
|
|
|
|
generic L_word, H_word macro's.
|
|
|
|
|
1997-03-07 08:57:02 +00:00
|
|
|
Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
|
|
|
|
|
|
|
|
* sim-basics.h: Borrow code from ppc directory.
|
|
|
|
* sim-bits.c: Ditto.
|
|
|
|
* sim-bits.h: Ditto.
|
|
|
|
* sim-config.h: Ditto.
|
|
|
|
* sim-endian-n.h: Ditto.
|
|
|
|
* sim-endian.c: Ditto.
|
|
|
|
* sim-endian.h: Ditto.
|
|
|
|
* sim-inline.c: Ditto.
|
|
|
|
* sim-inline.h: Ditto.
|
|
|
|
* sim-types.h: Ditto.
|
|
|
|
|
|
|
|
Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
|
|
|
|
|
|
|
|
* sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
|
|
|
|
all the ALU size alternatives and then auto-configure a default.
|
|
|
|
|
|
|
|
* sim-alu.h: Copy ppc/idecode_expression.h.
|
|
|
|
|
|
|
|
Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
|
|
|
|
|
|
|
|
* bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
|
|
|
|
sign extend a bit within a value.
|
|
|
|
|
|
|
|
* sim-endian.h, sim-endian-n.h (offset_N): New functions - return
|
|
|
|
a pointer into the middle of a host word.
|
|
|
|
* sim-endian.h (MS2W_4, LS2W_4): Use this function.
|
|
|
|
|
|
|
|
Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c: If HAVE_CONFIG_H is defined, include config.h from
|
|
|
|
autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
|
|
|
|
appropriate definitions of read, write, etc. Add prototype for
|
|
|
|
system.
|
|
|
|
|
1997-02-04 21:32:42 +00:00
|
|
|
Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* Makefile.in (libcommon.a): Delete.
|
|
|
|
(callback.o,targ-map.o): Delete, moved to Make-common.in.
|
|
|
|
(gentmap,targ-vals.h,targ-map.c): Likewise.
|
|
|
|
(run-autoconf): Delete.
|
|
|
|
* aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
|
|
|
|
(common makefile fragment): Moved back into ...
|
|
|
|
* Make-common.in: Resurrect.
|
|
|
|
* configure.in (AC_LINK_FILES): Delete, unnecessary now.
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
1997-01-31 15:20:26 +00:00
|
|
|
Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
|
|
|
|
(SIM_AC_OUTPUT): To here.
|
|
|
|
|
1997-01-24 18:42:34 +00:00
|
|
|
Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
|
|
|
|
|
|
|
|
* aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
|
|
|
|
comments and single quotes. Fixes a problem found on hpux.
|
|
|
|
|
1997-01-23 22:08:21 +00:00
|
|
|
Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
|
|
|
|
|
1997-01-24 00:03:05 +00:00
|
|
|
* aclocal.m4: Remove Make-common.in from dependencies.
|
1997-01-24 00:38:32 +00:00
|
|
|
* (distclean): Remove targ-vals.def.
|
1997-01-24 00:03:05 +00:00
|
|
|
|
1997-01-23 22:08:21 +00:00
|
|
|
* aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
|
|
|
|
into here. Makes insertion into makefiles easier. Also, change
|
|
|
|
the way that callback.o, gentmap, targ-vals.h, targ-map.c,
|
|
|
|
targ-map.o, and run are built. They are now built in the
|
|
|
|
individual simulator directories, taking sources from ../common as
|
|
|
|
necessary. This replaces the merging of libcommon.a into
|
|
|
|
linsim.a, which was problematic for the WinGDB build process.
|
|
|
|
* run.c: Include config.h from . instead of ../common.
|
|
|
|
* Make-common.in: Remove. It's no longer necessary.
|
|
|
|
|
|
|
|
Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
|
|
|
|
(.c.o): Put $(ALL_CFLAGS) before the file being compiled.
|
|
|
|
|
|
|
|
Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Set target_byte_order before call to sim_open.
|
|
|
|
|
1996-12-09 02:27:59 +00:00
|
|
|
Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* callback.c: #include <stdlib.h>
|
|
|
|
(os_error): New function.
|
|
|
|
(default_callback): Add os_error.
|
|
|
|
|
|
|
|
Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* Make-common.in (Makefile): Set CONFIG_HEADERS="".
|
|
|
|
* aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
|
|
|
|
specific.
|
|
|
|
(SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
|
|
|
|
|
|
|
|
Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
|
|
|
|
|
|
|
|
* run.c: #include ../common/config.h, tconfig.h.
|
|
|
|
(myname): New static global.
|
|
|
|
(main): Recognize new options -a, -c. Also recognize -h if h8/300.
|
|
|
|
Only process -c ifdef SIM_HAVE_SIMCACHE.
|
|
|
|
Only process -p/-s ifdef SIM_HAVE_PROFILE.
|
|
|
|
Parse program name from argv[0] and use in error messages.
|
|
|
|
Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
|
|
|
|
Add support for incomplete h8/300 termination indicators.
|
|
|
|
(usage): Make more verbose.
|
|
|
|
* aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
|
|
|
|
* Makefile.in,Make-common.in,callback.c: New files.
|
|
|
|
* nltvals.def,gentmap.c,gentvals.sh: New files.
|
|
|
|
|
|
|
|
Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
|
|
|
|
|
|
|
|
* run.c: Include stdarg.h if __STDC__.
|
|
|
|
|
|
|
|
Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
|
|
|
|
|
|
|
|
* run.c (main): Don't print out anything if the signal
|
|
|
|
number is zero (ie no signal).
|
|
|
|
|
1996-10-15 15:44:10 +00:00
|
|
|
Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Print out if the program raised a signal.
|
|
|
|
|
|
|
|
Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
|
|
|
|
(main): Ditto.
|
|
|
|
|
1996-09-17 10:10:35 +00:00
|
|
|
Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
|
|
|
|
|
|
|
|
* run.c (main): Explicitly cast malloc() parameter.
|
|
|
|
|
1996-09-12 15:28:40 +00:00
|
|
|
Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (sim_bfd): New global to hold the bfd pointer for the
|
|
|
|
executable.
|
|
|
|
(main): Initialize sim_bfd.
|
|
|
|
|
|
|
|
Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Use new bfd_big_endian macro.
|
|
|
|
|
|
|
|
Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
|
|
|
|
|
|
|
|
* run.c (main): Removed SH specific comments, so source is
|
|
|
|
generic. Also updated to only load relevant sections. Moved
|
|
|
|
sim_open() to after callback attach (to match GDB).
|
|
|
|
|
|
|
|
* run.1: Removed SH specific comments.
|
|
|
|
|
1995-10-22 20:22:02 +00:00
|
|
|
Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Always return sigrc at end.
|
|
|
|
|
|
|
|
Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
|
|
|
|
|
|
|
* run.c (main): Print error diagnostic and exit if bfd_openr() or
|
|
|
|
bfd_check_format() fails.
|
|
|
|
|
1995-10-05 21:23:43 +00:00
|
|
|
Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
|
|
|
|
|
|
|
|
* run.c, run.1: From sh directory.
|
|
|
|
|
|
|
|
|