Commit 34bea4ed authored by Peter Maydell's avatar Peter Maydell
Browse files

target/arm: Check for dp support for dp VFM, not sp



In commit 1120827f 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: 1120827f
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-id: 20190617160130.3207-1-peter.maydell@linaro.org
parent cdfaa272
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
    }