aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
AgeCommit message (Collapse)AuthorFilesLines
1998-03-25* mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM): Define.Andrew Cagney1-0/+6
(SP): Define.
1998-03-25Re-do --enable-sim-hardware so that each simulator can specify the devicesAndrew Cagney1-0/+4
it wants built. Generate hw-config.h.
1998-03-25Pacify GCC.Andrew Cagney6-51/+72
1998-03-24Add new files: mn10300.igen, mn10300.dc, sim-main.h, op_utils.cJoyce Janczyn1-0/+4
1998-03-24Port mn10300 simulator to build with the common simulator frameworkJoyce Janczyn1-0/+41
under the configure option --enable-sim-common.
1998-03-24Add code to support building mn10300 simulator with the common simulatorJoyce Janczyn1-79/+398
framework.
1998-03-24Add support for building simulator based on common simulator framework.Joyce Janczyn1-5/+110
Separate out files which get compiled depending on --enable-sim-common configuration.
1998-03-24Add ability to configure mn10300 built with common simulator code base.Joyce Janczyn2-50/+551
Use --enable-sim-common to build this way; default configure has not changed.
1998-03-24New {load/store}_{byte/half/word} macros for simulator built withJoyce Janczyn1-5/+209
common framework.
1998-03-24Header file required by igen generated files.Joyce Janczyn1-0/+96
1998-03-24IGEN input files for mn10300 simulator.Joyce Janczyn2-0/+3524
1998-02-28 * simops.c (inc): Fix typo.Jeff Law1-1/+1
1998-02-25 * simops.c (signed multiply instructions): Cast input operands toJeff Law2-10/+16
signed32 before casting them to signed64 so that the sign bit is propagated properly.
1998-02-24 * Makefile.in: Last change was bad. Define NL_TARGETMark Alexander3-23/+40
so that targ-vals.h will be used instead of syscall.h. * simops.c: Use targ-vals.h instead of syscall.h. (OP_F020): Disable unsupported system calls.
1998-02-23 * Makefile.in: Get header files from libgloss/mn10300/sys.Mark Alexander2-8/+14
1998-02-22 * simops.c: Include sim-types.h.Jeff Law2-0/+10
1998-02-18 * simops.c (multiply instructions): Cast input operands to aJeff Law1-17/+20
signed64/unsigned64 type as appropriate.
1998-02-17For sim_fetch_register / sim_store_register: Add LENGTH parameter,Andrew Cagney1-0/+9
return actual size of register, 0 if not applicable, -1 of legacy implementation.
1998-01-31Add config support for the size of the target address and OF cell.Andrew Cagney1-0/+4
1998-01-20* aclocal.m4: Recognize --enable-maintainer-mode.Doug Evans2-43/+96
*/configure: Regenerated.
1997-11-11 * simops.c (call:16 call:32): Stack adjustment is determined solelyJeff Law1-4/+8
by the imm8 field.
1997-10-25Correct name of file given in ChangeLog for change: Pass lma_p andAndrew Cagney1-1/+1
sim_write args to sim_load_file.
1997-10-22Add LMA_P and DO_WRITE arguments to sim/common/sim-load.c:sim_load_file().Andrew Cagney1-0/+5
Update all simulators. Clarify behavour of sim_load in remote-sim.h
1997-10-21 * simops.c: Correctly handle register restores for "ret" and "retf"Jeff Law2-66/+71
instructions. pr13306 related stuff.
1997-09-23Remove need to update <targ>/Makefile.in when adding optional optionsAndrew Cagney2-39/+125
to <targ>/configure.in. Simplify logic used to select target [default] endianness.
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/+8
Add support for --alignment={strict,nonstrict,forced} to simulator common run-time options. For v850 use, make the default NONSTRICT_ALIGNMENT.
1997-09-05* configure: Regenerated to track ../common/aclocal.m4 changes.David Edelsohn2-71/+307
1997-08-27Fix doco on enable-sim-inline.Andrew Cagney1-0/+5
1997-08-27Add ABFD argument to sim_create_inferior. Document.Andrew Cagney1-0/+3
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 Cagney2-3/+26
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-06-24 * interp.c (sim_resume): Clear State.exited.Jeff Law1-0/+1
(sim_stop_reason): If State.exited is nonzero, then indicate that the simulator exited instead of stopped. * mn10300_sim.h (struct _state): Add exited field. * simops.c (syscall): Set State.exited for SYS_exit. Fixes problem found bin Felix.
1997-06-12 * simops.c: Fix thinko in last change.Jeff Law2-1/+5
1997-06-10 * simops.c: "call" stores the callee saved registers into theJeff Law2-53/+55
stack! Update the stack pointer properly when done with register saves.
1997-06-10 * simops.c: Fix return address computation for "call" instructions.Jeff Law2-2/+10
1997-05-22 * interp.c (sim_resume): Add missing case in big switchJeff Law2-0/+6
statement (for extb instruction).
1997-05-20 * interp.c: Replace all references to load_mem and store_memJeff Law3-340/+295
with references to load_byte, load_half, load_3_byte, load_word and store_byte, store_half, store_3_byte, store_word. (INLINE): Delete definition. (load_mem_big): Likewise. (max_mem): Make it global. (dispatch): Make this function inline. (load_mem, store_mem): Delete functions. * mn10300_sim.h (INLINE): Define. (RLW): Delete unused definition. (load_mem, store_mem): Delete declarations. (load_mem_big): New definition. (load_byte, load_half, load_3_byte, load_word): New functions. (store_byte, store_half, store_3_byte, store_word): New functions. * simops.c: Replace all references to load_mem and store_mem with references to load_byte, load_half, load_3_byte, load_word and store_byte, store_half, store_3_byte, store_word.
1997-05-19 * interp.c (dispatch): Make this an inline function.Jeff Law3-7/+10
* simops.c (syscall): Use callback->write regardless of what file descriptor we're writing too.
1997-05-18 * interp.c (load_mem_big): Remove function. It's now a macroJeff Law2-26/+34
defined elsewhere. (compare_simops): New function. (sim_open): Sort the Simops table before inserting entries into the hash table. * mn10300_sim.h: Remove unused #defines. (load_mem_big): Define. Another 20% so performance improvement for the mn10300 simulator.
1997-05-16 * interp.c (load_mem): If we get a load from an out of rangeJeff Law2-0/+18
address, abort. (store_mem): Likewise for stores. (max_mem): New variable.
1997-05-06 * mn10300_sim.h: Fix ordering of bits in the PSW.Jeff Law2-4/+6
1997-05-06 * interp.c: Improve hashing routine to avoid long listJeff Law2-241/+512
traversals for common instructions. Add HASH_STAT support. Rewrite opcode dispatch code using a big switch instead of cascaded if/else statements. Avoid useless calls to load_mem.
1997-05-06 * mn10300_sim.h (struct _state): Add space for mdrq register.Jeff Law3-29/+140
(REG_MDRQ): Define. * simops.c: Don't abort for trap. Add support for the extended instructions, "getx", "putx", "mulq", "mulqu", "sat16", "sat24", and "bsch".
1997-04-18Ref gdb/11763 - can't stop a running simulator:Andrew Cagney1-0/+4
o Provide poll_quit callback to simulators so that they can poll for SIGINT on clueless OS's. o Add sim_stop to simulators so that clients can request a halt (eg gdbtk's STOP button) Works for PPC! o Re-arange remote-sim.c so that the hard work is moved from gdbsim_resume() to gdbsim_wait() (where it should be).
1997-04-17 * Makefile.in (SIM_OBJS): Add sim-load.o.David Edelsohn2-34/+155
* interp.c (sim_kind, myname): New static locals. (sim_open): Set sim_kind, myname. Ignore -E arg. (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to load file into simulator. Set start address from bfd. (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1997-04-17Cleanups to compile under FreeBSDAndrew Cagney2-1/+19
1997-04-08 * simops.c (syscall): Handle new mn10300 calling conventions.Jeff Law1-2/+2
Forgot to check this in last week.
1997-04-07Get configure to define RETSIGTYPEAndrew Cagney3-187/+118
1997-04-05 * Makefile.in: Change mn10300-opc.o to m10300-opc.o, to matchIan Lance Taylor1-0/+5
corresponding change in opcodes directory.