@samitouri / QOSamiQemu / commits / 092c902a8b

target/arm: Set debug in attrs in translate_for_debug()

The translate_for_debug method is supposed to return attributes that include the debug flag being set. We forgot this when implementing the method for Arm. Fixes: abefca8e7f957 ("target/arm: Implement translate_for_debug") Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260515131245.366240-1-peter.maydell@linaro.org

Peter Maydell committed May 15, 2026 at 14:12 UTC 092c902a8b3945d3064bde4ffcbecd26cf846eaf
1 file changed +1
target/arm/ptw.c
+1
@@ -3961,6 +3961,7 @@ static bool arm_cpu_get_phys_addr(CPUARMState *env, vaddr addr,
3961 /* translation succeeded */
3962 result->physaddr = res.f.phys_addr;
3963 result->attrs = res.f.attrs;
3964 + result->attrs.debug = 1;
3965 result->lg_page_size = res.f.lg_page_size;
3966 }
3967 return fault;