Fix x86cpuid so it doesn't fail for some (currently theoretical) virtual

machines.
This commit is contained in:
Dr. Stephen Henson 2011-12-03 21:47:48 +00:00
parent dd4eefdb7b
commit efd031abca

View 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");