mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fixed: The FeatureFlags array in the CPUInfo struct was not mapped to the flags properly.
SVN r1761 (trunk)
This commit is contained in:
parent
d4c8c47796
commit
a47ec74eba
1 changed files with 50 additions and 50 deletions
14
src/x86.h
14
src/x86.h
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue