diff options
author | Will Newton | 2014-01-31 15:47:33 +0100 |
---|---|---|
committer | Peter Maydell | 2014-01-31 15:47:33 +0100 |
commit | 9972da669fd3d3e3423d2bf6cb2c11fa9239f862 (patch) | |
tree | 1194c8cf611e9780750fa434d1ec3935a370b14a /target-arm/cpu.h | |
parent | display: avoid multi-statement macro (diff) | |
download | qemu-9972da669fd3d3e3423d2bf6cb2c11fa9239f862.tar.gz qemu-9972da669fd3d3e3423d2bf6cb2c11fa9239f862.tar.xz qemu-9972da669fd3d3e3423d2bf6cb2c11fa9239f862.zip |
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>
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r-- | target-arm/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 198b6b8d4e..383c58221e 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -496,6 +496,8 @@ enum arm_fprounding { FPROUNDING_ODD }; +int arm_rmode_to_sf(int rmode); + enum arm_cpu_mode { ARM_CPU_MODE_USR = 0x10, ARM_CPU_MODE_FIQ = 0x11, |