]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Use CPTR_TFP with CPTR_EL3 in fp_exception_el
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 4 Feb 2022 17:04:43 +0000 (17:04 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Feb 2022 10:56:27 +0000 (10:56 +0000)
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>
target/arm/helper.c

index 83bbb446e70118d7db04c37be1e93e412f398d02..b5f80988c900db5d3eac39d64daad2654a8f2d4e 100644 (file)
@@ -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;
     }