aboutsummaryrefslogtreecommitdiff
path: root/target-arm/cpu.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2010-11-24 15:20:04 +0000
committerRiku Voipio <riku.voipio@nokia.com>2010-12-03 15:09:39 +0200
commit0165329578eb8f40901825177c0874efb815e342 (patch)
treee0152d7d7bd3a924f683a4649e9fc312845cafbe /target-arm/cpu.h
parent5f0b7c888b5e626d61e0969a6c0dbf4fcf0f522c (diff)
downloadqemu-0165329578eb8f40901825177c0874efb815e342.zip
qemu-0165329578eb8f40901825177c0874efb815e342.tar.gz
qemu-0165329578eb8f40901825177c0874efb815e342.tar.bz2
ARM: Expose vfp_get_fpscr() and vfp_set_fpscr() to C code
Expose the vfp_get_fpscr() and vfp_set_fpscr() functions to C code as well as generated code, so we can use them to read and write the FPSCR when saving and restoring VFP registers across signal handlers in linux-user mode. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r--target-arm/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 0284bad..340933e 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -300,6 +300,10 @@ static inline void xpsr_write(CPUARMState *env, uint32_t val, uint32_t mask)
}
}
+/* Return the current FPSCR value. */
+uint32_t vfp_get_fpscr(CPUARMState *env);
+void vfp_set_fpscr(CPUARMState *env, uint32_t val);
+
enum arm_cpu_mode {
ARM_CPU_MODE_USR = 0x10,
ARM_CPU_MODE_FIQ = 0x11,