target/arm: Check for dp support for dp VFM, not sp
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Jun 2019 16:01:30 +0000 (17:01 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Jun 2019 13:41:29 +0000 (14:41 +0100)
In commit 1120827fa182f0e7622 we accidentally put the
"UNDEF unless FPU has double-precision support" check in
the single-precision VFM function. Put it in the dp
function where it belongs.

Fixes: 1120827fa182f0e7622
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190617160130.3207-1-peter.maydell@linaro.org

target/arm/translate-vfp.inc.c

index 348173d6026ca30ae4dbe8c62c6cc5c57343ed90..deaddb04421cc5656ee8d94eedd9b6af5317403c 100644 (file)
@@ -1771,10 +1771,6 @@ static bool trans_VFM_sp(DisasContext *s, arg_VFM_sp *a)
         return false;
     }
 
-    if (!dc_isar_feature(aa32_fpdp, s)) {
-        return false;
-    }
-
     if (!vfp_access_check(s)) {
         return true;
     }
@@ -1838,6 +1834,10 @@ static bool trans_VFM_dp(DisasContext *s, arg_VFM_dp *a)
         return false;
     }
 
+    if (!dc_isar_feature(aa32_fpdp, s)) {
+        return false;
+    }
+
     if (!vfp_access_check(s)) {
         return true;
     }