target-arm: Fix return address for A64 BRK instructions
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Aug 2014 17:56:24 +0000 (18:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Aug 2014 17:56:24 +0000 (18:56 +0100)
commit229a138d740142885dd4e7063e25147d7f71fdef
tree254b6c3f2fee791e05748211d20d39f7aae134a8
parent0e4a77370594c91dd126f9872893ed473374cc72
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: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-stable@nongnu.org
target-arm/translate-a64.c