From: Pierrick Bouvier Date: Mon, 14 Apr 2025 15:30:25 +0000 (-0700) Subject: target/arm/ptw: get current security_space for current mmu_idx X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6af88fafa586b1571b0db7f00356ad65a713061;p=thirdparty%2Fqemu.git target/arm/ptw: get current security_space for current mmu_idx It should be equivalent to previous code. Allow to call common function to get a page address later. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-id: 20250414153027.1486719-3-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/ptw.c b/target/arm/ptw.c index bdb4de7c04..0ae9c5a3f4 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -3636,7 +3636,7 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr, ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; ARMMMUIdx mmu_idx = arm_mmu_idx(env); - ARMSecuritySpace ss = arm_security_space(env); + ARMSecuritySpace ss = arm_mmu_idx_to_security_space(env, mmu_idx); S1Translate ptw = { .in_mmu_idx = mmu_idx, .in_space = ss,