* armemu.c (handle_v6_insn): Fix typo in sign extension test of the sext and sxtah...
authorNick Clifton <nickc@redhat.com>
Thu, 15 Feb 2007 10:32:06 +0000 (10:32 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 15 Feb 2007 10:32:06 +0000 (10:32 +0000)
sim/arm/ChangeLog
sim/arm/armemu.c

index 1432926271fec45030d850b44bd6b148be4f1646..10c75ad1c435b71536e42d17d66e55add7afbbf2 100644 (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:
index e4879ebacb9de5151502e0fd412c374b192ade94..558e897582aec5da0418aa0e87756d73d4be0eaf 100644 (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)