aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-01-18 20:54:37 -0800
committerPeter Maydell <peter.maydell@linaro.org>2018-01-22 14:02:18 +0000
commit34d312acccb137947dc266617fb9b0894606c71d (patch)
treee0ed0a6fa0ef8a298f7bd2e0e79566dbfb0d5274
parent0a4ae1651b66e3b22fac5e06b74f471afb0cf1bc (diff)
downloadqemu-arm-target-arm.next.tar.gz
target/arm: Simplify fp_exception_el for user-onlytarget-arm.next
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180119045438.28582-16-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index e0c139d..bfce096 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -11627,6 +11627,7 @@ uint32_t HELPER(crc32c)(uint32_t acc, uint32_t val, uint32_t bytes)
*/
static inline int fp_exception_el(CPUARMState *env)
{
+#ifndef CONFIG_USER_ONLY
int fpen;
int cur_el = arm_current_el(env);
@@ -11683,7 +11684,7 @@ static inline int fp_exception_el(CPUARMState *env)
/* Trap all FP ops to EL3 */
return 3;
}
-
+#endif
return 0;
}