target/arm: Simplify fp_exception_el for user-only

Backports commit 55faa21273151259de38da271c8a2f2b37d6c250 from qemu
This commit is contained in:
Richard Henderson 2018-03-06 10:37:26 -05:00 committed by Lioncash
parent 11688c4b12
commit 0af3b16b5b
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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;
}