]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed inadvertent breakage of CPUID usage
authorAdam Stylinski <kungfujesus06@gmail.com>
Sun, 23 Jan 2022 01:47:45 +0000 (20:47 -0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 23 Jan 2022 15:39:30 +0000 (16:39 +0100)
In removing the AVX512 "well-suited" flag, a second cpuid call that's
needed for feature detection was accidently removed.  This brings that
back.

arch/x86/x86.c

index 3398426e23e5654b1e3464c3dabc7a9e2bee8b0c..945b29ef94c5cbee6ece308705dba4708da5525c 100644 (file)
@@ -62,6 +62,7 @@ void Z_INTERNAL x86_check_features(void) {
     unsigned maxbasic;
 
     cpuid(0, &maxbasic, &ebx, &ecx, &edx);
+    cpuid(1 /*CPU_PROCINFO_AND_FEATUREBITS*/, &eax, &ebx, &ecx, &edx);
 
     x86_cpu_has_sse2 = edx & 0x4000000;
     x86_cpu_has_ssse3 = ecx & 0x200;