Andrew Cagney
ac9a7d8a2c
Implement separate user (SPU) and interrupt (SPI) stack pointers.
1998-02-13 05:22:49 +00:00
Andrew Cagney
b41dff6b54
Don't abort() when system call is unknown.
1998-02-11 07:11:28 +00:00
Andrew Cagney
19431a0280
Ensure zero-hardwired bits in DPSW remain zero.
1998-02-11 06:34:30 +00:00
Michael Meissner
8831cb01b0
First round of d10v ABI changes
1998-01-23 16:30:08 +00:00
Andrew Cagney
bc6df23d14
For "trap", IBT and RIE exceptions, mask all PSW.SM. NB: Stepping
...
through an exception may not work correctly.
For GDB reads/writes to the control registers, ensure the cpu state is
updated correctly.
1997-12-08 03:22:58 +00:00
Andrew Cagney
7f48c9fe1d
Add DM (bit 4) to PSW. See 7-1 for more info.
...
Test.
1997-12-04 07:01:30 +00:00
Andrew Cagney
aa49c64f3e
* d10v_sim.h (SEXT56): Define.
...
* simops.c (OP_4201): For "rac", sign extend 56 bit value before
it is shifted.
* d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
SIGNED64 macro.
1997-12-03 08:03:33 +00:00
Andrew Cagney
d294a657d5
For "msbu", subtract unsigned product from ACC,
...
Test.
1997-12-02 07:18:53 +00:00
Andrew Cagney
9420287ed2
For "mulxu", store unsigned product in ACC.
...
Test.
1997-12-02 06:37:09 +00:00
Andrew Cagney
ae55807561
For MACU add unsigned multiply to accumulator.
...
Test.
1997-12-02 05:18:27 +00:00
Andrew Cagney
51b057f27b
For sub2w, compute carry according to negated addition rules.
...
Test.
1997-12-02 00:27:27 +00:00
Andrew Cagney
70ee56c585
Rework sim/common/sim-alu.h to differentiate between direcct
...
subtraction (involves borrow) and negated addition (involves carry).
Update d30v so that it uses this method. Add more tests.
1997-12-01 06:27:02 +00:00
Fred Fish
1155e06e3f
* simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
...
exception generation code to OP_6E01.
(OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
generation code.
PR 13550
1997-10-13 18:26:52 +00:00
Fred Fish
b83093ff79
* simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
...
(OP_6601): Ditto.
PR 13498
1997-10-11 16:50:05 +00:00
Andrew Cagney
87e43259f1
Cleanups to compile under FreeBSD
1997-04-17 06:05:19 +00:00
Michael Meissner
f4b022d37c
Fix problems in setting the carry bit
1997-03-13 20:30:50 +00:00
Michael Meissner
fd435e9f09
Fix os_printf_filtered; Flush stdout after calling printf_filtered
1997-03-13 16:04:50 +00:00
Michael Meissner
b30cdd3565
Fix -t option to work with memory mapping; Print PC in some error messages
1996-10-30 22:43:02 +00:00
Martin Hunt
c422ecc7a4
Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* 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-29 20:31:08 +00:00
Michael Meissner
11ec4de669
Fix tracing of accumulators
1996-10-16 17:52:31 +00:00
Michael Meissner
57bc1a721a
Better error messages when a program stops due to signal; support d10v getpid/kill
1996-10-15 15:44:10 +00:00
Michael Meissner
8918b3a72b
Fix ld2w r2,@r2 so that r3 loads the proper value
1996-10-13 02:25:01 +00:00
Michael Meissner
a18cb10038
Fix tracing for st2w
1996-09-25 20:33:21 +00:00
Michael Meissner
c12f5c678e
Make sure cmp{,eq,u}i use correct casts
1996-09-20 01:42:15 +00:00
Michael Meissner
addb61a5b2
Fix tracing info
1996-09-19 17:23:21 +00:00
Michael Meissner
f061ddf67d
Make sure there is a trailing space after the instruction
1996-09-19 15:06:37 +00:00
Michael Meissner
891513ee79
Provide macros that can be overriden for the width of the PC & line number fields
1996-09-19 15:02:27 +00:00
Michael Meissner
0535fa1aa0
Rename sim_bfd -> exec_bfd for gdb compatibility
1996-09-18 13:56:57 +00:00
Michael Meissner
a49a15ade8
Make exit/stop return correct exit value; Add line number tracing.
1996-09-18 13:23:31 +00:00
Michael Meissner
19d44375ff
For unknown traps, print contents of registers and continue execution
1996-09-14 02:36:40 +00:00
Mark Alexander
65c0d7dee9
* simops.c (OP_5F00): Fix problems with system calls.
1996-09-12 19:52:40 +00:00
Michael Meissner
a57190924d
Correct trap tracing information
1996-09-12 16:20:05 +00:00
Michael Meissner
2254cd90a9
Addi needs to set the carry
1996-09-09 21:12:46 +00:00
Michael Meissner
308f64d3ac
Fix ld2w tracing
1996-09-09 20:45:33 +00:00
Michael Meissner
60fc5b7270
Correct tracing of cpfg
1996-09-09 20:10:31 +00:00
Michael Meissner
293c76a376
Make ex{f,t}* tests agree with book
1996-09-09 18:24:18 +00:00
Michael Meissner
069398aaff
Fix accumulator shifts
1996-09-09 17:30:36 +00:00
Martin Hunt
ea2155e858
Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* simops.c (OP_2600, OP_2601): Changed min and max comparisons
to use signed register values.
1996-09-07 00:58:25 +00:00
Michael Meissner
7eebfc6296
More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags configure switch
1996-09-04 17:42:51 +00:00
Michael Meissner
87178dbdf7
Enhance debug support
1996-09-04 15:41:43 +00:00
Mark Alexander
8719be26c4
* simops.c: Include correct syscall.h for d10v, not host's.
...
Fix #ifdef SYS_stat.
1996-09-04 11:51:06 +00:00
Michael Meissner
63a91cfb9d
Portability fixes; re-add printf/putchar traps
1996-09-03 18:01:03 +00:00
Martin Hunt
166acb9f8f
New file.
1996-08-28 18:09:06 +00:00
Martin Hunt
4f425a3203
Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* d10v_sim.h (SEXT32): Added.
* interp.c: Commented out printfs.
* simops.c: Fixed error in sb and st2w.
1996-08-27 01:32:48 +00:00
Martin Hunt
4c38885c86
Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* d10v_sim.h, simops.c: Snapshot
1996-08-03 00:45:58 +00:00
Martin Hunt
2934d1c925
Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
gencode.c, interp.c, simops.c: Created.
1996-08-02 00:23:31 +00:00