]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
<sys/platform/x86.h>: Add MSRLIST support
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 16:21:40 +0000 (09:21 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 21:46:10 +0000 (14:46 -0700)
Add MSRLIST support to <sys/platform/x86.h>.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
manual/platform.texi
sysdeps/x86/bits/platform/x86.h
sysdeps/x86/tst-get-cpu-features.c

index af75e5c4133eb008f271bf9c0fa5719ed56074f1..bfccd024a524d5d19f197f9457585c6ad8103d4f 100644 (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.
 
index abc0116607ee43d192f9677f1d232bfae9230f67..57973e9a6c88cf798ff06d1366f6661dbf9e0e69 100644 (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)
index 3a2d4671ec29e7f337878c8f7235828abe779133..0c948c2b046ada3c9698b02499825185971be4bf 100644 (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);