]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Suppress FSGSBASE flag from cpuid results
authorTom Hughes <tom@compton.nu>
Thu, 14 Mar 2019 15:15:41 +0000 (15:15 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 14 Mar 2019 15:17:10 +0000 (15:17 +0000)
We don't support {rd,wr}{fs,gs}base so we shouldn't say we do.

VEX/priv/guest_amd64_helpers.c

index 30e82db06a7f2c2f50bcf8a1951ab4d8ec5cf03e..f12b71e9449c290b77c6cba25d7dd4f7801bd51e 100644 (file)
@@ -3361,7 +3361,8 @@ void amd64g_dirtyhelper_CPUID_avx2 ( VexGuestAMD64State* st )
          break;
       case 0x00000007:
          switch (old_ecx) {
-            case 0x00000000: SET_ABCD(0x00000000, 0x000027ab,
+            /* Don't advertise FSGSBASE support, bit 0 in EBX.  */
+            case 0x00000000: SET_ABCD(0x00000000, 0x000027aa,
                                       0x00000000, 0x00000000); break;
             default:         SET_ABCD(0x00000000, 0x00000000,
                                       0x00000000, 0x00000000); break;