aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
AgeCommit message (Collapse)AuthorFilesLines
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.
1997-04-02 * interp.c (sim_open): New arg `kind'.David Edelsohn1-0/+2
1997-04-02 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.David Edelsohn2-132/+281
(sim-debug): Allow arguments. Define WITH_DEBUG in addition to -DDEBUG. * configure: Regenerated to track ../common/aclocal.m4 changes.
1997-04-02New file common/sim-config.c sets/checks simulator configuration options.Andrew Cagney2-46/+44
Update common/aclocal.m4 to better work with sim-config.[hc].
1997-03-20 * simops.c: Fix register extraction for a two "movbu" variants.Jeff Law1-30/+75
Somewhat simplify "sub" instructions. Correctly sign extend operands for "mul". Put the correct half of the result in MDR for "mul" and "mulu". Implement remaining instructions. Tweak opcode for "syscall".
1997-03-18 * simops.c: Do syscall emulation in "syscall" instruction. AddJeff Law1-0/+7
dummy "trap" instruction. Cleanups for the beta release.
1997-03-18Move SIM_AC_OPTION_ macros out of SIM_AC_COMMON macro - was trashingAndrew Cagney1-0/+4
optional arguments. * Regenerate all configure scripts.
1997-03-17 * configure: Re-generate.Andrew Cagney2-191/+124
* Make-common.in (CSEARCH): Do not include the gdb directory in the search path. * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, SIM_WARNING): Drop, requiring the simulator specific Makefile.in to explicitly incorporate these. * aclocal.m4 (--enable-sim-alignment); New option. Strongly specify the alignment restrictions of the target architecture - without this option all alignment restrictions are accomodated. (--enable-sim-assert): New option. Conditionally compile in assertion statements. (--enable-sim-float): New option. Strongly specify the target's floating point support. (--enable-sim-hardware): New option. Specify the hardware devices included in the simulation. (--enable-sim-packages): New option. Specify the hardware packages included in the simulation. (--enable-sim-regparm): New option. Specify that parameters be passed in registers instead of on the stack. (--enable-sim-reserved-bits): New option. Specify that reserved bits within an instruction are are correctly set. (--enable-sim-smp): New option. Specify the level of SMP support to be included in the simulator. (--enable-sim-stdcall): New option. Specify an alternative function call convention. (--enable-sim-xor-endian): New option. Configure xor-endian support used by some targets to implement bi-endian support.
1997-03-14Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the ↵Michael Meissner2-302/+63
system call trap, keeping 0 temporarily
1997-03-13 * interp.c (sim_open): New SIM_DESC result. Argument is nowDavid Edelsohn1-0/+6
in argv form. (other sim_*): New SIM_DESC argument.
1997-03-12 * simops.c: Fix carry bit computation for "add" instructions.Jeff Law2-11/+13
More bugs exposed by new mn10300 compiler optimizations.
1997-03-12 * simops.c: Fix typos in bset insns. Fix arguments to store_memJeff Law2-5/+24
for bset imm8,(d8,an) and bclr imm8,(d8,an). Bugs exposed by new compiler optimizations.
1997-03-05 * simops.c: Fix register references when computing Z and N bitsJeff Law1-3/+3
for lsr imm8,dn. Bug exposed by c-torture testing of the mn10300.
1997-02-04 * Makefile.in (@COMMON_MAKEFILE_FRAG): UseDavid Edelsohn1-1/+2
COMMON_{PRE,POST}_CONFIG_FRAG instead. * configure.in: sinclude ../common/aclocal.m4. * configure: Regenerated.
1997-01-24 * ../common/aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s inStu Grossman1-2/+2
comments and single quotes. Fixes a problem found on hpux.
1997-01-24 * interp.c (init_system): Allocate 2^19 bytes of space for theJeff Law1-0/+5
simulator. To match the linker.
1997-01-24 * configure: Remove targ-vals.def when doing distclean. (ChangeStu Grossman1-1/+1
is actually in ../common/aclocal.m4.)
1997-01-24 * configure: Remove Make-common.in from dependencies. (Actually inStu Grossman1-1/+1
../common/aclocal.m4).
1997-01-23 * configure configure.in Makefile.in: Update to new configureStu Grossman4-1/+1874
scheme which is more compatible with WinGDB builds. * configure.in: Improve comment on how to run autoconf. * configure: Re-run autoconf to get new ../common/aclocal.m4. * Makefile.in: Use autoconf substitution to install common makefile fragment.
1997-01-21 * simops.c: Undo last change to "rol" and "ror", original codeJeff Law2-2/+7
was correct!