Quantcast

vex: r3302 - /trunk/priv/guest_arm64_toIR.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

vex: r3302 - /trunk/priv/guest_arm64_toIR.c

svn-2
Author: tom
Date: Sat Feb 11 10:44:29 2017
New Revision: 3302

Log:
Handle unknown HINT instructions on aarch64 by ignoring them. BZ#376279.

Modified:
    trunk/priv/guest_arm64_toIR.c

Modified: trunk/priv/guest_arm64_toIR.c
==============================================================================
--- trunk/priv/guest_arm64_toIR.c (original)
+++ trunk/priv/guest_arm64_toIR.c Sat Feb 11 10:44:29 2017
@@ -7022,6 +7022,19 @@
       return True;
    }
 
+   /* -------------------- HINT ------------------- */
+   /* 31        23        15   11   4 3
+      1101 0101 0000 0011 0010 imm7 1 1111
+   */
+   if (INSN(31,24) == BITS8(1,1,0,1,0,1,0,1)
+       && INSN(23,16) == BITS8(0,0,0,0,0,0,1,1)
+       && INSN(15,12) == BITS4(0,0,1,0)
+       && INSN(4,0) == BITS5(1,1,1,1,1)) {
+      UInt imm7 = INSN(11,5);
+      DIP("hint #%u\n", imm7);
+      return True;
+   }
+
    /* ------------------- CLREX ------------------ */
    /* 31        23        15   11 7
       1101 0101 0000 0011 0011 m  0101 1111  CLREX CRm


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...