From e5a7a537994e55e7c881fd79359566b1ab58f34a Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 6 Dec 1996 07:57:21 +0000 Subject: [PATCH] * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)" Fixes remaining hangs while running c-torture execution tests. Only 12 c-torture execution failures left: * 920625-1.c fails all 6 execution tests. * 960521-1.c fails all 6 execution tests. --- sim/mn10300/ChangeLog | 4 +++- sim/mn10300/simops.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index a1e0301c602..1f45f2748b6 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,5 +1,7 @@ Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com) + * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)" + * simops.c: Fix thinkos in last change to "inc dn". Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com) @@ -26,7 +28,7 @@ Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com) * simops.c: Fix overflow computation for many instructions. - * simops.c: Fix "movdm, an", "movbu dm, (an)", and "movhu dm, (an)". + * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)". * simops.c: Fix "mov am, dn". diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index cebd1843354..c944e8a6815 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -378,7 +378,7 @@ void OP_F83000 () /* mov am, (d16,an) */ void OP_FA300000 () { - store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 17)] + store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 16)] + SEXT16 (insn & 0xffff)), 4, State.regs[REG_A0 + ((insn & 0xc0000) >> 18)]); } @@ -386,7 +386,7 @@ void OP_FA300000 () /* mov am, (d32,an) */ void OP_FC300000 () { - store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 17)] + store_mem ((State.regs[REG_A0 + ((insn & 0x30000) >> 16)] + ((insn & 0xffff) << 16) + extension), 4, State.regs[REG_A0 + ((insn & 0xc0000) >> 18)]); } -- 2.30.2