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: abefca8e7f ("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
This commit is contained in:
Peter Maydell
2026-05-15 14:12:45 +01:00
parent 9ae6151bd5
commit 092c902a8b

View 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;