diff options
author | Jeff Law <law@redhat.com> | 1997-01-16 18:28:46 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-01-16 18:28:46 +0000 |
commit | b4b290a02065d796b8803193deb57422b2a035c4 (patch) | |
tree | 35c534b48f2c02685accb19d5ae88310399a6f8f /sim/mn10300/simops.c | |
parent | 6b01dc653b8996a9405542ee20b5292f18031a22 (diff) | |
download | gdb-b4b290a02065d796b8803193deb57422b2a035c4.zip gdb-b4b290a02065d796b8803193deb57422b2a035c4.tar.gz gdb-b4b290a02065d796b8803193deb57422b2a035c4.tar.bz2 |
* simops.c: Fix "rol" and "ror".
Something I noticed while working on the mn10200.
Diffstat (limited to 'sim/mn10300/simops.c')
-rw-r--r-- | sim/mn10300/simops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index caa2d75..26146a1 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 |= ((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; |