]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
<sys/platform/x86.h>: Add LASS support
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 16:21:34 +0000 (09:21 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Apr 2023 21:46:10 +0000 (14:46 -0700)
Add Linear Address Space Separation (LASS) 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 a6e33b1572f7ea2719567c242e00cfd7acee655a..be04194c884a4381418360c80101da9b90862e21 100644 (file)
@@ -406,6 +406,9 @@ the indirect branch predictor barrier (IBPB).
 @item
 @code{LAM} -- Linear Address Masking.
 
+@item
+@code{LASS} -- Linear Address Space Separation.
+
 @item
 @code{LBR} -- Architectural LBR.
 
index 6fc3b69651ce30de6fbfa18a76be4215c6cb212e..c9ee8fcf90a9516308b20a5f3ed0420fecf5b329 100644 (file)
@@ -291,6 +291,7 @@ enum
   x86_cpu_RAO_INT              = x86_cpu_index_7_ecx_1_eax + 3,
   x86_cpu_AVX_VNNI             = x86_cpu_index_7_ecx_1_eax + 4,
   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_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 6a3f29db98c54dfbfa89cf19273927dfc07a730f..9da561a559642ec459abab416bda7aefde233ea2 100644 (file)
@@ -203,6 +203,7 @@ do_test (void)
   CHECK_CPU_FEATURE_PRESENT (RAO_INT);
   CHECK_CPU_FEATURE_PRESENT (AVX_VNNI);
   CHECK_CPU_FEATURE_PRESENT (AVX512_BF16);
+  CHECK_CPU_FEATURE_PRESENT (LASS);
   CHECK_CPU_FEATURE_PRESENT (FZLRM);
   CHECK_CPU_FEATURE_PRESENT (FSRS);
   CHECK_CPU_FEATURE_PRESENT (FSRCS);