From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id EB0A2385840F; Wed, 5 Apr 2023 22:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB0A2385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680734678; bh=Aw4ZoKH6Ps6cWwLV+mgLsP3Lro4rxpMQ9N9JajKL1QA=; h=From:To:Subject:Date:From; b=iKNaarHa2Uq32IMZWqx1OnRbJ3CSoFPfR3drm9VZMgEWhEC2uPdl6Sg0Fko/v4uF8 jM3vPeolsQCNXu8K8BcvT4D1zDkuEg+ddWkwHr5IkPKB5paTea4EsjisBv1Vo9E3ca zR2f7YDiI5PagC38QsRi+OJ2A6dUtSdlPM/MhnwU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: H.J. Lu To: glibc-cvs@sourceware.org Subject: [glibc] : Add LASS support X-Act-Checkin: glibc X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: 231bf916ce9572776df0b5f197b57739c1ddc7ac X-Git-Newrev: aa528a579b3fc98eab43986619087cafe3f260d0 Message-Id: <20230405224438.EB0A2385840F@sourceware.org> Date: Wed, 5 Apr 2023 22:44:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=aa528a579b3fc98eab43986619087cafe3f260d0 commit aa528a579b3fc98eab43986619087cafe3f260d0 Author: H.J. Lu Date: Wed Apr 5 09:21:34 2023 -0700 : Add LASS support Add Linear Address Space Separation (LASS) support to . Reviewed-by: Noah Goldstein Diff: --- manual/platform.texi | 3 +++ sysdeps/x86/bits/platform/x86.h | 1 + sysdeps/x86/tst-get-cpu-features.c | 1 + 3 files changed, 5 insertions(+) diff --git a/manual/platform.texi b/manual/platform.texi index a6e33b1572..be04194c88 100644 --- a/manual/platform.texi +++ b/manual/platform.texi @@ -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. diff --git a/sysdeps/x86/bits/platform/x86.h b/sysdeps/x86/bits/platform/x86.h index 6fc3b69651..c9ee8fcf90 100644 --- a/sysdeps/x86/bits/platform/x86.h +++ b/sysdeps/x86/bits/platform/x86.h @@ -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, diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c index 6a3f29db98..9da561a559 100644 --- a/sysdeps/x86/tst-get-cpu-features.c +++ b/sysdeps/x86/tst-get-cpu-features.c @@ -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);