aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r
AgeCommit message (Collapse)AuthorFilesLines
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-09 * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.Doug Evans4-61/+66
* cpux.h,decodex.c,semx-switch.c: Regenerate.
1998-12-09* sim-if.c: Include string.h or strings.h if present.Doug Evans1-0/+4
1998-12-05 * configure.in: Call SIM_AC_OPTION_INLINE.Doug Evans11-796/+1068
* configure: Regenerate. * sim-main.h: Protect against multiple inclusion. Don't include cgen-scache.h,cgen-cpu.h,cgen-trace.h,cpuall.h. Done by cgen-sim.h now. * tconfig.in (SIM_HAVE_MODEL): Delete, moved to cgen-types.h. * cpuall.h: Regenerate. * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate. * mloop.in (extract16): Make static inline again. Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp. (extract32): Ditto. Simplify with call to @cpu@_fill_argbuf,@cpu@_fill_argbuf_tp. (execute): Test ARGBUF_PROFILE_P before profiling. Update calls to TRACE_INSN_INIT,TRACE_INSN_FINI. * cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate. * mloopx.in: Rewrite.
1998-12-04 * cpu.h,decode.c,sem-switch.c,sem.c: Regenerate.Doug Evans8-4170/+13693
* cpux.h,decodex.c,modelx.c,semx-switch.c: Regenerate.
1998-11-19 * Makefile.in (M32R_OBJS): Delete extract.o.Doug Evans4-2854/+22
(extract.o): Delete. (stamp-arch): Depend on $(CGEN_ARCH_SCM). (stamp-cpu): Don't build extract.c. * cpu.c,cpu.h,decode.c,decode.h,sem-switch.c,sem.c: Rebuild. * mloop.in (extract16): Update type of `insn' arg. Delete call to d->extract. (extract32): Ditto. * Makefile.in (M32RX_OBJS): Delete extractx.o. (extractx.o): Delete. (stamp-xcpu): Don't build extractx.c. * cpux.c,cpux.h,decodex.c,decodex.h,semx-switch.c: Rebuild. * mloopx.in (extractx16): Update type of `insn' arg. Delete call to d->extract. Delete arg pbb_p. All callers updated. (extract-simple,full-exec-simple,fast-exec-simple): Delete. (extractx32): Ditto.
1998-11-05 * sim-main.h: Delete inclusion of config.h, include sim-basics.hDoug Evans4-680/+811
before cgen-types.h. * tconfig.in: Guard against multiple inclusion. * cpu.h: Delete decls moved to genmloop.sh. * cpux.h: Ditto.
1998-10-28 * sim-if.c (sim_do_command): Handle "sim info reg {bbpsw,bbpc}".Doug Evans2-152/+72
Bring over from branch.
1998-10-19 * sim-main.h: #include cpu-opc.h.Doug Evans2-2/+0
* arch.c,arch.h,decode.c,extract.c,model.c,sem.c: Regenerate to get #include cleanup. * decodex.c,extractx.c,modelx.c: Ditto.
1998-10-19 * Makefile.in (SIM_EXTRA_DEPS): Replace cgen headers withDoug Evans2-37/+45
CGEN_INCLUDE_DEPS. (M32RBF_INCLUDE_DEPS): Define. (m32r .o's): Depend on it. (mloop.c): Update call to genmloop.sh. * cpu.h,cpuall.h: Regenerate. * sim-main.h: Delete inclusion of cpu.h,decode.h, moved to cpuall.h. #include cgen-scache.h,cgen-cpu.h. * tconfig.in (WITH_FOO semantic macros): Delete. * Makefile.in (M32RXF_INCLUDE_DEPS): Define. (m32rx .o's): Depend on it. (mloopx.c): Update call to genmloop.sh. * cpux.h: Regenerate.
1998-10-09 Add pseudo-basic-block execution support.Doug Evans8-5612/+1868
* Makefile.in (SIM_OBJS): Add sim-reg.o, cgen-run.o, sim-stop.o. (SIM_EXTRA_DEPS): Add include/opcode/cgen.h. (INCLUDE_DEPS): Delete cpu-sim.h, include/opcode/cgen.h. (mloop.c): Build pseudo-basic-block version. Depend on stamp-cpu. (stamp-decode): Delete, build decode files with other cpu files. * arch.c,arch.h,cpuall.h: Regenerate. * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. * sem-switch.c,sem.c: Regenerate. * m32r-sim.h (M32R_MISC_PROFILE): New members load_regs, load_regs_pending. * m32r.c (m32rbf_fetch_register): Renamed from m32rb_fetch_register. (m32rbf_store_register,m32rbf_h_cr_get,m32rbf_h_cr_set, m32rbf_h_psw_get,m32rbf_h_psw_set,m32rbf_h_accum_get, m32rbf_h_accum_set): Likewise. (m32r_model_{init,update}_insn_cycles): Delete. (m32rbf_model_insn_{before,after}): New fns. (m32r_model_record_cti,m32r_model_record_cycles): Delete. (m32rb_model_mark_get_h_gr,m32rb_model_mark_set_h_gr): Delete. (m32rb_model_mark_busy_reg,m32rb_model_mark_unbusy_reg): Delete. (check_load_stall): New fn. (m32rbf_model_m32r_d_u_{exec,cmp,mac,cti,load,store}): New fns. (m32rbf_model_test_u_exec): New fn. * mloop.in: Rewrite, use pbb support. * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Delete. (sim_fetch_register,sim_store_register): Delete. * sim-main.h (CIA_GET,CIA_SET): Fix. (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Delete. * tconfig.in (WITH_SCACHE_PBB): Define. (WITH_SCACHE_PBB_M32RBF): Define. * traps.c (sim_engine_invalid_insn): Renamed from ..._illegal_.... (m32r_trap): Pass pc to sim_engine_halt. * configure.in (SIM_AC_OPTION_SCACHE): Change 1024 to 16384. * configure: Regenerate. start-sanitize-m32rx * Makefile.in (M32RX_OBJS): Delete semx.o, add extract.o. (mloopx.c): Build pseudo-basic-block version. Depend on stamp-xcpu. (semx.o): Delete. (extractx.o): Add. (stamp-xdecode): Delete, build decode files with other cpu files. * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c: Regenerate. * readx.c: Delete. * semx.c: Delete. * extractx.c: New file. * semx-switch.c: New file. * m32r-sim.h (BRANCH_NEW_PC): Delete. (SEM_SKIP_INSN): New macro. * m32rx.c (m32rxf_fetch_register): Renamed from m32rx_fetch_register. (m32rxf_store_register,m32rxf_h_cr_get,m32rxf_h_cr_set, m32rxf_h_psw_get,m32rxf_h_psw_set,m32rxf_h_accum_get, m32rxf_h_accum_set,m32rxf_h_accums_get,m32rxf_h_accums_set): Likewise. (m32rxf_model_insn_{before,after}): New fns. (m32rx_model_mark_get_h_gr,m32rx_model_mark_set_h_gr): Delete. (m32rx_model_mark_busy_reg,m32rx_model_mark_unbusy_reg): Delete. (check_load_stall): New fn. (m32rxf_model_m32rx_u_{exec,cmp,mac,cti,load,store}): New fns. * mloopx.in: Rewrite, use pbb support. * tconfig.in (WITH_SCACHE_PBB_M32RXF): Define. (WITH_SEM_SWITCH_FULL): Change from 0 to 1. end-sanitize-m32rx
1998-09-15 * m32r-sim.h (GET_H_SM): New macro.Doug Evans3-21/+146
(UART params): Update to msa2000. * devices.c (device_io_read_buffer): Update to msa2000. * m32r.c (m32rb_h_cr_get,m32rb_h_cr_set): Handle bbpc,bbpsw. (m32rb_h_psw_get,m32rb_h_psw_set): New functions. * arch.c,arch.h,cpu.c,cpu.h,sem-switch.c,sem.c: Regenerate. * m32rx.c (m32rx_h_cr_get,m32rx_h_cr_set): Handle bbpc,bbpsw. (m32rx_h_psw_get,m32rx_h_psw_set): New functions. * cpux.c,cpux.h,readx.c,semx.c: Regenerate. PR 15938.
1998-09-09 * m32r-sim.h (m32r_trap): Update prototype.Doug Evans8-994/+1711
* traps.c (m32r_trap): New arg `pc'. * sem.c,sem-switch.c: Regenerated. * cpux.h,readx.c,semx.c: Regenerated.
1998-08-04 Rename cpu m32r to m32rb to distinguish from architecture name.Doug Evans1-57/+57
* Makefile.in (mloop.c): cpu m32r renamed to m32rb. (stamp-cpu): Ditto. * sim-main.h (WANT_CPU_M32RB): Renamed from WANT_CPU_M32R. * tconfig.in (WANT_CPU_M32RB): Ditto. * m32r.c (WANT_CPU_M32RB): Ditto. (*): m32r_ cpu fns renamed to m32rb_. * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Update. * arch.h,arch.c: Regenerate. * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. * sem-switch.c,sem.c: Regenerate. * sim-if.c (sim_open): Don't allocate memory on top of any user specified memory. (h_gr_get,h_gr_set): Delete. * sim-main.h (h_gr_get,h_gr_set): Delete. * traps.c (m32r_trap): Replace calls to h_gr_[gs]et with a_m32r_h_gr_[gs]et.
1998-08-03 * Makefile.in (INCLUDE_DEPS): Add include/opcode/cgen.h.Doug Evans3-117/+41
* sim-if.c (sim_open): Open opcode table. (sim_close): Close it.
1998-07-28 Add support for new versions of mulwhi,mulwlo,macwhi,macwlo thatDoug Evans2-65/+53
accept an accumulator choice. * cpux.c,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
1998-07-24 * m32r.c: Include cgen-mem.h.Doug Evans2-119/+128
* traps.c (m32r_trap): Tweak for -Wall. * m32rx.c: Include cgen-mem.h. * semx.c: Regenerate, get -Wall cleanups.
1998-07-21 * cpu.h,extract.c: Regenerate. pc-rel calcs done on f_dispNN now.Doug Evans5-436/+583
* cpux.h,readx.c,semx.c: Ditto.
1998-07-02 * Makefile.in: cgen_maint -> CGEN_MAINT.Doug Evans4-396/+762
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile. * configure: Regenerate. * arch.c,arch.h,cpuall.h: Regenerate. * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. * sem-switch.c,sem.c: Regenerate. * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate. * semx.c: Regenerate. * mloopx.in (icount): Moved here from genmloop.sh.
1998-06-13 * m32r-sim.h (M32R_MISC_PROFILE): New members insn_cycles, cti_stall,Doug Evans2-1/+200
load_stall,biggest_cycles. * m32r.c (m32r_model_mark_get_h_gr): Update. (m32r_model_init_insn_cycles,m32r_model_update_insn_cycles): New fns. (m32r_model_record_cti,m32r_model_record_cycles): New functions. * mloop.in: Call cycle init/update fns. * model.c: Regenerate. * m32rx.c (m32rx_model_mark_get_h_gr): Update. * mloopx.in: Call cycle init/update fns. * modelx.c: Regenerate.
1998-06-12 * Makefile.in (stamp-{arch,cpu,decode}): Pass CGEN_FLAGS_TO_PASSDoug Evans1-0/+8
to recursive makes. (stamp-{xcpu,xdecode}): Ditto.
1998-06-11Regenerate, gets a_m32r_trap -> m32r_trap renaming.Doug Evans1-1/+1
1998-06-11 * m32r-sim.h (m32r_trap): Declare.Doug Evans2-0/+4
1998-06-11 * Makefile.in (SIM_OBJS): Add traps.oDoug Evans1-1/+4
1998-06-11 * traps.c: New file. Trap support moved here from sim-if.c.Doug Evans5-11/+379
* Makefile.in (SIM_OBJS): Add traps.o * sim-if.c: Don't include targ-vals.h. (sim_engine_illegal_insn): Moved to traps.c * sim-main.h (SIM_CORE_SIGNAL): Define. (m32r_core_signal): Declare. * devices.c (device_io_read_buffer): Handle cache purging via MCCR register. * m32r-sim.h (M32R_MISC_PROFILE): Move here from sim-main.h. (PROFILE_COUNT_SHORTINSNS,PROFILE_COUNT_LONGINSNS): New macros. (TRAP_SYSCALL,TRAP_BREAKPOINT): New macros.
1998-06-11Regenerate. Updates from cgen for better VoidMode handling.Doug Evans5-72/+72
1998-05-20 * m32r-sim.h (PROFILE_COUNT_PARINSNS): New macro.Doug Evans1-0/+6
* mloopx.in (extract): Set abuf.addr for proper fill nop counting. (execute): Count parallel insns. * sim-if.c (print_m32r_misc_cpu): Print count. * sim-main.h (M32R_MISC_PROFILE): New member parallel_count.
1998-05-20 Zero bottom two bits of pc in jmp,jl insns.Doug Evans2-2/+10
* sem.c,sem-switch.c: Regenerate. * semx.c: Regenerate.
1998-05-19 * sim-if.c (do_trap): Treat traps 2-15 as hardware does.Doug Evans2-2/+8
1998-05-16 * sim-if.c (sim_stop): Update call to @cpu@_engine_stop.Doug Evans2-126/+137
(sim_sync_stop): New function.
1998-05-15 * Makefile.in (devices.o): Add dependencies.Doug Evans5-384/+709
* arch.h,cpu.c,cpu.h,cpuall.h: Regenerate. * sem-switch.c,sem.c: Regenerate. * mloop.in (execute): Update calls to TRACE_INSN_{INIT,FINI}. * cpux.c,cpux.h,modelx.c,semx.c: Regenerate. * m32rx.c (m32rx_model_mark_{busy,unbusy}_reg): New functions. * mloopx.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
1998-05-06lotsa stuff, see ChangeLogDoug Evans1-0/+64
1998-05-06 * sem-switch.c: Regenerate. Redo computed goto label handling.Doug Evans2-249/+632
* sem.c: Regenerate. Call PROFILE_COUNT_INSN. * readx.c: Regenerate. Redo computed goto label handling. * semx.c: Regenerate. Call PROFILE_COUNT_INSN. Finish profiling support. * Makefile.in (stamp-xcpu): Turn on profiling support.
1998-05-06 * Makefile.in (m32r.o,mloop.o,cpu.o,model.o): Add decode.h dependency.Doug Evans1-23/+29
(m32rx.o,mloopx.o,cpux.o,modelx.o): Add decodex.h dependency. * decode.c,decode.h: Regenerate, introduces IDESC table. * mloop.in (extract16,extract32): Add IDESC support. Update names of semantic handler member names. (execute): Ditto. Delete call to PROFILE_COUNT_INSN. * decodex.c,decodex.h: Regenerate, introduces IDESC table. * mloopx.in: Add IDESC support. Update names of semantic handler member names. Delete call to PROFILE_COUNT_INSN.
1998-05-02 * Makefile.in: Replace @MAINT@ with $(CGEN_MAINT).Doug Evans1-1/+11
(CGEN_MAINT): New variable. * configure.in: Add support for --enable-cgen-maint. * configure: Regenerate.
1998-04-29Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer2-126/+167
* common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define AM_CYGWIN32 and AM_EXEEXT. * common/Make-common.in: set EXEEXT, add missing EXEEXTs to run and install-common rules. * common/configure: regenerate And update all subdirectory ChangeLogs and configure files.
1998-04-29Rebuilt from latest cen filesNick Clifton1-0/+7
1998-04-27 * cpu.c,model.c,sem-switch.c,sem.c: Regenerated. Mostly commentDoug Evans5-185/+40
and variable renaming due to macro insn additions. * mloop.in: Update to use CGEN_INSN_NUM. * cpu.x,modelx.c,readx.c,semx.c: Regenerated. * mloopx.in: Update to use CGEN_INSN_NUM.
1998-04-27 * cpu.c,model.c,sem-switch.c,sem.c: Regenerated. Mostly commentDoug Evans1-0/+10
and variable renaming due to macro insn additions. * mloop.in: Update to use CGEN_INSN_NUM. * cpu.x,modelx.c,readx.c,semx.c: Regenerated. * mloopx.in: Update to use CGEN_INSN_NUM.
1998-04-26 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey5-125/+153
* config.in: Ditto. * acconfig.h: New file. * configure.in: Reverted change of Apr 24; use sinclude again.
1998-04-24 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey3-46/+1777
* config.in: Ditto. * configure.in: Don't call sinclude.
1998-04-20 * cpu.c,sem.c,sem-switch.c: Regenerate. FromDoug Evans5-317/+337
- cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS. * m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions. #include cgen-ops.h. * cpux.c,readx.c,semx.c: Regenerate. * m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions. #include cgen-ops.h. Delete inclusion of several unnecessary headers. (m32r_h_accums_get): Sign extend top 8 bits.
1998-04-14 * semx.c: Regenerate.Doug Evans1-1/+1
PR 15693.
1998-04-11 * cpu.h,decode.c,decode.h,extract.c,sem.c,sem-switch.c: Regenerate.Doug Evans4-1051/+1019
* cpux.h,decodex.c,decodex.h,readx.c,semx.c: Regenerate. Main change is to remove ordinal from format names.
1998-04-04Cleanup INLINE support for simulators using common framework.Andrew Cagney1-0/+16
Make IGEN responsible for co-ordinating inlining of generated files. By default, aclocal.m4 disabled all inlining.
1998-03-15 * config.in (HAVE_FCNTL_H): Add.Doug Evans4-19/+163
* configure: Regenerate. * Makefile.in (SIM_OBJS): Add devices.o. * m32r-sim.h (m32r_devices): Renamed from m32r_mspr_device. (UART_*): Define m32r serial port parameters. (M32R_DEVICE_ADDR,M32R_DEVICE_LEN): Define. * m32r.c (device_io_{read,write}_buffer,device_error): Move from here, * devices.c: To here. * sim-if.c: Don't include signal.h,sim-core.h. (sim_open): Use M32R_DEVICE_{ADDR,LEN} in sim_core_attach call. (sim_resume): Call sim_module_{resume,suspend}. * m32r.c (m32r_h_cr_{get,set}): Use register number enums. * tconfig.in (SIM_HANDLES_LMA): Define. * sim-if.c (do_trap): Result is new pc. Handle --environment=operating. * sem-switch.c,sem.c: Regenerate. start-sanitize-m32rx * semx.c: Regenerate. end-sanitize-m32rx
1998-03-04 * Makefile.in (SIM_EXTRA_DEPS): Add cpu-opc.h.Doug Evans2-7/+14
(arch.o): Delete cpu-opc.h dependency. (decode.o,model.o): Likewise. (decodex.o,modelx.o): Likewise.
1998-03-04 * cpu.h,model.c,sem-switch.c,sem.c: Regenerate.Doug Evans3-325/+453
* cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
1998-02-28Add generic sim-info.c:sim_info() function using module mechanism.Andrew Cagney3-18/+181
Clean up compile probs in mips/vr5400.
1998-02-27 * mloopx.in: Fix handling of branch in parallel with another insn.Doug Evans2-1/+8
* semx.c: Regenerate.