]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 8 Sep 2014 16:23:05 +0000 (11:23 -0500)
commit20463dc874bb24a847e6003678d740270bf479d1
tree60c01d51d18ce99265e07a726fab827c354a56c9
parent2a575c450e1f1e82fb040632e3608e376c4212c2
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
(cherry picked from commit 229a138d740142885dd4e7063e25147d7f71fdef)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-arm/translate-a64.c