On 6/4/21 8:52 AM, Alex Bennée wrote:
From: Claudio Fontana <cfont...@suse.de>
Signed-off-by: Claudio Fontana <cfont...@suse.de>
Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
---
target/arm/cpu-sysemu.c | 100 ++++++++++++++++++++++++++++++++++++++++
target/arm/cpu-user.c | 5 ++
target/arm/tcg/helper.c | 100 ----------------------------------------
3 files changed, 105 insertions(+), 100 deletions(-)
diff --git a/target/arm/cpu-sysemu.c b/target/arm/cpu-sysemu.c
index 7cc721fe68..128616d90d 100644
--- a/target/arm/cpu-sysemu.c
+++ b/target/arm/cpu-sysemu.c
@@ -410,3 +410,103 @@ int sve_exception_el(CPUARMState *env, int el)
}
return 0;
}
+
+/*
+ * Return the exception level to which FP-disabled exceptions should
+ * be taken, or 0 if FP is enabled.
+ */
+int fp_exception_el(CPUARMState *env, int cur_el)
+{
+#ifndef CONFIG_USER_ONLY
This is cpu-sysemu.c, you can remove the ifdefs. Otherwise,
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~