aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300/interp.c
AgeCommit message (Collapse)AuthorFilesLines
1997-08-26Flush defunct sim_kill.Andrew Cagney1-7/+0
1997-08-25Add ABFD argument to sim_open call. Pass through to sim_config soAndrew Cagney1-3/+9
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-22 * interp.c (sim_resume): Add missing case in big switchJeff Law1-0/+1
statement (for extb instruction).
1997-05-20 * interp.c: Replace all references to load_mem and store_memJeff Law1-85/+23
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 Law1-1/+1
* 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 Law1-26/+24
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 Law1-0/+11
address, abort. (store_mem): Likewise for stores. (max_mem): New variable.
1997-05-06 * interp.c: Improve hashing routine to avoid long listJeff Law1-241/+505
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-04-17 * Makefile.in (SIM_OBJS): Add sim-load.o.David Edelsohn1-34/+146
* 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.
1996-12-06 * interp.c: Delete unused global variable "OP".Jeff Law1-3/+1
(sim_resume): Remove unused variable "opcode". * simops.c: Fix some uninitialized variable problems, add parens to fix various -Wall warnings. Fixing assorted -Wall problems.
1996-12-06 * gencode.c (write_header): Add "insn" and "extension" argumentsJeff Law1-11/+217
to the OP_* declarations. (write_template): Similarly for function templates. * interp.c (insn, extension): Remove global variables. Instead pass them as arguments to the OP_* functions. * mn10300_sim.h: Remove decls for "insn" and "extension". * simops.c (OP_*): Accept "insn" and "extension" as arguments instead of using globals. Starting to clean things up.
1996-11-25 * Makefile.in, config.in, configure, configure.in: New files.Jeff Law1-0/+394
* gencode.c, interp.c, mn10300_sim.h, simops.c: New files. Skeleton mn10300 simulator