<sys/platform/x86.h>: Add ArchPerfmonExt support
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 16:21:36 +0000 (09:21 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 21:46:10 +0000 (14:46 -0700)
Add Architectural Performance Monitoring Extended Leaf (EAX = 23H)
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 e4d2c00886320865c8ae93db06ff8bbf17e180fc..ecee3a7b399985870889462f12a8c02908f27fc5 100644 (file)
@@ -206,6 +206,10 @@ The supported processor features are:
 @item
 @code{ARCH_CAPABILITIES} -- IA32_ARCH_CAPABILITIES MSR.
 
+@item
+@code{ArchPerfmonExt} -- Architectural Performance Monitoring Extended
+Leaf (EAX = 23H).
+
 @item
 @code{AVX} -- The AVX instruction extensions.
 
index 0187964aba3bdf903a5645bec71ad5ef01bf5ef4..74b7f951e17540696dd7cfa7800c89524cd761dd 100644 (file)
@@ -293,6 +293,7 @@ enum
   x86_cpu_AVX512_BF16          = x86_cpu_index_7_ecx_1_eax + 5,
   x86_cpu_LASS                 = x86_cpu_index_7_ecx_1_eax + 6,
   x86_cpu_CMPCCXADD            = x86_cpu_index_7_ecx_1_eax + 7,
+  x86_cpu_ArchPerfmonExt       = x86_cpu_index_7_ecx_1_eax + 8,
   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,
index d8bc92560f269368382f3dc7d34837636bb0c35a..329d4aafb450496f4ad24347726ce2e50c32c25b 100644 (file)
@@ -205,6 +205,7 @@ do_test (void)
   CHECK_CPU_FEATURE_PRESENT (AVX512_BF16);
   CHECK_CPU_FEATURE_PRESENT (LASS);
   CHECK_CPU_FEATURE_PRESENT (CMPCCXADD);
+  CHECK_CPU_FEATURE_PRESENT (ArchPerfmonExt);
   CHECK_CPU_FEATURE_PRESENT (FZLRM);
   CHECK_CPU_FEATURE_PRESENT (FSRS);
   CHECK_CPU_FEATURE_PRESENT (FSRCS);