This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix typo in the ARM simulator's implementation of the SEXT and SXTAH instructions
- From: Nick Clifton <nickc at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 15 Feb 2007 10:31:41 +0000
- Subject: Fix typo in the ARM simulator's implementation of the SEXT and SXTAH instructions
Hi Guys,
I am checking in the patch below to fix a silly typo in the code the
simulates the ARMv6 instructions SEXT and SXTAH.
Cheers
Nick
sim/arm/ChangeLog
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.
Index: sim/arm/armemu.c
===================================================================
RCS file: /cvs/src/src/sim/arm/armemu.c,v
retrieving revision 1.34
diff -c -3 -p -r1.34 armemu.c
*** sim/arm/armemu.c 19 Sep 2005 14:21:07 -0000 1.34
--- sim/arm/armemu.c 15 Feb 2007 10:28:48 -0000
*************** handle_v6_insn (ARMul_State * state, ARM
*** 376,382 ****
break;
Rm = ((state->Reg[BITS (0, 3)] >> ror) & 0xFFFF);
! if (Rm & 8000)
Rm |= 0xffff0000;
if (BITS (16, 19) == 0xf)
--- 376,382 ----
break;
Rm = ((state->Reg[BITS (0, 3)] >> ror) & 0xFFFF);
! if (Rm & 0x8000)
Rm |= 0xffff0000;
if (BITS (16, 19) == 0xf)