git: ae47eecf87b5 - main - Hide arm64 features that don't have a HWCAP

Andrew Turner andrew at FreeBSD.org
Fri Jul 16 13:49:26 UTC 2021


The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=ae47eecf87b5d8a054bd5d640da12608cc5f126a

commit ae47eecf87b5d8a054bd5d640da12608cc5f126a
Author:     Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2021-07-15 23:22:07 +0000
Commit:     Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2021-07-15 23:56:47 +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
---
 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 c2812055dfa9..f4ce02791787 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