* cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
index 2ca2df1596af4dae7e7dc8c4902ac1628e7e317b..c708c8fa7ac6a3e611fb7923a29893b1d9921333 100644 (file)
@@ -1,3 +1,261 @@
+1999-01-12  Doug Evans  <devans@casey.cygnus.com>
+
+       * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
+       * sim-model.c (sim_mach_lookup_bfd_name): New function.
+       (sim_model_init): Call it.
+
+       * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
+
+start-sanitize-gxsim
+1999-01-11  Frank Ch. Eigler  <fche@cygnus.com>
+
+       * sim-gx-run.c (sim_engine_run): Allay warnings.  Write out updated
+       gx block list after each successful compilation job.
+       * sim-gx.c (sim_gx_compiled_block_f): dlopen the main executable
+       image, to allow gx block DLLs to resolve symbols there.
+       (sim_gx_{read,write}_block_list): Allay warnings.
+       (sim_gx_block_translate): Allay warnings.  Add $GX_FLAGS to
+       gx compilation/link jobs.
+       * sim-gx.h: Allay warnings.
+
+end-sanitize-gxsim
+1999-01-05  Doug Evans  <devans@casey.cygnus.com>
+
+       * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
+       (CGEN_MAIN_SCM): Add rtx-funcs.scm.
+       (cgen-arch): Pass $(mach) to cgen.sh.
+       * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
+       (SEM_BRANCH_INIT_EXTRACT): New macro.
+       (SEM_BRANCH_INIT): Add taken_p.
+       (TARGET_SEM_BRANCH_FINI): Provide default definition.
+       (SEM_BRANCH_FINI): Use it.
+       (SEM_INSN): Update.
+       * cgen-run.c (sim_resume): Handle tracing of last insn.
+       * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
+       * cgen-trace.c (current_abuf): New static global.
+       (trace_insn_init): Initialize it.
+       (trace_insn_fini): Use it.
+       (trace_insn): Set it.
+       * cgen.sh (arch case): Pass -m ${mach} to cgen.
+       * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
+       (@cpu@_emit_after): Ditto.
+       (simple @cpu@_engine_run_full): New local `pc'.  Initialize semantic
+       labels if WITH_SEM_SWITCH_FULL.
+       * sim-model.c: Include bfd.h.
+       (sim_model_init): New function.
+       (sim_model_install): Record init fn.
+       * sim-model.h (MACH): New member bfd_name.
+       * sim-module.c (modules): Initialize model before scache.
+
+1998-12-24  Frank Ch. Eigler  <fche@cygnus.com>
+
+       * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
+       
+       * nrun.c (main): Remain in simulation loop for traps and
+       exceptions when in operating environment mode.
+       (ui_loop_hook): New stub hook for standalone use.
+       * sim-events.c (sim_events_process): Call ui_loop_hook
+       periodically on CYGWIN host.
+
+       * sim-reason.c (sim_stop_reason): Return host signal numbers
+       to gdb on sim_stopped and sim_signalled cases.
+       * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
+       hook just before longjmp.
+       * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
+       hook just before sim_engine_run.
+
+       * sim-n-core.h (sim_core_trace_M): Allay const warning.
+       * sim-trace.h (trace_generic): Ditto.
+       * sim-trace.c (trace_generic): Ditto.
+       
+1998-12-14  Doug Evans  <devans@casey.cygnus.com>
+
+       * Make-common.in (SIM_MAIN_DEPS): New var.
+       (CGEN_MAIN_CPU_DEPS): New var.
+       * aclocal.m4: Add --enable-cgen-maint option.
+       * cgen-mem.h (GETMEM*): New arg `pc'.  Pass to sim_core routine.
+       (SETMEM*): Ditto.
+       (GETIMEM*): Pass pc value to sim_core routine.
+
+Fri Dec 11 16:58:36 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
+       Compare with ZERO not NULL.
+
+Thu Dec 10 14:14:39 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * hw-properties.c, hw-instances.c, hw-tree.c: Include
+       "sim-assert.h".
+
+1998-12-09  Doug Evans  <devans@casey.cygnus.com>
+
+       * sim-arange.c: Include libiberty.h, and stdlib.h if present.
+       * sim-trace.c: Include stdlib.h if present.
+       * dv-sockser.c: Include unistd.h if present.
+       (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
+       * cgen-scache.c (scache_flush): Delete unused locals i,sc.
+
+1998-12-08  James E Wilson  <wilson@wilson-pc.cygnus.com>
+
+       * gennltvals.sh: Add i960.
+       * nltvals.def: Rebuild.
+
+1998-12-04  Doug Evans  <devans@casey.cygnus.com>
+
+       * cgen-defs.h: New file, old cgen-sim.h.
+       * cgen-sim.h: Simple header that includes others.
+       * sim-arange.c: New file.
+       * sim-arange.h: New file.
+       * sim-basics.h: Include it.
+       * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
+       (sim-arange.o): Add rule for.
+       * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
+       (sim_io_eprintf_cpu): Add prototype.
+       * sim-inline.h (HAVE_INLINE): Define if GNUC.
+       (INLINE2): New macro.
+       (EXTERN_INLINE): New macro.
+       * sim-module.c (sim_post_argv_init): Initialize cpu backlink
+       before calling module init fns.
+       * sim-profile.c (OPTION_PROFILE_*): Move into enum.
+       (profile_init): New function.
+       (profile_options): New option --profile-range.
+       (profile_option_handler): Handle --profile-range.
+       (profile_print_insn): Qualify address range specific section titles.
+       (profile_print_addr_ranges): New function.
+       (profile_info): Print address ranges if specified.
+       (profile_install): Set profile_init init fn.
+       * sim-profile.h (PROFILE_DATA): New member `range'.
+       * sim-trace.c (trace_init): New function.
+       (trace_options): New option --trace-range.
+       (trace_option_handler): Handle --trace-range.
+       (trace_install): Set trace_init init fn.
+       * sim-trace.h (TRACE_DATA): New member `range'.
+       * sim-utils.c (sim_cpu_msg_prefix): New function.
+       (sim_io_eprintf_cpu): New function.
+       * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
+       (PC_IN_PROFILE_RANGE_P): New macro.
+       * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
+       (trace_insn_fini): New arg abuf.  All callers updated.
+       Exit early if trace_insn not called.  Check ARGBUF_PROFILE_P before
+       printing cycle counts.
+       * cgen-trace.h (trace_insn_fini): Update prototype.
+       (TRACE_RESULT_P): New macro.
+       (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf.  All callers updated.
+       (TRACE_INSN): Check ARGBUF_TRACE_P.
+       (TRACE_EXTRACT,TRACE_RESULT): New arg abuf.  All callers updated.
+       * cgen-types.h (SIM_INLINE): Delete.
+       (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
+       * cgen-utils.c: Don't include cgen-engine.h
+       * genmloop.sh (@cpu@_fill_argbuf): New function.
+       (@cpu@_fill_argbuf_tp): New function.
+       (@cpu@_emit_before,@cpu@_emit_after): New functions.
+       (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
+       (SET_CTI_VPC,SET_INSN_COUNT): Update.
+       (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
+       doing profiling.  Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
+       (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
+       doing profiling. Update call to TRACE_INSN_FINI.
+
+       * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
+
+1998-12-03  Frank Ch. Eigler  <fche@cygnus.com>
+
+       * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
+       regions.
+
+1998-12-01  Doug Evans  <devans@casey.cygnus.com>
+
+       * sim-inline.c (SIM_INLINE_P): Fix typo.
+
+start-sanitize-gxsim
+1998-12-01  Frank Ch. Eigler  <fche@elastic.org>
+
+       * sim-gx-run.c (sim_engine_run): Use new tgx_info struct to
+       collect run-time arguments to gx block.
+       * sim-gx.h (sim_gx_function): Corresponding signature change.
+       
+       * sim-gx.c (sim_gx_compiled_block_f): Remove nonfunctional code to
+       again compile a gx block source file.
+       (sim_gx_compiled_block_dispose): Uninstall obsoleted gx block
+       shared libraries.
+       (sim_gx_block_translate): Always emit new "gx_label_NNNN" labels,
+       for basic block entry points, even if !__GNUC__.
+
+end-sanitize-gxsim
+1998-11-30  Doug Evans  <devans@casey.cygnus.com>
+
+       * cgen-utils.c (cgen_virtual_opcode_table): Update.
+
+Tue Nov 24 18:40:03 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
+       * nltvals.def: Re-generate.
+
+Mon Nov 23 13:28:38 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
+       sim_core_map_attach, sim_core_map_detach, next_event_queue,
+       new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
+       GCC.
+       * sim-events.c (sim_events_uninstall, sim_events_suspend,
+       sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
+
+1998-11-22  Doug Evans  <devans@tobor.to.cygnus.com>
+
+       * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
+       (${cpu}_pbb_cti_chain): Ditto.
+
+start-sanitize-gxsim
+1998-11-21  Frank Ch. Eigler  <fche@elastic.org>
+
+       * sim-gx.c (sim_gx_block_translate): Generate computed
+       goto for __GNUC__ instead of plain switch() for gx block
+       entry.  Lose "-g" compile option for gx block.
+
+end-sanitize-gxsim
+1998-11-18  Doug Evans  <devans@casey.cygnus.com>
+
+       * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
+       (CGEN_ARCH_SCM): New variable.
+       * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
+       (EXTRACT_INT,EXTRACT_UINT): New macros.
+       (SEM_SEM_ARG): New macro.
+       (SEM_NEXT_VPC): New arg `pc'.
+       * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
+       (sim_disassemble_insn): Update prototype.
+       * cgen-trace.c (current_insn,insn_fields): New static locals.
+       (trace_insn): Set them.
+       * cgen-utils.scm: #include cgen-engine.h.
+       (sim_disassemble_insn): New arg insn_fields.
+       Handle variable length insns.
+       * genmloop.sh: Only emit pbb decls if -pbb.
+       (${cpu}_scache_lookup): New arg `vpc'.
+       (scache support): Fetch pc before entering loop.
+
+       * gennltvals.sh: Add fr30 support.
+       * nltvals.def: Rebuild.
+
+Wed Nov 18 10:22:22 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-types.h: Re-do type system so that GCC's attribute and mode
+       are used to specify types.  Handle case of ALPHA.
+
+1998-11-13  Frank Ch. Eigler  <fche@elastic.org>
+       
+start-sanitize-gxsim
+       * Make-common.im: Build sim-gx.o and sim-gx-run.o.
+       * sim-gx.c: New file: target-independent gx routines.
+       * sim-gx.h: Declarations for gx structs and routines.
+       * sim-gx-run.c: New file: target-independent gx driver.
+       * sim-base.h: Add gx block vector to state struct.
+end-sanitize-gxsim
+       * aclocal.m4: Add tests for dlopen family.
+       * config.in: Regenerated.
+       
+Wed Nov 11 14:02:25 1998  Doug Evans  <devans@canuck.cygnus.com>
+
+       * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
+
 Wed Nov  4 23:51:19 1998  Doug Evans  <devans@seba.cygnus.com>
 
        * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
@@ -3692,5 +3950,3 @@ Tue Oct 10 12:03:13 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
 Thu Sep 28 15:40:36 1995  steve chamberlain  <sac@slash.cygnus.com>
 
        * run.c, run.1: From sh directory.
-
-
This page took 0.028714 seconds and 4 git commands to generate.