From 1306df90a9db80614709bb23bd9456c412fa10b8 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 15 Feb 2007 10:32:06 +0000 Subject: [PATCH] * armemu.c (handle_v6_insn): Fix typo in sign extension test of the sext and sxtah instructions. --- sim/arm/ChangeLog | 5 +++++ sim/arm/armemu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 1432926271f..10c75ad1c43 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,8 @@ +2007-02-15 Nick Clifton + + * armemu.c (handle_v6_insn): Fix typo in sign extension test of + the sext and sxtah instructions. + 2007-02-08 Daniel Jacobowitz Reported by timeless@gmail.com: diff --git a/sim/arm/armemu.c b/sim/arm/armemu.c index e4879ebacb9..558e897582a 100644 --- a/sim/arm/armemu.c +++ b/sim/arm/armemu.c @@ -376,7 +376,7 @@ handle_v6_insn (ARMul_State * state, ARMword instr) break; Rm = ((state->Reg[BITS (0, 3)] >> ror) & 0xFFFF); - if (Rm & 8000) + if (Rm & 0x8000) Rm |= 0xffff0000; if (BITS (16, 19) == 0xf) -- 2.30.2