* simops.c: Fix "rol" and "ror".
authorJeff Law <law@redhat.com>
Thu, 16 Jan 1997 18:28:46 +0000 (18:28 +0000)
committerJeff Law <law@redhat.com>
Thu, 16 Jan 1997 18:28:46 +0000 (18:28 +0000)
Something I noticed while working on the mn10200.

sim/mn10300/ChangeLog
sim/mn10300/simops.c

index e871835..8a488e6 100644 (file)
@@ -1,3 +1,11 @@
+Thu Jan 16 11:28:14 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * simops.c: Fix "rol" and "ror".
+
+Wed Jan 15 06:45:58 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * simops.c: Fix typo in last change.
+
 Mon Jan 13 13:22:35 1997  Jeffrey A Law  (law@cygnus.com)
 
        * simops.c: Use REG macros in few places not using them yet.
index caa2d75..26146a1 100644 (file)
@@ -2219,7 +2219,7 @@ void OP_F284 (insn, extension)
   c = (value & 0x1);
 
   value >>= 1;
-  value |= ((PSW & PSW_C) != 0) ? 0x80000000 : 0;
+  value |= (c) ? 0x80000000 : 0;
   State.regs[REG_D0 + REG0 (insn)] = value;
   z = (value == 0);
   n = (value & 0x80000000) != 0;
@@ -2238,7 +2238,7 @@ void OP_F280 (insn, extension)
   c = (value & 0x80000000) ? 1 : 0;
 
   value <<= 1;
-  value |= ((PSW & PSW_C) != 0);
+  value |= c;
   State.regs[REG_D0 + REG0 (insn)] = value;
   z = (value == 0);
   n = (value & 0x80000000) != 0;