aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
1999-01-28 * cpu.h,decode.c,model.c,sem-switch.c,sem.c: Rebuild.Doug Evans6-2234/+1371
* cpux.h,decodex.c,modelx.c,semx-switch.c: Rebuild.
1999-01-28 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.Doug Evans1-0/+2
1999-01-28 * sim-profile.h: Make like sim-trace.h.Doug Evans1-0/+15
(PROFILE_USEFUL_MASK): New macro. * sim-profile.c (profile_options): Make like trace_options, allow optional on|off arg where applicable. (set_profile_option_mask): New function. (sim_profile_set_option): New function. (profile_option_handler): Simplify. Have -p only enable selected things, not everything. Add missing break to OPTION_PROFILE_PC_RANGE. * cgen-scache.c (scache_options): Allow optional on|off arg to --profile-scache. (scache_option_handler): Use sim_profile_set_option.
1999-01-271999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda2-868/+1058
* simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation comparison. (OP_5607): Ditto. (OP_2A00): Ditto. (OP_2800): Ditto. PRs 18435 18436 18437 18439.
1999-01-26am33 is now kept with --keep-cygnus.Jeff Law1-11/+11
1999-01-26* Update copyright year.Frank Ch. Eigler1-1/+1
1999-01-26* Implement --memory-fill and fix --memory-clear options,Frank Ch. Eigler2-26/+115
for internal PR 18869 and 18870. 1999-01-26 Frank Ch. Eigler <fche@cygnus.com> * sim-memopt.c (memory_options): Add MEMORY_FILL option. (memory_option_handler): Implement MEMORY_FILL option. Make MEMORY_CLEAR an alias for MEMORY_FILL=0. (parse_ulong_value): New function. (do_memopt_add): Allocate all buffers. Optionally fill them.
1999-01-22Initial implementation of fixes for MPC860 version C0 & earlier.James Lemke1-5/+28
1999-01-15sanitize last entryDoug Evans1-0/+2
1999-01-15 * Makefile.in (stamp-arch): Pass FLAGS to cgen.Doug Evans5-1559/+1752
* arch.c,arch.h,cpuall.h: Regenerate. * cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate. * traps.c (sim_engine_invalid_insn): PCADDR->IADDR. * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
1999-01-15 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.Doug Evans1-0/+20
(sim_disassemble_insn): Update prototype. (sim_engine_invalid_insn): Ditto. * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version. (SEM_BRANCH_INIT): PCADDR->IADDR. (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case. * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR. * cgen-scache.h (*): Ditto. * cgen-trace.c (*): Ditto. * cgen-trace.h (*): Ditto. * cgen-utils.c (*): Ditto. * cgen-types.h (integer modes): Use signedNN/unsignedNN types. (insn_t): Delete. * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support. (simple engine framework): Rewrite. * sim-module.c (modules): Install model module sooner (and in particular before the profile module).
1999-01-141999-01-13 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda2-0/+39
* t-sadd.s: New file. * Makefile.in (TESTS): Add t-sadd. PR 18438.
1999-01-12 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.Doug Evans2-1/+3
1999-01-12 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.Doug Evans1-0/+6
* sim-model.c (sim_mach_lookup_bfd_name): New function. (sim_model_init): Call it.
1999-01-12Add new test cases to the list of files to be kept.Dave Brolley1-5/+64
1999-01-12 * Makefile.in (m32r-clean): rm eng.h.Doug Evans2-2/+4
1999-01-12 * sim-main.h: Delete inclusion of ansidecl.h.Doug Evans3-66/+78
* cpu.h: Regenerate. * cpux.h: Regenerate.
1999-01-11keep fr30Doug Evans2-2/+2
1999-01-11keep fr30-elfDoug Evans1-0/+1
1999-01-11fix typo in commentDoug Evans1-1/+1
1999-01-11* gx sim prototype tweaksFrank Ch. Eigler4-43/+86
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-11* build tweak for gx prototypeFrank Ch. Eigler2-1/+5
1999-01-11* Test for PR 18288 and its predecessors.Frank Ch. Eigler3-0/+196
1999-01-11 Frank Ch. Eigler <fche@cygnus.com> * do-flags.S: New test for parallel PSW update conflicts. * Makefile.in (TESTS): Run it.
1999-01-07* Removing last known memories of tx3904 and am30 sanitization.Frank Ch. Eigler2-70/+9
1999-01-07* Test for PR 18679.Frank Ch. Eigler1-0/+8
1999-01-07 Frank Ch. Eigler <fche@cygnus.com> * do-2wordops.S: New test for sign-extension by ld2h.
1999-01-07 * cpu.h: Regenerate.Doug Evans3-0/+27
* cpux.h: Regenerate.
1999-01-06 * Makefile.in (MAIN_INCLUDE_DEPS): Delete.Doug Evans14-983/+7803
(INCLUDE_DEPS,OPS_INCLUDE_DEPS): Delete. (sim-if.o): Use SIM_MAIN_DEPS. (arch.o,traps.o,devices.o): Ditto. (M32RBF_INCLUDE_DEPS): Use CGEN_MAIN_CPU_DEPS. (m32r.o,mloop.o,cpu.o,decode.o,sem.o,model.o): Simplify dependencies. (m32rx.o,mloopx.o,cpux.o,decodex.o,semx.o,modelx.o): Ditto. (stamp-arch): Pass mach=all to cgen-arch. * cpu.c,cpu.h,decode.c,model.c,sem-switch.c,sem.c: Regenerate. * m32r-sim.h (fr30bf_h_cr_[gs]et_handler): Declare. ([GS]ET_H_CR): Define. (fr30bf_h_psw_[gs]et_handler): Declare. ([GS]ET_H_PSW): Define. (fr30bf_h_accum_[gs]et_handler): Declare. ([GS]ET_H_ACCUM): Define. (fr30xf_h_{cr,psw,accum}_[gs]et_handler): Declare. (fr30bf_h_accums_[gs]et_handler): Declare. ([GS]ET_H_ACCUMS): Define. * sim-if.c (sim_open): Model probing code moved to sim-model.c. * m32r.c (WANT_CPU): Define as m32rbf. (all register access fns): Rename to ..._handler. * cpux.c,cpux.h,decodex.c,modelx.c,semx.c: Regenerate. * m32rx.c (WANT_CPU): Define as m32rxf. (all register access fns): Rename to ..._handler.
1999-01-06 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.Doug Evans8-224/+810
(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.
1999-01-051999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1-1/+1
* configure.in: Require autoconf 2.12.1 or higher.
1998-12-31* sky test case updates for MTIR insn PRFrank Ch. Eigler1-0/+5
1998-12-31 Frank Ch. Eigler <fche@cygnus.com> * sim/sky/t-cop2.s: Adjust vmtir instruction tests for new syntax. * sim/sky/t-cop2.vuexpect: Matching changes.
1998-12-31 * sim/sky/sky-defs.tcl: various changes for remote host testing.Felix Lee1-0/+57
* sim/sky/mload.exp: ditto. * sim/sky/sky_sce.exp: ditto. * sim/sky/sky_sce_accurate.exp: ditto. * sim/sky/sky_sce_fast.exp: ditto. * sim/sky/mload.exp: mark as unresolved on error.
1998-12-30* resolution of eCos-vs.-sky merge conflict!Frank Ch. Eigler2-1/+17
[ChangeLog] 1998-12-30 Frank Ch. Eigler <fche@cygnus.com> * mips.igen (BREAK): Call signal_exception instead of sim_engine_halt. start-sanitize-sky * interp.c (signal_exception): Call SIM_CPU_EXCEPTION_TRIGGER hook. Call sim_engine_halt on BreakPoint. end-sanitize-sky [ChangeLog.sky] 1998-12-30 Frank Ch. Eigler <fche@cygnus.com> * sky-gdb.c (sky_sim_engine_halt): Do not set CIA here.
1998-12-30Tue Dec 29 16:03:53 1998 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>Stan Shebs2-1/+6
* configure.in, configure (mips64vr5*-*-*): Added missing ;; in case statement. (actually a sanitize-cygnus mistake, but Rainer doesn't know that)
1998-12-30* build / debug improvements for gx JIT sim prototypeFrank Ch. Eigler4-3/+23
1998-12-30* eCos->devo merge; tx3904 sanitize tags removedFrank Ch. Eigler6-382/+362
1998-12-29 Frank Ch. Eigler <fche@cygnus.com> * interp.c (sim_open): Allocate jm3904 memory in smaller chunks. (load_word): Call SIM_CORE_SIGNAL hook on error. (signal_exception): Call SIM_CPU_EXCEPTION_TRIGGER hook before starting. For exception dispatching, pass PC instead of NULL_CIA. (decode_coproc): Use COP0_BADVADDR to store faulting address. * sim-main.h (COP0_BADVADDR): Define. (SIM_CORE_SIGNAL): Define hook to call mips_core_signal. (SIM_CPU_EXCEPTION*): Define hooks to call mips_cpu_exception*(). (_sim_cpu): Add exc_* fields to store register value snapshots. * mips.igen (*): Replace memory-related SignalException* calls with references to SIM_CORE_SIGNAL hook. * dv-tx3904irc.c (tx3904irc_port_event): printf format warning fix. * sim-main.c (*): Minor warning cleanups.
1998-12-30* ChangeLog tweakFrank Ch. Eigler1-3/+3
1998-12-30* eCos->devo merge; am30 sanitization tags removedFrank Ch. Eigler3-115/+255
1998-12-29 Frank Ch. Eigler <fche@cygnus.com> * Makefile.in (WITH_COMMON_OBJS): Build also dv-sockser.o. * interp.c (sim_open): Add stub mn103002 cache control memory regions. Set OPERATING_ENVIRONMENT on "stdeval1" board. (mn10300_core_signal): New function to intercept memory errors. (program_interrupt): New function to dispatch to exception vector (mn10300_exception_*): New functions to snapshot pre/post exception state. * sim-main.h (SIM_CORE_SIGNAL): Define hook - call mn10300_core_signal. (SIM_ENGINE_HALT_HOOK): Do nothing. (SIM_CPU_EXCEPTION*): Define hooks to call mn10300_cpu_exception*(). (_sim_cpu): Add exc_* fields to store register value snapshots. * dv-mn103ser.c (*): Support dv-sockser backend for UART I/O. Various endianness and warning fixes. * mn10300.igen (illegal): Call program_interrupt on error. (break): Call program_interrupt on breakpoint Several changes from <janczyn@cygnus.com> and <cagney@cygnus.com> merged in: * dv-mn103int.c (mn103int_ioctl): New function for NMI generation. (mn103int_finish): Install it as ioctl handler. * dv-mn103tim.c: Support timer 6 specially. Endianness fixes.
1998-12-30* eCos->devo mergeFrank Ch. Eigler2-52/+179
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-24m16.igen (DADDIU5): Correct type-o.Gavin Romig-Koch1-0/+26
1998-12-18New testcase.Dave Brolley1-0/+34
1998-12-18Fri Dec 18 17:09:34 1998 Dave Brolley <brolley@cygnus.com>Dave Brolley20-0/+699
* sim/fr30/ldres.cgs: New testcase. * sim/fr30/stres.cgs: New testcase. * sim/fr30/copop.cgs: New testcase. * sim/fr30/copld.cgs: New testcase. * sim/fr30/copst.cgs: New testcase. * sim/fr30/copsv.cgs: New testcase. * sim/fr30/nop.cgs: New testcase. * sim/fr30/andccr.cgs: New testcase. * sim/fr30/orccr.cgs: New testcase. * sim/fr30/addsp.cgs: New testcase. * sim/fr30/stilm.cgs: New testcase. * sim/fr30/extsb.cgs: New testcase. * sim/fr30/extub.cgs: New testcase. * sim/fr30/extsh.cgs: New testcase. * sim/fr30/extuh.cgs: New testcase. * sim/fr30/enter.cgs: New testcase. * sim/fr30/leave.cgs: New testcase. * sim/fr30/xchb.cgs: New testcase. * sim/fr30/dmovb.cgs: New testcase. * sim/fr30/dmov.cgs: New testcase. * sim/fr30/dmovh.cgs: New testcase.
1998-12-17Thu Dec 17 17:18:43 1998 Dave Brolley <brolley@cygnus.com>Dave Brolley18-0/+1837
* sim/fr30/testutils.inc (take_branch{_d},no_branch{_d}): New macros. * sim/fr30/ret.cgs: Add tests fir ret:d. * sim/fr30/inte.cgs: New testcase. * sim/fr30/reti.cgs: New testcase. * sim/fr30/bra.cgs: New testcase. * sim/fr30/bno.cgs: New testcase. * sim/fr30/beq.cgs: New testcase. * sim/fr30/bne.cgs: New testcase. * sim/fr30/bc.cgs: New testcase. * sim/fr30/bnc.cgs: New testcase. * sim/fr30/bn.cgs: New testcase. * sim/fr30/bp.cgs: New testcase. * sim/fr30/bv.cgs: New testcase. * sim/fr30/bnv.cgs: New testcase. * sim/fr30/blt.cgs: New testcase. * sim/fr30/bge.cgs: New testcase. * sim/fr30/ble.cgs: New testcase. * sim/fr30/bgt.cgs: New testcase. * sim/fr30/bls.cgs: New testcase. * sim/fr30/bhi.cgs: New testcase.
1998-12-17More sce_testNN cases updated, pr 18402.Doug Evans1-1/+13
1998-12-17 * sim/sky/sce_test58.vuasm: Update syntax of MTIR insn.Doug Evans1-0/+13
PR 18402
1998-12-16* Sanitization fixes to retain new files.Frank Ch. Eigler1-0/+2
1998-12-16New 'hack' generatorGavin Romig-Koch3-36/+246
1998-12-16vr4run.c, keep-if vr4xxxFelix Lee1-0/+7
1998-12-15missing *vr4320:Gavin Romig-Koch2-0/+9
1998-12-15 * configure.in: --enable-cgen-maint support moved to common/aclocal.m4.Doug Evans1-33/+2
(SIM_AC_OPTION_ALIGNMENT): Make strict. * configure: Regenerate. * sem-switch.c,sem.c,semx-switch.c: Regenerate. * sim-main.h (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Define. * traps.c (m32r_core_signal): Handle --environment=operating.
1998-12-14 * sim/m32r/uread16.ms: New testcase.Doug Evans6-0/+81
* sim/m32r/uread32.ms: New testcase. * sim/m32r/uwrite16.ms: New testcase. * sim/m32r/uwrite32.ms: New testcase.