summaryrefslogtreecommitdiff
path: root/sim/d10v/interp.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-11-01 03:15:44 +0000
committerMartin Hunt <hunt@redhat.com>1996-11-01 03:15:44 +0000
commit5c839c675af70a9760e714aaebfb3066ae6a3c37 (patch)
treed6b4b9d40aff219de4439250470a05d95a453e10 /sim/d10v/interp.c
parentfbc3fbe587738b9a1ba2d65399e88cb7f70efdd8 (diff)
downloadbinutils-gdb-5c839c675af70a9760e714aaebfb3066ae6a3c37.tar.gz
Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* interp.c (sim_fetch_register, sim_store_register): Fix bug where updating the accumulators was overwriting other parts of the global State variable.
Diffstat (limited to 'sim/d10v/interp.c')
-rw-r--r--sim/d10v/interp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index e617eac49ae..f4c6fe1ba44 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -829,7 +829,7 @@ sim_fetch_register (rn, memory)
init_system();
if (rn > 34)
- WRITE_64 (memory, State.a[rn-32]);
+ WRITE_64 (memory, State.a[rn-35]);
else if (rn == 32)
WRITE_16 (memory, IMAP0);
else if (rn == 33)
@@ -849,7 +849,7 @@ sim_store_register (rn, memory)
init_system();
if (rn > 34)
- State.a[rn-32] = READ_64 (memory) & MASK40;
+ State.a[rn-35] = READ_64 (memory) & MASK40;
else if (rn == 34)
SET_DMAP( READ_16(memory) );
else if (rn == 33)