x86cpuid.pl: don't punish "last-year" OSes on "this-year" CPUs.
PR: 2633
This commit is contained in:
parent
02597f2885
commit
cb45708061
@ -122,7 +122,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
|
|||||||
&bt ("ecx",26); # check XSAVE bit
|
&bt ("ecx",26); # check XSAVE bit
|
||||||
&jnc (&label("done"));
|
&jnc (&label("done"));
|
||||||
&bt ("ecx",27); # check OSXSAVE bit
|
&bt ("ecx",27); # check OSXSAVE bit
|
||||||
&jnc (&label("clear_xmm"));
|
&jnc (&label("clear_avx"));
|
||||||
&xor ("ecx","ecx");
|
&xor ("ecx","ecx");
|
||||||
&data_byte(0x0f,0x01,0xd0); # xgetbv
|
&data_byte(0x0f,0x01,0xd0); # xgetbv
|
||||||
&and ("eax",6);
|
&and ("eax",6);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user