mirror of https://github.com/xemu-project/xemu.git
target/arm: Use CPTR_TFP with CPTR_EL3 in fp_exception_el
Use the named bit rather than a bare extract32. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Zenghui Yu <yuzenghui@huawei.com> Message-id: 20220127063428.30212-5-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d5a6fa2dcf
commit
a7b66ada6e
|
@ -13037,7 +13037,7 @@ int fp_exception_el(CPUARMState *env, int cur_el)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CPTR_EL3 : present in v8 */
|
/* CPTR_EL3 : present in v8 */
|
||||||
if (extract32(env->cp15.cptr_el[3], 10, 1)) {
|
if (env->cp15.cptr_el[3] & CPTR_TFP) {
|
||||||
/* Trap all FP ops to EL3 */
|
/* Trap all FP ops to EL3 */
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue