]> git.proxmox.com Git - mirror_qemu.git/commit
target-arm: Give CPSR setting on 32-bit exception return its own helper
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 15:36:43 +0000 (15:36 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Feb 2016 15:09:41 +0000 (15:09 +0000)
commit235ea1f5c89abf30e452539b973b0dbe43d3fe2b
tree926cd2da5ac6f850018a29d2a2a5226ed19e1e95
parent4d1e324b2241017c92d816ec3af51a14685dbf62
target-arm: Give CPSR setting on 32-bit exception return its own helper

The rules for setting the CPSR on a 32-bit exception return are
subtly different from those for setting the CPSR via an instruction
like MSR or CPS. (In particular, in Hyp mode changing the mode bits
is not valid via MSR or CPS.) Split the exception-return case into
its own helper for setting CPSR, so we can eventually handle them
differently in the helper function.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
Message-id: 1455556977-3644-2-git-send-email-peter.maydell@linaro.org
target-arm/helper.h
target-arm/op_helper.c
target-arm/translate.c