* sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
[binutils-gdb.git] / sim / common / ChangeLog
index 544a9efdde99752a68956944742cf07e2ec9d325..8c2db641410b84c7eb4557539770f5f67daf3d83 100644 (file)
@@ -1,3 +1,237 @@
+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.
+
+Tue Sep  9 11:20:35 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * nltvals.def: Regenerate.
+
+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.
+
+Fri Sep  5 08:39:02 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * 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.
+
+       * sim-utils.c (sim_do_commandf): New function, printf version of
+       sim_do_command.
+
+       * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32. 
+       
+       * 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.
+
+Thu Sep  4 09:27:54 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * 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.
+
+       * 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.
+
+Wed Sep  3 17:32:54 1997  Doug Evans  <dje@seba.cygnus.com>
+
+       * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
+
+       * 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.
+
+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.
+
+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.
+
+Tue Sep  2 14:57:06 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
+       * Make-common.in (TAGS): Likewise.
+       * sim-n-bits.h: Add TAGS comments for all functions.
+       * sim-n-core.h: Likewise.
+       * sim-n-endian.h: Likewise.
+
+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.
+
+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.
+
+Thu Aug 28 10:36:34 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
+
+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.
+
+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.
+
 Wed Aug 27 15:13:04 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,