x86: Detect new feature bits
Fix an off-by-one in AVX512VPOPCNTDQ identification. That was actually the TME bit. Reported by: debdrup
This commit is contained in:
parent
d89d55087f
commit
9d3b7f622a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361540
@ -396,6 +396,7 @@
|
||||
#define AMDFEID_IBRS_ALWAYSON 0x00010000
|
||||
#define AMDFEID_STIBP_ALWAYSON 0x00020000
|
||||
#define AMDFEID_PREFER_IBRS 0x00040000
|
||||
#define AMDFEID_PPIN 0x00800000
|
||||
#define AMDFEID_SSBD 0x01000000
|
||||
/* SSBD via MSRC001_011F instead of MSR 0x48: */
|
||||
#define AMDFEID_VIRT_SSBD 0x02000000
|
||||
@ -459,7 +460,9 @@
|
||||
#define CPUID_STDEXT2_VPCLMULQDQ 0x00000400
|
||||
#define CPUID_STDEXT2_AVX512VNNI 0x00000800
|
||||
#define CPUID_STDEXT2_AVX512BITALG 0x00001000
|
||||
#define CPUID_STDEXT2_TME 0x00002000
|
||||
#define CPUID_STDEXT2_AVX512VPOPCNTDQ 0x00004000
|
||||
#define CPUID_STDEXT2_LA57 0x00010000
|
||||
#define CPUID_STDEXT2_RDPID 0x00400000
|
||||
#define CPUID_STDEXT2_CLDEMOTE 0x02000000
|
||||
#define CPUID_STDEXT2_MOVDIRI 0x08000000
|
||||
@ -472,6 +475,7 @@
|
||||
*/
|
||||
#define CPUID_STDEXT3_AVX5124VNNIW 0x00000004
|
||||
#define CPUID_STDEXT3_AVX5124FMAPS 0x00000008
|
||||
#define CPUID_STDEXT3_FSRM 0x00000010
|
||||
#define CPUID_STDEXT3_AVX512VP2INTERSECT 0x00000100
|
||||
#define CPUID_STDEXT3_MD_CLEAR 0x00000400
|
||||
#define CPUID_STDEXT3_TSXFA 0x00002000
|
||||
|
@ -1008,7 +1008,9 @@ printcpuinfo(void)
|
||||
"\013VPCLMULQDQ"
|
||||
"\014AVX512VNNI"
|
||||
"\015AVX512BITALG"
|
||||
"\016AVX512VPOPCNTDQ"
|
||||
"\016TME"
|
||||
"\017AVX512VPOPCNTDQ"
|
||||
"\021LA57"
|
||||
"\027RDPID"
|
||||
"\032CLDEMOTE"
|
||||
"\034MOVDIRI"
|
||||
@ -1095,6 +1097,7 @@ printcpuinfo(void)
|
||||
"\021IBRS_ALWAYSON"
|
||||
"\022STIBP_ALWAYSON"
|
||||
"\023PREFER_IBRS"
|
||||
"\030PPIN"
|
||||
"\031SSBD"
|
||||
"\032VIRT_SSBD"
|
||||
"\033SSB_NO"
|
||||
|
Loading…
Reference in New Issue
Block a user