aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-02-15 10:32:06 +0000
committerNick Clifton <nickc@redhat.com>2007-02-15 10:32:06 +0000
commit1306df90a9db80614709bb23bd9456c412fa10b8 (patch)
tree7f4aabdaddbb34e5d8399962777d6ba1a414bfc1 /sim
parent72f6ea61c5fa80885964876fc77f65788cc4e5d5 (diff)
downloadgdb-1306df90a9db80614709bb23bd9456c412fa10b8.zip
gdb-1306df90a9db80614709bb23bd9456c412fa10b8.tar.gz
gdb-1306df90a9db80614709bb23bd9456c412fa10b8.tar.bz2
* armemu.c (handle_v6_insn): Fix typo in sign extension test of the sext and sxtah instructions.
Diffstat (limited to 'sim')
-rw-r--r--sim/arm/ChangeLog5
-rw-r--r--sim/arm/armemu.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 1432926..10c75ad 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -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:
diff --git a/sim/arm/armemu.c b/sim/arm/armemu.c
index e4879eb..558e897 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)