From 0af3b16b5bdb71097fffee10a3b049626a81e956 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 6 Mar 2018 10:37:26 -0500 Subject: [PATCH] target/arm: Simplify fp_exception_el for user-only Backports commit 55faa21273151259de38da271c8a2f2b37d6c250 from qemu --- qemu/target/arm/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index 040d0c2a..1fd6f6e1 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -10833,6 +10833,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); @@ -10889,7 +10890,7 @@ static inline int fp_exception_el(CPUARMState *env) /* Trap all FP ops to EL3 */ return 3; } - +#endif return 0; }