]> git.proxmox.com Git - qemu.git/commit - target-arm/helper.c
target-arm: Don't generate code specific to current CPU mode for SRS
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Jan 2011 19:39:18 +0000 (20:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:39:18 +0000 (20:39 +0100)
commit39ea3d4eaf1ff300ee55946108394729bc053dfa
tree4e0e7fa61544f4fbf38693ac0fa0cfd331caa007
parent718269667ab60c878940ab7a4e3e0ef1e984d784
target-arm: Don't generate code specific to current CPU mode for SRS

When translating the SRS instruction, handle the "store registers
to stack of current mode" case in the helper function rather than
inline. This means the generated code does not make assumptions
about the current CPU mode which might not be valid when the TB
is executed later.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/helper.c
target-arm/translate.c