aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r
AgeCommit message (Collapse)AuthorFilesLines
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.
1998-02-23 * sim-main.h: #include symcat.h.Doug Evans8-452/+524
* m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg. (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros. * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate. * sem.c,sem-switch.c: Regenerate. * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec. * mloopx.in: Rewrite. * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1998-02-23Implment backup PC shadowing of CR6.Nick Clifton1-0/+8
1998-02-20 * m32r.c (do_lock,do_unlock): Delete.Doug Evans14-1656/+2284
* cpu.[ch],decode.[ch],extract.c,model.c: Regenerate. * sem.c,sem-switch.c: Regenerate. * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate.
1998-02-18 * Makefile.in (M32R_OBJS): Add cpu.o.Doug Evans5-834/+1317
(cpu.o): Add rule for. (NL_TARGET): Define. * configure.in: Add AC_CHECK_PROG(SCHEME). * cpu.c: New file. * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. * sem-switch.c,sem.c: Regenerate. * mloop.in (execute): Update call to semantic fn. (M32RX_OBJS): Add cpux.o. (cpux.o): Add rule for. cpux.c: New file. * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate. * m32rx.c (m32rx_h_accums_{get,set}): Rewrite. (m32rx_h_cr_{get,set}): New functions. (m32rx_h_accums_{get,set}): New functions. * mloopx.in: Rewrite main loop. * m32r.c (do_trap): Move from here. * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support. (sim_create_inferior): Use h_pc_set. (h_pc_{get,set}): New functions. (h_gr_{get,set}): New functions. (syscall_{read,write}_mem): New functions. * sim-main.h (h_{gr,pc}_{get,set}): Declare.
1998-02-17For sim_fetch_register / sim_store_register: Add LENGTH parameter,Andrew Cagney2-130/+188
return actual size of register, 0 if not applicable, -1 of legacy implementation.
1998-02-12 * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now.Doug Evans2-3/+5
1998-02-12 * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate.Doug Evans12-540/+2291
* cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate.
1998-02-10 * decode.c, sem.c: Regenerate.Doug Evans2-293/+344
start-sanitize-m32rx * cpux.h, decodex.c, readx.c, semx.c: Regenerate. * m32rx.c (m32rx_h_accums_set): New function. (m32rx_model_mark_[gs]et_h_gr): New function. * mloopx.in: Rewrite. * Makefile.in (mloopx.o): Build with -parallel. * sim-main.h (_sim_cpu): Delete member `par_exec'. * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx. end-sanitize-m32rx
1998-02-05Sanitize m32rx from cpu.h and m32r-sim.h.Doug Evans1-1/+1
1998-02-05 * Makefile.in (m32r.o): Depend on cpu.hDoug Evans13-1490/+3138
(extract.o): Pass -DSCACHE_P. * mloop.in (extract{16,32}): Update call to m32r_decode. * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate. * extract.c,model.c,sem-switch.c,sem.c: Regenerate. * sim-main.h: #include "ansidecl.h". Don't include cpu-opc.h, done by arch.h. start-sanitize-m32rx * Makefile.in (M32RX_OBJS): Build m32rx support now. (m32rx.o): New rule. * m32r-sim.h (m32rx_h_cr_[gs]et): Define. * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC. (m32rx_h_accums_get): New function. * mloopx.in: Update call to m32rx_decode. Rewrite exec loop. * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate. end-sanitize-m32rx
1998-01-31Add config support for the size of the target address and OF cell.Andrew Cagney1-0/+4
1998-01-29 * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.Doug Evans1-2/+10
* arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h. * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
1998-01-29 * Makefile.in (M32RX_OBJS): Comment out until m32rx port working.Doug Evans1-1/+1
* arch.h (HAVE_CPU_M32RX): Likewise. * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry.
1998-01-23sanitize m32rx piece of _sim_cpuDoug Evans1-8/+10
1998-01-23add m32rx sanitization to tconfig.inDoug Evans1-9/+8
1998-01-20Fixed duplicate definition of h_accums field in fmt_53_sadd structureNick Clifton1-0/+5
1998-01-20Add m32rx sanitization for new files.Doug Evans1-1/+9
1998-01-20 * Makefile.in: Add m32rx objs, and rules to build them.Doug Evans5-4/+5488
* cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files. * m32rx.c, mloopx.in: New files.
1998-01-20Regenerate.Doug Evans2-3/+9
1998-01-20* aclocal.m4: Recognize --enable-maintainer-mode.Doug Evans2-49/+109
*/configure: Regenerated.
1998-01-20* arch-defs.h: Deleted.Doug Evans2-241/+1184
* sem-switch.c: Regenerate.
1998-01-20* cpu.h: New file.Doug Evans3-0/+907
1998-01-20Regenerate.Doug Evans3-3418/+1187
1998-01-20 * arch.c, arch.h, cpuall.h: New files.Doug Evans11-1837/+496
* arch-defs.h: Deleted. * mloop.in: Renamed from mainloop.in. * sem.c: Renamed from semantics.c. * Makefile.in: Update. * sem-ops.h: Deleted. * mem-ops.h: Deleted. start-sanitize-cygnus Add cgen support for generating files. end-sanitize-cygnus (arch): Renamed from CPU. * decode.c: Redone. * decode.h: Redone. * extract.c: Redone. * model.c: Redone. * sem-switch.c: Redone. * sem.c: Renamed from semantics.c, and redone. * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update. (GETTWI,SETTWI,BRANCH_NEW_PC): Define. * m32r.c (WANT_CPU,WANT_CPU_M32R): Define. (m32r_{fetch,store}_register): New functions. (model_mark_{get,set}_h_gr): Prefix with m32r_. (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_. (h_cr_{get,set}): Prefix with m32r_. (do_trap): Fetch state from current_cpu, not current_state. Call sim_engine_halt instead of engine_halt. * sim-if.c (alloc_cpu): New function. (free_state): New function. (sim_open): Call sim_state_alloc, and malloc space for selected cpu type. Call sim_analyze_program. (sim_create_inferior): Handle selected cpu type when setting PC. start-sanitize-m32rx (sim_resume): Handle m32rx. end-sanitize-m32rx (sim_stop_reason): Deleted. (print_m32r_misc_cpu): Update. start-sanitize-m32rx (sim_{fetch,store}_register): Handle m32rx. end-sanitize-m32rx (sim_{read,write}): Deleted. (sim_engine_illegal_insn): New function. * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h. Include arch.h,cpuall.h. Include cpu.h,decode.h if m32r. start-sanitize-m32rx Include cpux.h,decodex.h if m32rx. end-sanitize-m32rx (_sim_cpu): Include member appropriate cpu_data member for the cpu. (M32R_MISC_PROFILE): Renamed from M32R_PROFILE. (sim_state): Delete members core,events,halt_jmp_buf. Change `cpu' member to be a pointer to the cpu's struct, rather than record inside the state struct. * tconfig.in (WITH_DEVICES): Define here. (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu.
1998-01-16Fix typo: .syntax.name should have been .nameNick Clifton2-2/+11
1997-12-05 * m32r-sim.h (MSPR_ADDR): New macro.Doug Evans2-8/+19
(m32r_mspr_device): Declare. (struct _devicep: Define. * m32r.c (m32r_mspr_device): New global. (device_{io_{read,write}_buffer,error}): New functions. * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map. * sim-if.c: Delete redundant inclusion of cpu-sim.h. (sim_open): Attach device to handle MSPR register. * sim-main.h (WITH_DEVICES): Define as 1. Include cpu-sim.h.
1997-12-04Regenerate configure files.Doug Evans1-0/+4
1997-12-04 * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.Doug Evans2-0/+12
* configure: Regenerated.
1997-11-19 * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.Doug Evans1-32/+32
* sim-if.c (sim_open): Call sim_config. (sim_stop_reason): Update call to sim_signal_to_host.
1997-11-18 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).Doug Evans1-0/+8
1997-10-27 * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division.Doug Evans2-12/+24
1997-09-23Remove need to update <targ>/Makefile.in when adding optional optionsAndrew Cagney2-52/+149
to <targ>/configure.in. Simplify logic used to select target [default] endianness.
1997-09-22Add memory alignment config option.Andrew Cagney3-43/+98
1997-09-22Simplify logic behind the generic configuration option --enable-sim-alignment.Andrew Cagney1-0/+4
1997-09-22Add support for --enable-sim-alignment to simulator common aclocal.m4Andrew Cagney1-0/+13
Add support for --alignment={strict,nonstrict,forced} to simulator common run-time options. For v850 use, make the default NONSTRICT_ALIGNMENT.
1997-09-15Update to reflect change to sim/common/aclocal.m4 (allow sim/commonAndrew Cagney1-0/+4
directory to specify its own unqiue config.h file).
1997-09-05* configure: Regenerated to track ../common/aclocal.m4 changes.David Edelsohn2-11/+16
1997-09-05Define SIGNED64 and UNSIGNED64 macros - handle MSC/GCC LL issue.Andrew Cagney1-0/+4
1997-09-04o Add modulo argument to sim_core_attachAndrew Cagney2-1/+5
o Add sim-memopt module - memory option processing.
1997-08-27Fix doco on enable-sim-inline.Andrew Cagney1-0/+5
1997-08-27Add ABFD argument to sim_create_inferior. Document.Andrew Cagney3-24/+98
Add file sim-hload.c - generic load for hardware only simulators. Review each simulators sim_open, sim_load, sim_create_inferior so that they more closely match required behavour.
1997-08-26Flush defunct sim_kill.Andrew Cagney2-7/+4
1997-08-25Add ABFD argument to sim_open call. Pass through to sim_config soAndrew Cagney3-25/+1967
that image properties such as endianness can be checked. More strongly document the expected behavour of each of the sim_* interfaces. Add default endian argument to simulator config macro SIM_AC_OPTION_ENDIAN. Use in sim_config.
1997-05-21Watchpoint interface.Andrew Cagney1-0/+6
1997-05-19o Implement generic halt/restart/abort module.Andrew Cagney1-0/+5
Use in tic80 and d30v simulators. o Add signal hook to sim-core module