aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300/simops.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-02 04:23:37 +0000
committerJeff Law <law@redhat.com>1996-12-02 04:23:37 +0000
commitc8f0171f5f72972a77e565adbe45aea7a14ab38f (patch)
treee1ca250df2470b5b8b4585f5a2363e412b6fa9f8 /sim/mn10300/simops.c
parent6db7fc49d29a545d85cdfd563786fe0899a50016 (diff)
downloadgdb-c8f0171f5f72972a77e565adbe45aea7a14ab38f.zip
gdb-c8f0171f5f72972a77e565adbe45aea7a14ab38f.tar.gz
gdb-c8f0171f5f72972a77e565adbe45aea7a14ab38f.tar.bz2
* simops.c: Fix "mov am, dn".
Fixes more c-torture problems.
Diffstat (limited to 'sim/mn10300/simops.c')
-rw-r--r--sim/mn10300/simops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index e2f1ffd..b4e3014 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -77,7 +77,7 @@ void OP_80 ()
/* mov dm, an */
void OP_F1E0 ()
{
- State.regs[REG_A0 + ((insn & 0xc) >> 2)] = State.regs[REG_D0 + (insn & 0x3)];
+ State.regs[REG_A0 + (insn & 0x3)] = State.regs[REG_D0 + ((insn & 0xc) >> 3)];
}
/* mov am, dn */