target-arm: Move arm_rmode_to_sf to a shared location.
commit9972da669fd3d3e3423d2bf6cb2c11fa9239f862
authorWill Newton <will.newton@linaro.org>
Fri, 31 Jan 2014 14:47:33 +0000 (31 14:47 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 31 Jan 2014 14:47:33 +0000 (31 14:47 +0000)
tree1194c8cf611e9780750fa434d1ec3935a370b14a
parent2cdaca90ddf3291f308a10623c1a802ef760bac1
target-arm: Move arm_rmode_to_sf to a shared location.

This function will be needed for AArch32 ARMv8 support, so move it to
helper.c where it can be used by both targets. Also moves the code out
of line, but as it is quite a large function I don't believe this
should be a significant performance impact.

Signed-off-by: Will Newton <will.newton@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h
target-arm/helper.c
target-arm/translate-a64.c