]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Set debug in attrs in translate_for_debug()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 May 2026 13:12:45 +0000 (14:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 26 May 2026 09:14:09 +0000 (10:14 +0100)
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

target/arm/ptw.c

index a4842a4b62b0d196a52c540208bfb070327101f9..7cc1d5884dac1e2b756097435cbc1feda067b791 100644 (file)
@@ -3961,6 +3961,7 @@ static bool arm_cpu_get_phys_addr(CPUARMState *env, vaddr addr,
         /* translation succeeded */
         result->physaddr = res.f.phys_addr;
         result->attrs = res.f.attrs;
+        result->attrs.debug = 1;
         result->lg_page_size = res.f.lg_page_size;
     }
     return fault;