<sys/platform/x86.h>: Add MSRLIST support

Add MSRLIST support to <sys/platform/x86.h>.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
This commit is contained in:
H.J. Lu 2023-04-05 09:21:40 -07:00
parent 96037c697d
commit b39741b45f
3 changed files with 6 additions and 0 deletions

View File

@ -464,6 +464,10 @@ the indirect branch predictor barrier (IBPB).
@item
@code{MSR} -- Model Specific Registers RDMSR and WRMSR instructions.
@item
@code{MSRLIST} -- RDMSRLIST/WRMSRLIST instructions and IA32_BARRIER
MSR.
@item
@code{MTRR} -- Memory Type Range Registers.

View File

@ -302,6 +302,7 @@ enum
x86_cpu_HRESET = x86_cpu_index_7_ecx_1_eax + 22,
x86_cpu_AVX_IFMA = x86_cpu_index_7_ecx_1_eax + 23,
x86_cpu_LAM = x86_cpu_index_7_ecx_1_eax + 26,
x86_cpu_MSRLIST = x86_cpu_index_7_ecx_1_eax + 27,
x86_cpu_index_19_ebx
= (CPUID_INDEX_19 * 8 * 4 * sizeof (unsigned int)

View File

@ -214,6 +214,7 @@ do_test (void)
CHECK_CPU_FEATURE_PRESENT (HRESET);
CHECK_CPU_FEATURE_PRESENT (AVX_IFMA);
CHECK_CPU_FEATURE_PRESENT (LAM);
CHECK_CPU_FEATURE_PRESENT (MSRLIST);
CHECK_CPU_FEATURE_PRESENT (AESKLE);
CHECK_CPU_FEATURE_PRESENT (WIDE_KL);
CHECK_CPU_FEATURE_PRESENT (PTWRITE);