target/arm: Rename isar_feature_aa32_fpdp_v2

The old name, isar_feature_aa32_fpdp, does not reflect
that the test includes VFPv2. We will introduce another
feature tests for VFPv3.

Backports commit c4ff873583834c8275586914fff714e3ae65dee4 from qemu
This commit is contained in:
Richard Henderson 2020-03-21 23:15:57 -04:00 committed by Lioncash
parent 06b52d6660
commit f73b360f8e
3 changed files with 23 additions and 23 deletions

View file

@ -3343,9 +3343,9 @@ static inline bool isar_feature_aa32_fpshvec(const ARMISARegisters *id)
return FIELD_EX32(id->mvfr0, MVFR0, FPSHVEC) > 0;
}
static inline bool isar_feature_aa32_fpdp(const ARMISARegisters *id)
static inline bool isar_feature_aa32_fpdp_v2(const ARMISARegisters *id)
{
/* Return true if CPU supports double precision floating point */
/* Return true if CPU supports double precision floating point, VFPv2 */
return FIELD_EX32(id->mvfr0, MVFR0, FPDP) > 0;
}

View file

@ -7602,7 +7602,7 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
} else if (cpu_isar_feature(aa32_simd_r32, cpu)) {
gdb_register_coprocessor(cs, vfp_gdb_get_reg, vfp_gdb_set_reg,
35, "arm-vfp3.xml", 0);
} else if (arm_feature(env, ARM_FEATURE_VFP)) {
} else if (cpu_isar_feature(aa32_vfp_simd, cpu)) {
gdb_register_coprocessor(cs, vfp_gdb_get_reg, vfp_gdb_set_reg,
19, "arm-vfp.xml", 0);
}

View file

@ -209,7 +209,7 @@ static bool trans_VSEL(DisasContext *s, arg_VSEL *a)
return false;
}
if (dp && !dc_isar_feature(aa32_fpdp, s)) {
if (dp && !dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -343,7 +343,7 @@ static bool trans_VMINMAXNM(DisasContext *s, arg_VMINMAXNM *a)
return false;
}
if (dp && !dc_isar_feature(aa32_fpdp, s)) {
if (dp && !dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -430,7 +430,7 @@ static bool trans_VRINT(DisasContext *s, arg_VRINT *a)
return false;
}
if (dp && !dc_isar_feature(aa32_fpdp, s)) {
if (dp && !dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -494,7 +494,7 @@ static bool trans_VCVT(DisasContext *s, arg_VCVT *a)
return false;
}
if (dp && !dc_isar_feature(aa32_fpdp, s)) {
if (dp && !dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -1334,7 +1334,7 @@ static bool do_vfp_3op_dp(DisasContext *s, VFPGen3OpDPFn *fn,
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -1490,7 +1490,7 @@ static bool do_vfp_2op_dp(DisasContext *s, VFPGen2OpDPFn *fn, int vd, int vm)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -1851,7 +1851,7 @@ static bool trans_VFM_dp(DisasContext *s, arg_VFM_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -1952,7 +1952,7 @@ static bool trans_VMOV_imm_dp(DisasContext *s, arg_VMOV_imm_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2098,7 +2098,7 @@ static bool trans_VCMP_dp(DisasContext *s, arg_VCMP_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2173,7 +2173,7 @@ static bool trans_VCVT_f64_f16(DisasContext *s, arg_VCVT_f64_f16 *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2241,7 +2241,7 @@ static bool trans_VCVT_f16_f64(DisasContext *s, arg_VCVT_f16_f64 *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2303,7 +2303,7 @@ static bool trans_VRINTR_dp(DisasContext *s, arg_VRINTR_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2366,7 +2366,7 @@ static bool trans_VRINTZ_dp(DisasContext *s, arg_VRINTZ_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2427,7 +2427,7 @@ static bool trans_VRINTX_dp(DisasContext *s, arg_VRINTX_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2456,7 +2456,7 @@ static bool trans_VCVT_sp(DisasContext *s, arg_VCVT_sp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2485,7 +2485,7 @@ static bool trans_VCVT_dp(DisasContext *s, arg_VCVT_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2541,7 +2541,7 @@ static bool trans_VCVT_int_dp(DisasContext *s, arg_VCVT_int_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2582,7 +2582,7 @@ static bool trans_VJCVT(DisasContext *s, arg_VJCVT *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2677,7 +2677,7 @@ static bool trans_VCVT_fix_dp(DisasContext *s, arg_VCVT_fix_dp *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}
@ -2775,7 +2775,7 @@ static bool trans_VCVT_dp_int(DisasContext *s, arg_VCVT_dp_int *a)
return false;
}
if (!dc_isar_feature(aa32_fpdp, s)) {
if (!dc_isar_feature(aa32_fpdp_v2, s)) {
return false;
}