[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/25] target/arm: Handle m-profile in arm_is_secure
From: |
Richard Henderson |
Subject: |
[PATCH v3 01/25] target/arm: Handle m-profile in arm_is_secure |
Date: |
Tue, 21 Feb 2023 16:33:12 -1000 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/cpu.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 12b1082537..7a2f804aeb 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -2426,6 +2426,9 @@ static inline bool arm_is_el3_or_mon(CPUARMState *env)
/* Return true if the processor is in secure state */
static inline bool arm_is_secure(CPUARMState *env)
{
+ if (arm_feature(env, ARM_FEATURE_M)) {
+ return env->v7m.secure;
+ }
if (arm_is_el3_or_mon(env)) {
return true;
}
--
2.34.1
- [PATCH v3 00/25] target/arm: Implement FEAT_RME, Richard Henderson, 2023/02/21
- [PATCH v3 01/25] target/arm: Handle m-profile in arm_is_secure,
Richard Henderson <=
- [PATCH v3 02/25] target/arm: Stub arm_hcr_el2_eff for m-profile, Richard Henderson, 2023/02/21
- [PATCH v3 06/25] target/arm: Update SCR and HCR for RME, Richard Henderson, 2023/02/21
- [PATCH v3 04/25] target/arm: Rewrite check_s2_mmu_setup, Richard Henderson, 2023/02/21
- [PATCH v3 03/25] target/arm: Diagnose incorrect usage of arm_is_secure subroutines, Richard Henderson, 2023/02/21
- [PATCH v3 05/25] target/arm: Add isar_feature_aa64_rme, Richard Henderson, 2023/02/21