]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Tighten up decoding of isel instruction.
authorJulian Seward <jseward@acm.org>
Thu, 6 Nov 2008 09:22:05 +0000 (09:22 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 6 Nov 2008 09:22:05 +0000 (09:22 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1871

VEX/priv/guest-ppc/toIR.c

index 3b4e5415a63ea82e373112d71a10e664012013ef..dcd04afb239e2ccf7f17323d1040cc1bde740f81 100644 (file)
@@ -9479,7 +9479,9 @@ DisResult disInstr_PPC_WRK (
          /* Deal with some other cases that we would otherwise have
             punted on. */
          /* --- ISEL (PowerISA_V2.05.pdf, p74) --- */
-         if (IFIELD(theInstr, 1, 5) == 15) {
+         /* only decode this insn when reserved bit 0 (31 in IBM's
+            notation) is zero */
+         if (IFIELD(theInstr, 0, 6) == (15<<1)) {
             UInt rT = ifieldRegDS( theInstr );
             UInt rA = ifieldRegA( theInstr );
             UInt rB = ifieldRegB( theInstr );