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 5556044..d82761c 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 e547f9b..50f6230 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);