Fix CPU Brand

This commit is contained in:
Phillip Stephens 2016-02-16 18:14:39 -08:00
parent f7fb4b0ecc
commit a8ee545c63
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ void detectCPU()
*reinterpret_cast<int*>((char*)g_cpuFeatures.cpuVendor) = regs[1]; *reinterpret_cast<int*>((char*)g_cpuFeatures.cpuVendor) = regs[1];
*reinterpret_cast<int*>((char*)g_cpuFeatures.cpuVendor + 4) = regs[3]; *reinterpret_cast<int*>((char*)g_cpuFeatures.cpuVendor + 4) = regs[3];
*reinterpret_cast<int*>((char*)g_cpuFeatures.cpuVendor + 8) = regs[2]; *reinterpret_cast<int*>((char*)g_cpuFeatures.cpuVendor + 8) = regs[2];
for (unsigned int i = 0x80000002; i < 0x80000004; i++) for (unsigned int i = 0x80000002; i <= 0x80000004; i++)
{ {
getCpuInfo(i, regs); getCpuInfo(i, regs);
// Interpret CPU brand string and cache information. // Interpret CPU brand string and cache information.