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