* simops.c: Don't forget to initialize temp for
authorJeff Law <law@redhat.com>
Fri, 30 Aug 1996 20:15:51 +0000 (20:15 +0000)
committerJeff Law <law@redhat.com>
Fri, 30 Aug 1996 20:15:51 +0000 (20:15 +0000)
        "ld.h" and "ld.w"

sim/v850/ChangeLog
sim/v850/simops.c

index 992afe8..436a83c 100644 (file)
@@ -1,5 +1,8 @@
 Fri Aug 30 10:33:49 1996  Jeffrey A Law  (law@cygnus.com)
 
+       * simops.c: Don't forget to initialize temp for
+       "ld.h" and "ld.w"
+
        * interp.c: Remove various debugging printfs.
 
        * simops.c: Fix satadd, satsub boundary case handling.
index c6969fe..77d6949 100644 (file)
@@ -112,6 +112,7 @@ OP_720 ()
   int result, temp;
 
   op0 = State.regs[OP[0]];
+  temp = OP[2];
   temp = (temp << 16) >> 16;
   temp &= ~0x1;
   op2 = temp;
@@ -128,6 +129,7 @@ OP_10720 ()
   int result, temp;
 
   op0 = State.regs[OP[0]];
+  temp = OP[2];
   temp = (temp << 16) >> 16;
   temp &= ~0x1;
   op2 = temp;