git: 9757cfb9d245 - stable/13 - Hide arm64 features that don't have a HWCAP
Andrew Turner
andrew at FreeBSD.org
Fri Aug 6 12:51:28 UTC 2021
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=9757cfb9d24540ea1fa80ff54531142d5ec8c2bc
commit 9757cfb9d24540ea1fa80ff54531142d5ec8c2bc
Author: Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2021-07-15 23:22:07 +0000
Commit: Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2021-08-05 20:50:25 +0000
Hide arm64 features that don't have a HWCAP
We should only export MSR fields if there is also a HWCAP so it doesn't
matter which software uses.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit ae47eecf87b5d8a054bd5d640da12608cc5f126a)
---
sys/arm64/arm64/identcpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c
index 2cd5b914ddef..6395b3e0f08a 100644
--- a/sys/arm64/arm64/identcpu.c
+++ b/sys/arm64/arm64/identcpu.c
@@ -467,7 +467,7 @@ static struct mrs_field_value id_aa64isar0_aes[] = {
static struct mrs_field id_aa64isar0_fields[] = {
MRS_FIELD(ID_AA64ISAR0, RNDR, false, MRS_LOWER, id_aa64isar0_rndr),
- MRS_FIELD(ID_AA64ISAR0, TLB, false, MRS_LOWER, id_aa64isar0_tlb),
+ MRS_FIELD(ID_AA64ISAR0, TLB, false, MRS_EXACT, id_aa64isar0_tlb),
MRS_FIELD(ID_AA64ISAR0, TS, false, MRS_LOWER, id_aa64isar0_ts),
MRS_FIELD(ID_AA64ISAR0, FHM, false, MRS_LOWER, id_aa64isar0_fhm),
MRS_FIELD(ID_AA64ISAR0, DP, false, MRS_LOWER, id_aa64isar0_dp),
@@ -568,7 +568,7 @@ static struct mrs_field id_aa64isar1_fields[] = {
MRS_FIELD(ID_AA64ISAR1, I8MM, false, MRS_LOWER, id_aa64isar1_i8mm),
MRS_FIELD(ID_AA64ISAR1, DGH, false, MRS_LOWER, id_aa64isar1_dgh),
MRS_FIELD(ID_AA64ISAR1, BF16, false, MRS_LOWER, id_aa64isar1_bf16),
- MRS_FIELD(ID_AA64ISAR1, SPECRES, false, MRS_LOWER,
+ MRS_FIELD(ID_AA64ISAR1, SPECRES, false, MRS_EXACT,
id_aa64isar1_specres),
MRS_FIELD(ID_AA64ISAR1, SB, false, MRS_LOWER, id_aa64isar1_sb),
MRS_FIELD(ID_AA64ISAR1, FRINTTS, false, MRS_LOWER,
More information about the dev-commits-src-all
mailing list