summaryrefslogtreecommitdiffstats
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson2019-10-23 17:00:45 +0200
committerPeter Maydell2019-10-24 18:16:28 +0200
commit3d74e2e9ffc9fda4da2c29ec8975e2115aaaa603 (patch)
treeca31005651275bacad310fb5ded983da32e21c34 /target/arm/cpu.h
parenttarget/arm: Hoist computation of TBFLAG_A32.VFPEN (diff)
downloadqemu-3d74e2e9ffc9fda4da2c29ec8975e2115aaaa603.tar.gz
qemu-3d74e2e9ffc9fda4da2c29ec8975e2115aaaa603.tar.xz
qemu-3d74e2e9ffc9fda4da2c29ec8975e2115aaaa603.zip
target/arm: Add arm_rebuild_hflags
This function assumes nothing about the current state of the cpu, and writes the computed value to env->hflags. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20191023150057.25731-13-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r--target/arm/cpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 9909ff89d4..d844ea21d8 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -3298,6 +3298,12 @@ void arm_register_el_change_hook(ARMCPU *cpu, ARMELChangeHookFn *hook, void
*opaque);
/**
+ * arm_rebuild_hflags:
+ * Rebuild the cached TBFLAGS for arbitrary changed processor state.
+ */
+void arm_rebuild_hflags(CPUARMState *env);
+
+/**
* aa32_vfp_dreg:
* Return a pointer to the Dn register within env in 32-bit mode.
*/