aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-02-04 17:04:43 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-02-08 10:56:27 +0000
commita7b66ada6e88aa9a9f420f1116569b2df47fa1ab (patch)
tree1225616135b7f1764c32f05b50b53f0c580b0b1c
parentd5a6fa2dcf9ea66cc5d0852ebeb4861423758be0 (diff)
downloadqemu-a7b66ada6e88aa9a9f420f1116569b2df47fa1ab.zip
qemu-a7b66ada6e88aa9a9f420f1116569b2df47fa1ab.tar.gz
qemu-a7b66ada6e88aa9a9f420f1116569b2df47fa1ab.tar.bz2
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>
-rw-r--r--target/arm/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index 83bbb44..b5f8098 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -13037,7 +13037,7 @@ int fp_exception_el(CPUARMState *env, int cur_el)
}
/* 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 */
return 3;
}