diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-10-01 09:22:48 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-10-10 14:52:24 +0100 |
commit | fdf12933390119a06cfb74dc892c5ce868b6a963 (patch) | |
tree | dc6c31764ceb1b1d484a1a95adf4d0ffe5bafadc | |
parent | 3b2af99313504b65f582e034cf505fea839984e9 (diff) | |
download | qemu-fdf12933390119a06cfb74dc892c5ce868b6a963.zip qemu-fdf12933390119a06cfb74dc892c5ce868b6a963.tar.gz qemu-fdf12933390119a06cfb74dc892c5ce868b6a963.tar.bz2 |
target/arm: Drop secure check for HCR.TGE vs SCTLR_EL1.M
The effect of TGE does not only apply to non-secure state,
now that Secure EL2 exists.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20221001162318.153420-13-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | target/arm/ptw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/ptw.c b/target/arm/ptw.c index a514a78..b3e0db1 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -157,8 +157,8 @@ static bool regime_translation_disabled(CPUARMState *env, ARMMMUIdx mmu_idx, case ARMMMUIdx_E10_0: case ARMMMUIdx_E10_1: case ARMMMUIdx_E10_1_PAN: - /* TGE means that NS EL0/1 act as if SCTLR_EL1.M is zero */ - if (!is_secure && (hcr_el2 & HCR_TGE)) { + /* TGE means that EL0/1 act as if SCTLR_EL1.M is zero */ + if (hcr_el2 & HCR_TGE) { return true; } break; |