From 3282b2aa4bf53bacdfabdc05c8d72d4177bb5edd Mon Sep 17 00:00:00 2001 From: tanyan Date: Wed, 3 Dec 2025 09:17:21 +0800 Subject: [PATCH] Fix EC field TrappedFP annotation. Signed-off-by: tanyan --- src/registers/esr_el1.rs | 4 ++-- src/registers/esr_el2.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/registers/esr_el1.rs b/src/registers/esr_el1.rs index 7e7b40a..b9bae68 100644 --- a/src/registers/esr_el1.rs +++ b/src/registers/esr_el1.rs @@ -38,7 +38,7 @@ register_bitfields! {u64, TrappedMCRorMRC2 = 0b00_0101, /// Trapped LDC or STC access (FEAT_AA32) TrappedLDCorSTC = 0b00_0110, - /// Access to SME, SVE, Advanced SIMD or floating-point functionality trapped + /// Access to SME, SVE, Advanced SIMD or floating-point functionality trapped (FEAT_AA32) TrappedFP = 0b00_0111, /// Trapped execution of any instruction not covered by other EC values (FEAT_LS64) TrappedNotCovered = 0b00_1010, @@ -46,7 +46,7 @@ register_bitfields! {u64, TrappedMRRC = 0b00_1100, /// Branch Target Exception (FEAT_BTI) BranchTarget = 0b00_1101, - /// Illegal Execution state (FEAT_BTI) + /// Illegal Execution state IllegalExecutionState = 0b00_1110, /// SVC instruction execution in AArch32 state (FEAT_AA32) SVC32 = 0b01_0001, diff --git a/src/registers/esr_el2.rs b/src/registers/esr_el2.rs index 9de4f69..4b24949 100644 --- a/src/registers/esr_el2.rs +++ b/src/registers/esr_el2.rs @@ -50,7 +50,7 @@ register_bitfields! {u64, TrappedMCRorMRC2 = 0b00_0101, /// Trapped LDC or STC access (FEAT_AA32) TrappedLDCorSTC = 0b00_0110, - /// Access to SME, SVE, Advanced SIMD or floating-point functionality trapped + /// Access to SME, SVE, Advanced SIMD or floating-point functionality trapped (FEAT_AA32) TrappedFP = 0b00_0111, /// Trapped VMRS access, from ID group trap (FEAT_AA32) TrappedVMRS = 0b00_1000,