]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 520482: Advertise POPCNT on x86 via CPUID
authorMartin Cermak <mcermak@redhat.com>
Tue, 26 May 2026 10:26:35 +0000 (12:26 +0200)
committerMartin Cermak <mcermak@redhat.com>
Tue, 26 May 2026 10:26:40 +0000 (12:26 +0200)
VEX/priv/guest_x86_helpers.c: Add popcnt to the
current "max" cpuid helper ssse3 just
unconditionally as a followup to bug 271615.

https://bugs.kde.org/show_bug.cgi?id=520482

NEWS
VEX/priv/guest_x86_helpers.c

diff --git a/NEWS b/NEWS
index e1f4dc283cbe44323973dfaca6399531bed16285..6daae9ff1c163efce428fd76c398903738f48668 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
 519574  valgrind 3.27 "--fair-sched=yes" does not work
 519613  Valgrind incorrectly unpacks the result of sys_port (port_getn)
         on error, leading to a ~60s wallclock time delay on every call
+520482  Advertise POPCNT on x86 via CPUID
 
 To see details of a given bug, visit
   https://bugs.kde.org/show_bug.cgi?id=XXXXXX
index b511490837382c01589abb02fbad4e8efb81aa73..4765c282ef8bcb2ac908f58f15d20c28727ed05f 100644 (file)
@@ -2490,7 +2490,7 @@ void x86g_dirtyhelper_CPUID_sse3 ( VexGuestX86State* st )
          SET_ABCD(0x0000000a, 0x756e6547, 0x6c65746e, 0x49656e69);
          break;
       case 0x00000001:
-         SET_ABCD(0x000006f6, 0x00020800, 0x0000e3bd, 0xbfebfbff);
+         SET_ABCD(0x000006f6, 0x00020800, 0x0080e3bd, 0xbfebfbff);
          break;
       case 0x00000002:
          SET_ABCD(0x05b0b101, 0x005657f0, 0x00000000, 0x2cb43049);