aboutsummaryrefslogtreecommitdiff
path: root/sim/common
AgeCommit message (Collapse)AuthorFilesLines
1998-12-05address range supportDoug Evans4-0/+389
1998-12-01* A few more improvements to gx jit prototype.Frank Ch. Eigler4-36/+47
[common/ChangeLog] 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__. [m32r-gx/ChangeLog] 1998-12-01 Frank Ch. Eigler <fche@elastic.org> * Makefile.in (SIM_OBJS): Don't build sim-core.o. * configure.in: Added --enable-sim-inline support. Look for "getenv()" function. * configure: Rebuilt. * config.in: Rebuilt. * gx-translate.c: Include "sim-inline.c" for sim-core inlining. (m32r_gx_{load,store}*): Update signature. (tgx_emit_pre_function): Emit new "tgx_info" struct, update callback function signatures. (m32r_emit_*_insn): Use new callback signatures. For all short branches in optimized mode, emit direct "goto gx_label_NNNN". (tgx_optimize_test): If the GX_OPTIMIZE environment variable is set, allow its integer value to override the optimization heuristic. * m32r-sim.h: New empty placeholder file. * sim-main.c: New empty placeholder file. * sim-if.c (sim_create_inferior): Use NULL instead of &abort for unimplemented register fondling functions. * sim-main.h: Add multiple inclusion guard. Update callback function signatures. (tgx_info): New struct for collecting gx block invocation arguments.
1998-11-30* cgen-utils.c (cgen_virtual_opcode_table): Update.Doug Evans1-0/+9
1998-11-24Add d10v and v850 to gennltvals.sh and regenerate.Andrew Cagney2-8/+65
Add a howto.
1998-11-23Pacify GCC.Andrew Cagney1-0/+9
1998-11-22 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.Doug Evans1-0/+5
(${cpu}_pbb_cti_chain): Ditto.
1998-11-21* mild gx prototype tweakFrank Ch. Eigler2-4/+48
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 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.Doug Evans2-17/+42
(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.
1998-11-18 * gennltvals.sh: Add fr30 support.Doug Evans3-6/+61
* nltvals.def: Rebuild.
1998-11-17Re-do type system so that GCC's explicit attribute/mode types are usedAndrew Cagney1-0/+5
(when available). Update sim-bits and sim-alu tests in sim/testsuite/common.
1998-11-16* sun build fix for thinko (?)Frank Ch. Eigler1-1/+1
1998-11-14* Personal prototype "gx" translation-based JIT engine for M32R.Frank Ch. Eigler6-0/+1159
[ChangeLog] start-sanitize-gxsim 1998-11-13 Frank Ch. Eigler <fche@elastic.org> * configure.in: Added "--enable-sim-gx" option. * configure: Regenerated. end-sanitize-gxsim [common/ChangeLog] 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.
1998-11-11 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.Doug Evans1-0/+4
1998-11-05 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC toDoug Evans4-220/+98
HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin. * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ... * cgen-sim.h: ... to here.
1998-11-04add some commentsDoug Evans2-347/+1005
1998-10-29fix minor typo.Michael Snyder1-1/+1
1998-10-28Unify (well almost) --enable-build-warnings configuration optionAndrew Cagney4-232/+617
across GDB and SIM directories.
1998-10-19 * Make-common.in (CGEN_INCLUDE_DEPS): Define.Doug Evans1-0/+3
(sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS). (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto. (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete explicit cgen header dependencies, require SIM_EXTRA_DEPS to include CGEN_INCLUDE_DEPS. * cgen-cpu.h: New file. * cgen-engine.h: New file. * cgen-scache.h: New file. * cgen-sim.h: Delete portions moved to new files. * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly, rather than sending result to stdout.
1998-10-09 * Make-common.in (sim-reg.o): New rule.Doug Evans1-0/+147
(cgen-run.o): New rule. * cgen-ops.h: Delete many BI macros. Change all UBI -> BI. * cgen-run.c (prime_cpu): New function. * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support. (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly mentioned cpu. (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns. * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum. (CGEN_INSN_VIRTUAL_P): New macro. (SEM_PC): New typedef. (SEMANTIC_FN): Change type of result to SEM_PC. (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros. (IDESC_CTI_P,IDESC_SKIP_P): New macros. (SCACHE_MAP): New typedef. (CPU_SCACHE): Add pbb support. (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare. (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros. (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn, max_slice_insns. (INSN_NAME): Delete. (cgen_insn_name): Declare. (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn. * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes. (first_insn_p): Make static. (trace_insn): Handle virtual insns specially. (cgen_trace_printf): Ensure we haven't overflowed the buffer. * cgen-types.h (UBI): Delete. (MODE_TYPE): New enum. (HOSTINT,HOSTUINT,HOSTPTR): Delete. * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR. (cgen_virtual_opcode_table): New global. (cgen_insn_name): New function. (sim_disassemble_insn): Ignore virtual insns. * genmloop.sh: Delete top level loop generation. Add pbb support. * sim-cpu.h (CPU_INSN_NAME_FN): New typedef. (sim_cpu_base): New members max_insns,insn_name,model_data. (CPU_PC_GET,CPU_PC_SET): New macros. (sim_pc_get,sim_pc_set): Declare. * sim-model.c (model_set): Call model init fn. * sim-model.h (MODEL_FN): New typedef. (INSN_TIMING): New member model_fn. (MODEL): New members num,init. * sim-profile.c (sim_profile_print_bar): Renamed from print_bar. All callers updated. (profile_insn_init): New fn. (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME. Exit early if insn profiling not supported. (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX. (profile_install): Record profile_insn_init as init fn. (profile_uninstall): Free PROFILE_INSN_COUNT if non-null. * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX. (PROFILE_DATA): Delete member exec_time. Change insn_count to pointer to array, rather than the array. (sim_profile_print_bar): Declare.
1998-10-07cgen-run.c: new mainloop for cgenDoug Evans3-0/+256
sim-reg.c: generic sim_fetch/store_register interface fns
1998-09-01* Build fixes for tx39 sim hosted on strange Linux boxen.Frank Ch. Eigler1-0/+8
[common/ChangeLog] Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com> * sim-config.h: Remove reference to linux kernel header. [mips/ChangeLog] Tue Sep 1 15:39:18 1998 Frank Ch. Eigler <fche@cygnus.com> * dv-tx3904sio.c: Include sim-assert.h.
1998-08-25* eCos tx3904sio sim - devo part 1/2Frank Ch. Eigler1-0/+377
Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com> * dv-sockser.c (sockser_addr): Make variable non-static.
1998-08-24* sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.Joyce Janczyn1-0/+13
1998-08-03 * cgen-sim.h (cgen_state): New member opcode_table.Doug Evans1-1/+8
* cgen-utils.c (sim_disassemble_insn): Use it.
1998-07-24 * cgen-mem.h (DECLARE_SETT): Fix return type.Doug Evans1-0/+2
1998-07-24 * sim-model.c (model_option_handler): Remove unused variable `n'.Doug Evans1-0/+4
1998-07-24remove d30v sanitizationIan Lance Taylor2-32/+1
1998-07-21 * cgen-utils.c: Include bfd.h.Doug Evans1-0/+9
(sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
1998-07-08Add a printf fmt style version of sim_events_schedule.Andrew Cagney1-0/+15
This allows the caller to specify extra trace information that is only evaluated when tracing is enabled.
1998-07-06 * sim-bits.h (EXTEND24): Define.Jeff Law2-0/+6
1998-07-03 * cgen-sim.h (CPU_SCACHE): Make size unsigned.Doug Evans1-0/+8
(CPU_SCACHE_HASH_MASK): New macro. (SCACHE_HASH_PC): Rewrite. * genmloop.sh (engine_resume_{full,fast}): Move some of hash computation out of main loop.
1998-07-01 * Make-common.in (SCHEME,SCHEMEFLAGS): Delete.Doug Evans3-70/+66
(CGENDIR,CGEN): New variables. (CGEN_VERBOSE): Renamed to CGENFLAGS. (cgen-arch,cgen-cpu,cgen-decode): Update. (CGEN_CPU_WRITE): New variable. (CGEN_CPU_SEMSW): -W -> -X. (CGEN_FLAGS_TO_PASS): Delete SCHEME. Add CGEN,CGENFLAGS. * cgen.sh: Delete args scheme,schemeflags. New arg cgen. * cgen-sim.h (RECORD_IADDR): Delete. * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types. * genmloop.sh (engine_resume_{full,fast}): Delete icount.
1998-06-17Re-do sim-inline's handling of external functions and variables soAndrew Cagney1-0/+18
that there really is only one instance of them.
1998-06-13 * cgen-trace.c (trace_insn_fini): Redo cycle handling.Doug Evans1-0/+6
* sim-profile.h (PROFILE_DATA): Rename cycle handling members. * sim-profile.c (profile_print_model): Update.
1998-06-13 * gennltvals.def (m32r): Use common syscall.h now.Doug Evans3-21/+57
(mn10300): Add entry. * nltvals.def: Regenerate.
1998-06-12 * sim-engine.c (sim_engine_get_run_state): New function.Doug Evans1-0/+5
* sim-engine.h (sim_engine_get_run_state): Declare it.
1998-06-11 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.Doug Evans3-167/+205
* sim-core.c (sim_core_signal): Make extern, always define.
1998-06-10 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.Doug Evans1-0/+6
* cgen-ops.h (ANDIF): New macro. (ANDIF[BQHSD]I): Delete.
1998-06-04Memory corruption problems - hw-event list wasn't correctAndrew Cagney2-3/+31
unlinking/freeing events. Couldn't handle the removal of a hw-event that just been scheduled.
1998-05-25Pull in preliminary versions of hw instances and handles from ../ppcAndrew Cagney5-0/+746
1998-05-25Make hw-main.h the main header file for H/W devices. Like sim-main.hAndrew Cagney7-102/+150
Update dv-*.c Replace *_callback with more correct. *_method. Update dv-*.c
1998-05-25Add files hw-alloc.[hc] (mising from last CI)Andrew Cagney7-33/+185
Move set_* macro's from hw-base to hw-device.
1998-05-25Initialize/destory hw-properties within the hw-device.Andrew Cagney4-0/+29
1998-05-25Split out hw-alloc code. Add constructor and destructor for hw-alloc.Andrew Cagney7-126/+83
1998-05-25Split out hw-event code. Clean up interface. Update all users.Andrew Cagney12-106/+269
1998-05-25Clean up create/delete of hw-portsAndrew Cagney5-55/+532
1998-05-25* hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): DropAndrew Cagney3-129/+51
PROCESSOR and CIA arguments.
1998-05-25De-sanitize simulator hw.Andrew Cagney3-77/+0
1998-05-22Only enable H/W on some mips targets.Andrew Cagney2-3/+20
Move common hw-obj to Make-common Pacify GCC
1998-05-21* sim-hw.c: Include ctype.h.Andrew Cagney3-1/+583
(do_hw_poll_read): Do not assume EAGAIN.