aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v
AgeCommit message (Collapse)AuthorFilesLines
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
1996-09-18Make exit/stop return correct exit value; Add line number tracing.Michael Meissner5-26/+154
1996-09-15Fix brf0{t,f}.s <label> -> instruction not to execute instruction if branch ↵Michael Meissner2-5/+19
succeeds
1996-09-14For unknown traps, print contents of registers and continue executionMichael Meissner2-0/+36
1996-09-12 * simops.c (OP_5F00): Fix problems with system calls.Mark Alexander2-40/+21
1996-09-12Correct trap tracing informationMichael Meissner2-1/+5
1996-09-11fix typoMichael Meissner2-2/+6
1996-09-09Addi needs to set the carryMichael Meissner2-0/+6
1996-09-09Fix ld2w tracingMichael Meissner2-1/+3
1996-09-09Correct tracing of cpfgMichael Meissner2-2/+9
1996-09-09Make ex{f,t}* tests agree with bookMichael Meissner2-8/+9
1996-09-09Fix accumulator shiftsMichael Meissner2-5/+31
1996-09-07Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt2-2/+7
* simops.c (OP_2600, OP_2601): Changed min and max comparisons to use signed register values.
1996-09-04Second pass at canadian crossMichael Meissner2-10/+29
1996-09-04First cut at dealing with canadian crosses; make -t in debugger set ↵Michael Meissner5-30/+104
d10v_debug if DEBUG
1996-09-04More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags ↵Michael Meissner7-177/+1583
configure switch
1996-09-04Enhance debug supportMichael Meissner4-475/+756
1996-09-04 * simops.c: Include correct syscall.h for d10v, not host's.Mark Alexander2-4/+19
Fix #ifdef SYS_stat.
1996-09-03Portability fixes; re-add printf/putchar trapsMichael Meissner1-16/+192
1996-08-29Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt4-69/+221
* Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
1996-08-28New file.Martin Hunt2-4/+54
1996-08-27Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt2-84/+275
* d10v_sim.h (SEXT32): Added. * interp.c: Commented out printfs. * simops.c: Fixed error in sb and st2w.
1996-08-03Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt3-72/+365
* d10v_sim.h, simops.c: Snapshot
1996-08-02Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt6-0/+2360
* ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h, gencode.c, interp.c, simops.c: Created.