* armemu.c (handle_v6_insn): Fix typo in sign extension test of the sext and sxtah instructions.

This commit is contained in:
Nick Clifton 2007-02-15 10:32:06 +00:00
parent 72f6ea61c5
commit 1306df90a9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-15 Nick Clifton <nickc@redhat.com>
* armemu.c (handle_v6_insn): Fix typo in sign extension test of
the sext and sxtah instructions.
2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
Reported by timeless@gmail.com:

View File

@ -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)