Fix x86cpuid so it doesn't fail for some (currently theoretical) virtual
authorDr. Stephen Henson <steve@openssl.org>
Sat, 3 Dec 2011 21:47:48 +0000 (21:47 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 3 Dec 2011 21:47:48 +0000 (21:47 +0000)
machines.

crypto/x86cpuid.pl

index 168e4fa0a9b3b02caa66f110f42aec0cd2de9eb7..e8eaef758262343b541942476157b644eac2e7d8 100644 (file)
@@ -119,8 +119,6 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
        &mov    ("esi","edx");
        &or     ("ebp","ecx");          # merge AMD XOP flag
 
-       &bt     ("ecx",26);             # check XSAVE bit
-       &jnc    (&label("done"));
        &bt     ("ecx",27);             # check OSXSAVE bit
        &jnc    (&label("clear_avx"));
        &xor    ("ecx","ecx");