aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/interp.c
AgeCommit message (Collapse)AuthorFilesLines
2000-05-03Add missing ChangeLog.Andrew Cagney1-1/+2
Sync with mitsu's version.
2000-04-18Add support for SIGILL (reserved-instruction-exception).Andrew Cagney1-2/+7
2000-02-22When SIM_HAVE_ENVIRONMENT: use sim_set_trace() to enable tracingAndrew Cagney1-10/+2
instead of sim_trace() to run the program; include support for ``-o'' option (operating environment); when a signal occurs, only continue execution when operating environment mode. Update d10v.
2000-02-09Report SIGBUS and halt simulation when ld/st detect a misaligned address.Andrew Cagney1-2/+35
2000-01-06import gdb-2000-01-05 snapshotJason Molenda1-0/+1
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-288/+557
1999-09-13import gdb-1999-09-13 snapshotJason Molenda1-20/+75
1999-04-26import gdb-19990422 snapshotStan Shebs1-0/+18
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1086
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1069/+0
1998-02-16Implement "dbt" and "rtd" instructions.Andrew Cagney1-15/+25
Import fixes to dmap_addr() from mitsu branch.
1998-02-10D10v memory map changed. Update.Andrew Cagney1-136/+173
Initialize IMAP/DMAP registers to hardware reset value.
1998-01-22 * interp.c (UMEM_SEGMENTS): New define, set to 128.Fred Fish1-54/+120
(sim_size): Use UMEM_SEGMENTS rather than hardwired constant. (sim_close): Reset prog_bfd to NULL after closing it. Also reset prog_bfd_was_opened_p after closing prog_bfd. (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd. (sim_create_inferior): Get start address from abfd not prog_bfd. (xfer_mem): Do bounds checking on addresses and return zero length read/write on bad addresses, rather than aborting. Prepare to be able to handle xfers that cross segment boundaries, but not yet implemented. Only emit debug message when d10v_debug is set as well as DEBUG being defined.
1997-12-02 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST orFred Fish1-26/+29
RIGHT_FIRST, as appropriate, instead of hardcoded ints that don't match enum values. PR 13496
1997-10-22Add LMA_P and DO_WRITE arguments to sim/common/sim-load.c:sim_load_file().Andrew Cagney1-2/+21
Update all simulators. Clarify behavour of sim_load in remote-sim.h
1997-08-27Add ABFD argument to sim_create_inferior. Document.Andrew Cagney1-7/+11
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 Cagney1-7/+0
1997-08-25Add ABFD argument to sim_open call. Pass through to sim_config soAndrew Cagney1-8/+5
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-04-18Ref gdb/11763 - can't stop a running simulator:Andrew Cagney1-0/+9
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 Edelsohn1-59/+99
* d10v_sim.h (exec_bfd): Rename to prog_bfd. * interp.c: #include bfd.h. (myname, sim_kind, start_address): New static locals. (prog_bfd_was_opened_p, prog_bfd): New static locals. (decode_pc): Update to use prog_bfd. (sim_open): Set sim_kind, myname. Ignore -E arg. (sim_close): Close prog_bfd if simulator opened it. (sim_create_inferior): Return SIM_RC. Delete arg start_address. (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd. Call sim_load_file to load file into simulator. * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
1996-11-20 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.David Edelsohn1-12/+25
(SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define. * configure.in: Simplify using macros in ../common/aclocal.m4. Call AC_CHECK_HEADERS(unistd.h). * configure: Regenerated. * config.in: New file. * interp.c: #include "callback.h". * simops.c: #include "config.h". #include <unistd.h> if present.
1996-11-01Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-2/+2
* interp.c (sim_fetch_register, sim_store_register): Fix bug where updating the accumulators was overwriting other parts of the global State variable.
1996-10-30Fix -t option to work with memory mapping; Print PC in some error messagesMichael Meissner1-4/+31
1996-10-29Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-118/+312
* interp.c (sim_size): Now allocates unified memory for imap segments 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0. (sim_write): Just call xfer_mem(). (sim_read): Just call xfer_mem(). (xfer_mem): New function. Does appropriate memory mapping and copies bytes. (dmem_addr): New function. Reads dmap register and translates data addresses to local addresses. (pc_addr): New function. Reads imap register and computes local address corresponding to contents of the PC. (sim_resume): Change to use pc_addr(). (sim_create_inferior): Change reinitialization code. Also reinitializes imap[01] and dmap. (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap. (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap. * simops.c (MEMPTR): Redefine to use dmem_addr(). (OP_5F00): Replace references to STate.imem with dmem_addr(). * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128]. (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr(). (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
1996-10-22Provide better statistics, particularly for doing VLIW work; Fix ldb to ↵Michael Meissner1-87/+194
correctly sign extend
1996-10-21Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-6/+5
* interp.c (sim_resume): Change the way single-stepping and exceptions are handled so single-stepping works again.
1996-10-16Make read/write memory functions inlinedMichael Meissner1-63/+0
1996-10-15Better error messages when a program stops due to signal; support d10v ↵Michael Meissner1-40/+79
getpid/kill
1996-09-18Make exit/stop return correct exit value; Add line number tracing.Michael Meissner1-5/+12
1996-09-15Fix brf0{t,f}.s <label> -> instruction not to execute instruction if branch ↵Michael Meissner1-5/+14
succeeds
1996-09-04First cut at dealing with canadian crosses; make -t in debugger set ↵Michael Meissner1-14/+26
d10v_debug if DEBUG
1996-09-04More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags ↵Michael Meissner1-22/+82
configure switch
1996-09-04Enhance debug supportMichael Meissner1-8/+34
1996-08-29Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-55/+171
* Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
1996-08-02Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+345
* ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h, gencode.c, interp.c, simops.c: Created.