Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
authorMartin Hunt <hunt@redhat.com>
Fri, 1 Nov 1996 03:15:44 +0000 (03:15 +0000)
committerMartin Hunt <hunt@redhat.com>
Fri, 1 Nov 1996 03:15:44 +0000 (03:15 +0000)
* interp.c (sim_fetch_register, sim_store_register): Fix bug where
updating the accumulators was overwriting other parts of the global
State variable.

sim/d10v/ChangeLog
sim/d10v/interp.c

index 2d640f51e35d3c6b111f421676ce4c5b154cfe3c..0976b6afd3d45bc945e2206b68ec45f1082a0dc3 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 Wed Oct 30 17:35:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * interp.c (bfd.h) Don't include it here any more.
index e617eac49ae4838af3ca8741c47d3251aa02df2d..f4c6fe1ba44ac38945488d06ea3ecf755b6d6f77 100644 (file)
@@ -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)