x86cpuid.pl: make it work with older CPUs. PR: 3005
diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl index 3b6c469..e8a7518 100644 --- a/crypto/x86cpuid.pl +++ b/crypto/x86cpuid.pl
@@ -69,6 +69,7 @@ &inc ("esi"); # number of cores &mov ("eax",1); + &xor ("ecx","ecx"); &cpuid (); &bt ("edx",28); &jnc (&label("generic")); @@ -102,6 +103,7 @@ &set_label("nocacheinfo"); &mov ("eax",1); + &xor ("ecx","ecx"); &cpuid (); &and ("edx",0xbfefffff); # force reserved bits #20, #30 to 0 &cmp ("ebp",0);