aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r
AgeCommit message (Collapse)AuthorFilesLines
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
1997-05-05Start of implementation of a distributed (between processors)Andrew Cagney3-18/+29
simulator core object.
1997-05-03 * decode.c (decode): Add computed goto support.David Edelsohn1-0/+4
1997-05-02Update devo version of m32r sim to build with recent sim/common changes.Andrew Cagney2-16/+345
1997-05-01 Merge from branch into devo. CGEN generic files moved to commonDavid Edelsohn9-0/+8326
directory. K&R C support is no longer provided.
1996-12-17Getting there ...David Edelsohn2-0/+35