mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-20 00:18:46 +00:00
target/arm: Simplify fp_exception_el for user-only
Backports commit 55faa21273151259de38da271c8a2f2b37d6c250 from qemu
This commit is contained in:
parent
11688c4b12
commit
0af3b16b5b
|
@ -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)
|
static inline int fp_exception_el(CPUARMState *env)
|
||||||
{
|
{
|
||||||
|
#ifndef CONFIG_USER_ONLY
|
||||||
int fpen;
|
int fpen;
|
||||||
int cur_el = arm_current_el(env);
|
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 */
|
/* Trap all FP ops to EL3 */
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue