x86cpuid.pl: make it work with older CPUs.
PR: 3005
(cherry picked from commit 5702e965d7
)
This commit is contained in:
parent
a1a45c59ec
commit
b04c0d805c
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
|
|||
&inc ("esi"); # number of cores
|
||||
|
||||
&mov ("eax",1);
|
||||
&xor ("ecx","ecx");
|
||||
&cpuid ();
|
||||
&bt ("edx",28);
|
||||
&jnc (&label("done"));
|
||||
|
@ -84,6 +85,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
|
|||
|
||||
&set_label("nocacheinfo");
|
||||
&mov ("eax",1);
|
||||
&xor ("ecx","ecx");
|
||||
&cpuid ();
|
||||
&cmp ("ebp",0);
|
||||
&jne (&label("notP4"));
|
||||
|
|
Loading…
Reference in a new issue