aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v
AgeCommit message (Collapse)AuthorFilesLines
1997-09-11Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-0/+7
* interp.c (sim_resume): Increment PC at end of rep loop. * simops.c (OP_4201): Fix rachi instruction.
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 Cagney2-7/+15
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-8/+23
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-22 * interp.c (sim_open): Undo patch to add -E support.David Edelsohn1-0/+4
1997-04-18Ref gdb/11763 - can't stop a running simulator:Andrew Cagney2-0/+13
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-59/+114
* 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.
1997-04-17Cleanups to compile under FreeBSDAndrew Cagney2-40/+34
1997-04-07Get configure to define RETSIGTYPEAndrew Cagney1-187/+97
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/+34
Update common/aclocal.m4 to better work with sim-config.[hc].
1997-03-17 * configure: Re-generate.Andrew Cagney1-191/+120
* 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-14Add comment to changelogMichael Meissner1-1/+2
1997-03-14Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the ↵Michael Meissner2-302/+66
system call trap, keeping 0 temporarily
1997-03-13 * interp.c: Delete redundant prototypes of sim_foo fns.David Edelsohn1-0/+6
(sim_open): New SIM_DESC result. Argument is now in argv form. (other sim_*): New SIM_DESC argument.
1997-03-13Fix problems in setting the carry bitMichael Meissner2-31/+25
1997-03-13Fix os_printf_filtered; Flush stdout after calling printf_filteredMichael Meissner2-24/+69
1997-02-04 * Makefile.in (@COMMON_MAKEFILE_FRAG): UseDavid Edelsohn2-1/+9
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 * 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-270/+417
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.
1996-12-16Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+9
* interp.c (xfer_mem): Change unified memory to 0x0.
1996-11-26 * config.in (WORDS_BIGENDIAN): Add.David Edelsohn2-88/+383
* configure: Regenerated. * d10v_sim.h: #include "config.h"
1996-11-21Make address in I/O space a bus error; properly cast callocMichael Meissner1-0/+9
1996-11-20New file.David Edelsohn2-0/+5
1996-11-20 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.David Edelsohn3-81/+62
(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-09Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+146
* d10v-sim.h (simops): Add flag is_long. (State): Add pc_changed. Instructions which update the PC should use the JMP macro which sets this. (JMP): New macro. Sets the PC and the pc_changed flag. * gencode.c (write_opcodes): Add is_long field. * interp.c (lookup_hash): If we blindly apply a short opcode's mask to a long opcode we could get a false match. Check the opcode size. (hash): Add a size field to the hash table. (sim_open): Initialize size field in hash table. (sim_resume): Change to logic for setting the PC. Used to increment the PC if it had not been changed. This didn't allow single-instruction loops. Now checks the flag State.pc_changed. Also now stops when ^C is received. (dmem_addr): Fix translation of data segments to unified memory. (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag. * simops.c: Changed all branch and jump instructions to use new JMP macro. (OP_20000000): Corrected trace information to show this is a ldi.l, not a ldi.s instruction.
1996-11-01Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt2-2/+8
* 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 Meissner4-26/+57
1996-10-29Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt4-143/+439
* 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 Meissner2-95/+213
correctly sign extend
1996-10-21Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt2-6/+10
* interp.c (sim_resume): Change the way single-stepping and exceptions are handled so single-stepping works again.
1996-10-17Make simulated loads/stores faster on x86, AIX, and big endian hostsMichael Meissner2-0/+24
1996-10-16Make read/write memory functions inlinedMichael Meissner3-69/+69
1996-10-16Make read/write memory functions inlinedMichael Meissner4-22/+40
1996-10-16Fix tracing of accumulatorsMichael Meissner2-2/+6
1996-10-15Better error messages when a program stops due to signal; support d10v ↵Michael Meissner3-40/+231
getpid/kill
1996-10-13Fix ld2w r2,@r2 so that r3 loads the proper valueMichael Meissner2-13/+115
1996-09-25Fix tracing for st2wMichael Meissner2-12/+54
1996-09-20Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+5
* interp.c (sim_create_inferior): Reinitialize State every time sim_create_inferior() is called.
1996-09-20Make sure cmp{,eq,u}i use correct castsMichael Meissner2-5/+11
1996-09-19Fix tracing infoMichael Meissner2-1/+2
1996-09-19Make sure there is a trailing space after the instructionMichael Meissner2-2/+4
1996-09-19Provide macros that can be overriden for the width of the PC & line number ↵Michael Meissner2-6/+24
fields
1996-09-19Add dependencies on lib{bfd,iberity}.aMichael Meissner1-0/+5
1996-09-18Rename sim_bfd -> exec_bfd for gdb compatibilityMichael Meissner2-7/+7