MFamd64: More CPUID feature flags: SSE4, X2APIC, POPCNT, DTES64, and 1GB

large pages.

MFC after:	1 month
This commit is contained in:
jhb 2008-09-17 20:45:18 +00:00
parent 9839b6d9f2
commit dc36d8024c
2 changed files with 12 additions and 6 deletions

View File

@ -719,7 +719,7 @@ printcpuinfo(void)
"\020"
"\001SSE3" /* SSE3 */
"\002<b1>"
"\003RSVD2" /* "Reserved" bit 2 */
"\003DTES64" /* 64-bit Debug Trace */
"\004MON" /* MONITOR/MWAIT Instructions */
"\005DS_CPL" /* CPL Qualified Debug Store */
"\006VMX" /* Virtual Machine Extensions */
@ -736,11 +736,11 @@ printcpuinfo(void)
"\021<b16>"
"\022<b17>"
"\023DCA" /* Direct Cache Access */
"\024<b19>"
"\025<b20>"
"\026<b21>"
"\024SSE4.1"
"\025SSE4.2"
"\026x2APIC" /* xAPIC Extensions */
"\027<b22>"
"\030<b23>"
"\030POPCNT"
"\031<b24>"
"\032<b25>"
"\033<b26>"
@ -790,7 +790,7 @@ printcpuinfo(void)
"\030<s23>" /* Same */
"\031<s24>" /* Same */
"\032FFXSR" /* Fast FXSAVE/FXRSTOR */
"\033<b26>" /* Undefined */
"\033Page1GB" /* 1-GB large page support */
"\034RDTSCP" /* RDTSCP */
"\035<b28>" /* Undefined */
"\036LM" /* 64 bit long mode */

View File

@ -110,6 +110,7 @@
#define CPUID_PBE 0x80000000
#define CPUID2_SSE3 0x00000001
#define CPUID2_DTES64 0x00000004
#define CPUID2_MON 0x00000008
#define CPUID2_DS_CPL 0x00000010
#define CPUID2_VMX 0x00000020
@ -122,6 +123,10 @@
#define CPUID2_XTPR 0x00004000
#define CPUID2_PDCM 0x00008000
#define CPUID2_DCA 0x00040000
#define CPUID2_SSE41 0x00080000
#define CPUID2_SSE42 0x00100000
#define CPUID2_X2APIC 0x00200000
#define CPUID2_POPCNT 0x00800000
/*
* Important bits in the AMD extended cpuid flags
@ -131,6 +136,7 @@
#define AMDID_NX 0x00100000
#define AMDID_EXT_MMX 0x00400000
#define AMDID_FFXSR 0x01000000
#define AMDID_PAGE1GB 0x04000000
#define AMDID_RDTSCP 0x08000000
#define AMDID_LM 0x20000000
#define AMDID_EXT_3DNOW 0x40000000