- Fixed: The FeatureFlags array in the CPUInfo struct was not mapped to the flags properly.

SVN r1761 (trunk)
This commit is contained in:
Christoph Oelckers 2009-08-08 13:32:58 +00:00
parent d4c8c47796
commit a47ec74eba

View file

@ -16,10 +16,6 @@ struct CPUInfo // 92 bytes
DWORD dwCPUString[12]; DWORD dwCPUString[12];
}; };
union
{
struct
{
BYTE Stepping; BYTE Stepping;
BYTE Model; BYTE Model;
BYTE Family; BYTE Family;
@ -30,6 +26,10 @@ struct CPUInfo // 92 bytes
BYTE CPUCount; BYTE CPUCount;
BYTE APICID; BYTE APICID;
union
{
struct
{
DWORD bSSE3:1; DWORD bSSE3:1;
DWORD DontCare1:8; DWORD DontCare1:8;
DWORD bSSSE3:1; DWORD bSSSE3:1;
@ -37,9 +37,6 @@ struct CPUInfo // 92 bytes
DWORD bSSE41:1; DWORD bSSE41:1;
DWORD bSSE42:1; DWORD bSSE42:1;
DWORD DontCare2a:11; DWORD DontCare2a:11;
};
DWORD FeatureFlags[3];
};
DWORD bFPU:1; DWORD bFPU:1;
DWORD bVME:1; DWORD bVME:1;
@ -80,6 +77,9 @@ struct CPUInfo // 92 bytes
DWORD DontCare3:6; DWORD DontCare3:6;
DWORD b3DNowPlus:1; DWORD b3DNowPlus:1;
DWORD b3DNow:1; DWORD b3DNow:1;
};
DWORD FeatureFlags[3];
};
BYTE AMDStepping; BYTE AMDStepping;
BYTE AMDModel; BYTE AMDModel;