aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-02 19:35:55 +0000
committerJeff Law <law@redhat.com>1996-12-02 19:35:55 +0000
commitfcfaf40d78bb2ce2212b9dcdec77a6aab2104db1 (patch)
tree0517237702a38d1ee94c1cd39e1e0c982d92f03c /sim/mn10300
parent5dda64611e38a0dd65494bf8ad0602dc1f0ebc0b (diff)
downloadgdb-fcfaf40d78bb2ce2212b9dcdec77a6aab2104db1.zip
gdb-fcfaf40d78bb2ce2212b9dcdec77a6aab2104db1.tar.gz
gdb-fcfaf40d78bb2ce2212b9dcdec77a6aab2104db1.tar.bz2
* simops.c: Fix "mov imm8,an" and "mov imm16,dn".
Fixes 80 or so c-torture execution failures. 400 to go.
Diffstat (limited to 'sim/mn10300')
-rw-r--r--sim/mn10300/ChangeLog4
-rw-r--r--sim/mn10300/simops.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index f191d15..7695f4f 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,7 @@
+Mon Dec 2 12:31:40 1996 Jeffrey A Law (law@cygnus.com)
+
+ * simops.c: Fix "mov imm8,an" and "mov imm16,dn".
+
Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com)
* simops.c: Fix overflow computation for many instructions.
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index abb5b0c..217cd16 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -89,7 +89,7 @@ void OP_F1D0 ()
/* mov imm8, an */
void OP_9000 ()
{
- State.regs[REG_D0 + ((insn & 0x300) >> 8)] = insn & 0xff;
+ State.regs[REG_A0 + ((insn & 0x300) >> 8)] = insn & 0xff;
}
/* mov am, an */
@@ -445,7 +445,7 @@ void OP_2C0000 ()
unsigned long value;
value = SEXT16 (insn & 0xffff);
- State.regs[REG_A0 + ((insn & 0x30000) >> 16)] = value;
+ State.regs[REG_D0 + ((insn & 0x30000) >> 16)] = value;
}
/* mov imm32,dn */