diff options
author | Andy Polyakov <appro@openssl.org> | 2012-02-28 14:20:34 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-02-28 14:20:34 +0000 |
commit | 5c2bfad9b47d494fba7bedb7af6eef480e238726 (patch) | |
tree | 8cc57bc022c6d3663991e799e78e681b59ea84fb /crypto/x86cpuid.pl | |
parent | 250f979237e32cb28bf034585d64fe9fb71b1dcc (diff) |
x86cpuid.pl: fix processor capability detection on pre-586 [from HEAD].
Diffstat (limited to 'crypto/x86cpuid.pl')
-rw-r--r-- | crypto/x86cpuid.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl index 97adde383b..39fd8f2293 100644 --- a/crypto/x86cpuid.pl +++ b/crypto/x86cpuid.pl @@ -19,9 +19,9 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &pushf (); &pop ("eax"); &xor ("ecx","eax"); - &bt ("ecx",21); - &jnc (&label("generic")); &xor ("eax","eax"); + &bt ("ecx",21); + &jnc (&label("nocpuid")); &cpuid (); &mov ("edi","eax"); # max value for standard query level @@ -136,6 +136,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &set_label("done"); &mov ("eax","esi"); &mov ("edx","ebp"); +&set_label("nocpuid"); &function_end("OPENSSL_ia32_cpuid"); &external_label("OPENSSL_ia32cap_P"); |