git: 1dd169af7143 - main - Add more arm64 ID registers to the user_regs array
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jun 2023 16:56:58 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=1dd169af7143db4df613f273e565919c1c2b53f5
commit 1dd169af7143db4df613f273e565919c1c2b53f5
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-06-09 08:36:12 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-06-09 16:55:19 +0000
Add more arm64 ID registers to the user_regs array
This is a mapping from ID register value to offset in struct cpu_desc.
These registers may be needed with future architecture revisions either
by userspace or by bhyve.
Sponsored by: Arm Ltd
---
sys/arm64/arm64/identcpu.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c
index 86b669ea2f56..e96f0a089784 100644
--- a/sys/arm64/arm64/identcpu.c
+++ b/sys/arm64/arm64/identcpu.c
@@ -1619,10 +1619,15 @@ struct mrs_user_reg {
.fields = field_name##_fields, \
}
static struct mrs_user_reg user_regs[] = {
+ USER_REG(ID_AA64AFR0_EL1, id_aa64afr0),
+ USER_REG(ID_AA64AFR1_EL1, id_aa64afr1),
+
USER_REG(ID_AA64DFR0_EL1, id_aa64dfr0),
+ USER_REG(ID_AA64DFR1_EL1, id_aa64dfr1),
USER_REG(ID_AA64ISAR0_EL1, id_aa64isar0),
USER_REG(ID_AA64ISAR1_EL1, id_aa64isar1),
+ USER_REG(ID_AA64ISAR2_EL1, id_aa64isar2),
USER_REG(ID_AA64MMFR0_EL1, id_aa64mmfr0),
USER_REG(ID_AA64MMFR1_EL1, id_aa64mmfr1),
@@ -1630,6 +1635,9 @@ static struct mrs_user_reg user_regs[] = {
USER_REG(ID_AA64PFR0_EL1, id_aa64pfr0),
USER_REG(ID_AA64PFR1_EL1, id_aa64pfr1),
+
+ USER_REG(ID_AA64ZFR0_EL1, id_aa64zfr0),
+
#ifdef COMPAT_FREEBSD32
USER_REG(ID_ISAR5_EL1, id_isar5),