Fix tracing of accumulators
authorMichael Meissner <gnu@the-meissners.org>
Wed, 16 Oct 1996 17:52:31 +0000 (17:52 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Wed, 16 Oct 1996 17:52:31 +0000 (17:52 +0000)
sim/d10v/ChangeLog
sim/d10v/simops.c

index 555604425acd15d7ead3ce93b85303cac675c301..d82761ce936d75aa78d51f69d7dabbb25de13032 100644 (file)
@@ -1,3 +1,7 @@
+Wed Oct 16 13:50:06 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
+
+       * simops.c (OP_5F00): Correct tracing of accumulators.  
+
 Tue Oct 15 10:57:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * simops.c (OP_5F00): Add support for getpid, kill system calls.
index e547f9bcd32db9bfa5863cd6eac9fbbd9b5096f1..50f62305a6ad141d95f702ad2a421ff33d3283d0 100644 (file)
@@ -2595,8 +2595,8 @@ OP_5F00 ()
 
       for (i = 0; i < 2; i++)
        (*d10v_callback->printf_filtered) (d10v_callback, " %.2x%.8lx",
-                                          ((int)(State.a[OP[i]] >> 32) & 0xff),
-                                          ((unsigned long)State.a[OP[i]]) & 0xffffffff);
+                                          ((int)(State.a[i] >> 32) & 0xff),
+                                          ((unsigned long)State.a[i]) & 0xffffffff);
 
       (*d10v_callback->printf_filtered) (d10v_callback, "  %d  %d %d\n",
                                         State.F0 != 0, State.F1 != 0, State.C != 0);