mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
target/arm: Fix S2 disabled check in S1_ptw_translate
Pass the correct stage2 mmu_idx to regime_translation_disabled, which we computed afterward. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20221001162318.153420-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
c23f08a56c
commit
bf25b7b079
1 changed files with 3 additions and 3 deletions
|
@ -200,10 +200,10 @@ static hwaddr S1_ptw_translate(CPUARMState *env, ARMMMUIdx mmu_idx,
|
||||||
hwaddr addr, bool *is_secure,
|
hwaddr addr, bool *is_secure,
|
||||||
ARMMMUFaultInfo *fi)
|
ARMMMUFaultInfo *fi)
|
||||||
{
|
{
|
||||||
|
ARMMMUIdx s2_mmu_idx = *is_secure ? ARMMMUIdx_Stage2_S : ARMMMUIdx_Stage2;
|
||||||
|
|
||||||
if (arm_mmu_idx_is_stage1_of_2(mmu_idx) &&
|
if (arm_mmu_idx_is_stage1_of_2(mmu_idx) &&
|
||||||
!regime_translation_disabled(env, ARMMMUIdx_Stage2)) {
|
!regime_translation_disabled(env, s2_mmu_idx)) {
|
||||||
ARMMMUIdx s2_mmu_idx = *is_secure ? ARMMMUIdx_Stage2_S
|
|
||||||
: ARMMMUIdx_Stage2;
|
|
||||||
GetPhysAddrResult s2 = {};
|
GetPhysAddrResult s2 = {};
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue