]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
<sys/platform/x86.h>: Add WRMSRNS support
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 16:21:37 +0000 (09:21 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 21:46:10 +0000 (14:46 -0700)
Add WRMSRNS 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 ecee3a7b399985870889462f12a8c02908f27fc5..af79f5eb4d7361669e8bdcfba598d890bac26938 100644 (file)
@@ -679,6 +679,9 @@ using a TSC deadline value.
 @item
 @code{WIDE_KL} -- AES wide Key Locker instructions.
 
+@item
+@code{WRMSRNS} -- WRMSRNS instruction.
+
 @item
 @code{X2APIC} -- x2APIC.
 
index 74b7f951e17540696dd7cfa7800c89524cd761dd..2a15ad937a8228c1c83543ed040206bb62d4a011 100644 (file)
@@ -297,6 +297,7 @@ enum
   x86_cpu_FZLRM                        = x86_cpu_index_7_ecx_1_eax + 10,
   x86_cpu_FSRS                 = x86_cpu_index_7_ecx_1_eax + 11,
   x86_cpu_FSRCS                        = x86_cpu_index_7_ecx_1_eax + 12,
+  x86_cpu_WRMSRNS              = x86_cpu_index_7_ecx_1_eax + 19,
   x86_cpu_HRESET               = x86_cpu_index_7_ecx_1_eax + 22,
   x86_cpu_LAM                  = x86_cpu_index_7_ecx_1_eax + 26,
 
index 329d4aafb450496f4ad24347726ce2e50c32c25b..9c436eaa64b9d9b44546c7fea08b320f451c19a3 100644 (file)
@@ -209,6 +209,7 @@ do_test (void)
   CHECK_CPU_FEATURE_PRESENT (FZLRM);
   CHECK_CPU_FEATURE_PRESENT (FSRS);
   CHECK_CPU_FEATURE_PRESENT (FSRCS);
+  CHECK_CPU_FEATURE_PRESENT (WRMSRNS);
   CHECK_CPU_FEATURE_PRESENT (HRESET);
   CHECK_CPU_FEATURE_PRESENT (LAM);
   CHECK_CPU_FEATURE_PRESENT (AESKLE);