Skip to content
Snippets Groups Projects
Commit 229a138d authored by Peter Maydell's avatar Peter Maydell
Browse files

target-arm: Fix return address for A64 BRK instructions


When we take an exception resulting from a BRK instruction,
the architecture requires that the "preferred return address"
reported to the exception handler is the address of the BRK
itself, not the following instruction (like undefined
insns, and in contrast with SVC, HVC and SMC). Follow this,
rather than incorrectly reporting the address of the following
insn.

(We do get this correct for the A32/T32 BKPT insns.)

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Cc: qemu-stable@nongnu.org
parent 0e4a7737
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment