aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300/simops.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-01-21 22:03:39 +0000
committerJeff Law <law@redhat.com>1997-01-21 22:03:39 +0000
commitf95251f06849d31dfdd345c0d6ad63b44ff61465 (patch)
treedf863fb5acab8c6e3193f0e95761a82029039345 /sim/mn10300/simops.c
parent0716c2e9107445914e0854c03bc2e2dc460fa55f (diff)
downloadgdb-f95251f06849d31dfdd345c0d6ad63b44ff61465.zip
gdb-f95251f06849d31dfdd345c0d6ad63b44ff61465.tar.gz
gdb-f95251f06849d31dfdd345c0d6ad63b44ff61465.tar.bz2
* simops.c: Undo last change to "rol" and "ror", original code
was correct!
Diffstat (limited to 'sim/mn10300/simops.c')
-rw-r--r--sim/mn10300/simops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index 26146a1..caa2d75 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -2219,7 +2219,7 @@ void OP_F284 (insn, extension)
c = (value & 0x1);
value >>= 1;
- value |= (c) ? 0x80000000 : 0;
+ value |= ((PSW & PSW_C) != 0) ? 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 |= c;
+ value |= ((PSW & PSW_C) != 0);
State.regs[REG_D0 + REG0 (insn)] = value;
z = (value == 0);
n = (value & 0x80000000) != 0;