- most stat stuff done.

This commit is contained in:
Christoph Oelckers 2018-02-13 23:06:59 +01:00
commit d2fa4d0ff9
12 changed files with 158 additions and 52 deletions

View file

@ -143,6 +143,8 @@ haveid:
cpu->FeatureFlags[1] = foo[2]; // Store extended feature flags
cpu->FeatureFlags[2] = foo[3]; // Store feature flags
cpu->HyperThreading = (foo[3] & (1 << 28)) > 0;
// If CLFLUSH instruction is supported, get the real cache line size.
if (foo[3] & (1 << 19))
{
@ -251,6 +253,7 @@ void DumpCPUInfo(const CPUInfo *cpu)
if (cpu->bSSE42) Printf(" SSE4.2");
if (cpu->b3DNow) Printf(" 3DNow!");
if (cpu->b3DNowPlus) Printf(" 3DNow!+");
if (cpu->HyperThreading) Printf(" HyperThreading");
Printf ("\n");
}
}