target-arm: A64: add set_pc cpu method
commit5ce4f35781028ce1aee3341e6002f925fdc7aaf3
authorAlexander Graf <agraf@suse.de>
Tue, 17 Dec 2013 19:42:31 +0000 (17 19:42 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Dec 2013 19:42:31 +0000 (17 19:42 +0000)
treef4c8b7cf54a445a3c0ddfa7590d543656390d7db
parent40f860cd6c1aa0d3399e3f8158f20bdc5b2bfbfe
target-arm: A64: add set_pc cpu method

When executing translation blocks we need to be able to recover
our program counter. Add a method to set it for AArch64 CPUs.
This covers user-mode, but for system mode emulation we will
need to check if the CPU is in an AArch32 execution state.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-arm/cpu64.c