• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂0e13ba7889432c5e2f1bdb1b25e7076ca1b1dcba (tree)
時間2020-02-22 01:07:03
作者Richard Henderson <richard.henderson@lina...>
CommiterPeter Maydell

Log Message

target/arm: Rename isar_feature_aa32_simd_r32

The old name, isar_feature_aa32_fp_d32, does not reflect
the MVFR0 field name, SIMDReg.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200214181547.21408-3-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: wrapped one long line]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Change Summary

差異

--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -3450,7 +3450,7 @@ static inline bool isar_feature_aa32_fp16_arith(const ARMISARegisters *id)
34503450 return FIELD_EX64(id->id_aa64pfr0, ID_AA64PFR0, FP) == 1;
34513451 }
34523452
3453-static inline bool isar_feature_aa32_fp_d32(const ARMISARegisters *id)
3453+static inline bool isar_feature_aa32_simd_r32(const ARMISARegisters *id)
34543454 {
34553455 /* Return true if D16-D31 are implemented */
34563456 return FIELD_EX32(id->mvfr0, MVFR0, SIMDREG) >= 2;
--- a/target/arm/translate-vfp.inc.c
+++ b/target/arm/translate-vfp.inc.c
@@ -201,7 +201,7 @@ static bool trans_VSEL(DisasContext *s, arg_VSEL *a)
201201 }
202202
203203 /* UNDEF accesses to D16-D31 if they don't exist */
204- if (dp && !dc_isar_feature(aa32_fp_d32, s) &&
204+ if (dp && !dc_isar_feature(aa32_simd_r32, s) &&
205205 ((a->vm | a->vn | a->vd) & 0x10)) {
206206 return false;
207207 }
@@ -334,7 +334,7 @@ static bool trans_VMINMAXNM(DisasContext *s, arg_VMINMAXNM *a)
334334 }
335335
336336 /* UNDEF accesses to D16-D31 if they don't exist */
337- if (dp && !dc_isar_feature(aa32_fp_d32, s) &&
337+ if (dp && !dc_isar_feature(aa32_simd_r32, s) &&
338338 ((a->vm | a->vn | a->vd) & 0x10)) {
339339 return false;
340340 }
@@ -420,7 +420,7 @@ static bool trans_VRINT(DisasContext *s, arg_VRINT *a)
420420 }
421421
422422 /* UNDEF accesses to D16-D31 if they don't exist */
423- if (dp && !dc_isar_feature(aa32_fp_d32, s) &&
423+ if (dp && !dc_isar_feature(aa32_simd_r32, s) &&
424424 ((a->vm | a->vd) & 0x10)) {
425425 return false;
426426 }
@@ -484,7 +484,7 @@ static bool trans_VCVT(DisasContext *s, arg_VCVT *a)
484484 }
485485
486486 /* UNDEF accesses to D16-D31 if they don't exist */
487- if (dp && !dc_isar_feature(aa32_fp_d32, s) && (a->vm & 0x10)) {
487+ if (dp && !dc_isar_feature(aa32_simd_r32, s) && (a->vm & 0x10)) {
488488 return false;
489489 }
490490
@@ -556,7 +556,7 @@ static bool trans_VMOV_to_gp(DisasContext *s, arg_VMOV_to_gp *a)
556556 uint32_t offset;
557557
558558 /* UNDEF accesses to D16-D31 if they don't exist */
559- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vn & 0x10)) {
559+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vn & 0x10)) {
560560 return false;
561561 }
562562
@@ -615,7 +615,7 @@ static bool trans_VMOV_from_gp(DisasContext *s, arg_VMOV_from_gp *a)
615615 uint32_t offset;
616616
617617 /* UNDEF accesses to D16-D31 if they don't exist */
618- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vn & 0x10)) {
618+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vn & 0x10)) {
619619 return false;
620620 }
621621
@@ -662,7 +662,7 @@ static bool trans_VDUP(DisasContext *s, arg_VDUP *a)
662662 }
663663
664664 /* UNDEF accesses to D16-D31 if they don't exist */
665- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vn & 0x10)) {
665+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vn & 0x10)) {
666666 return false;
667667 }
668668
@@ -912,7 +912,7 @@ static bool trans_VMOV_64_dp(DisasContext *s, arg_VMOV_64_dp *a)
912912 */
913913
914914 /* UNDEF accesses to D16-D31 if they don't exist */
915- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vm & 0x10)) {
915+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vm & 0x10)) {
916916 return false;
917917 }
918918
@@ -978,7 +978,7 @@ static bool trans_VLDR_VSTR_dp(DisasContext *s, arg_VLDR_VSTR_dp *a)
978978 TCGv_i64 tmp;
979979
980980 /* UNDEF accesses to D16-D31 if they don't exist */
981- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vd & 0x10)) {
981+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd & 0x10)) {
982982 return false;
983983 }
984984
@@ -1101,7 +1101,7 @@ static bool trans_VLDM_VSTM_dp(DisasContext *s, arg_VLDM_VSTM_dp *a)
11011101 }
11021102
11031103 /* UNDEF accesses to D16-D31 if they don't exist */
1104- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vd + n) > 16) {
1104+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd + n) > 16) {
11051105 return false;
11061106 }
11071107
@@ -1309,7 +1309,7 @@ static bool do_vfp_3op_dp(DisasContext *s, VFPGen3OpDPFn *fn,
13091309 TCGv_ptr fpst;
13101310
13111311 /* UNDEF accesses to D16-D31 if they don't exist */
1312- if (!dc_isar_feature(aa32_fp_d32, s) && ((vd | vn | vm) & 0x10)) {
1312+ if (!dc_isar_feature(aa32_simd_r32, s) && ((vd | vn | vm) & 0x10)) {
13131313 return false;
13141314 }
13151315
@@ -1458,7 +1458,7 @@ static bool do_vfp_2op_dp(DisasContext *s, VFPGen2OpDPFn *fn, int vd, int vm)
14581458 TCGv_i64 f0, fd;
14591459
14601460 /* UNDEF accesses to D16-D31 if they don't exist */
1461- if (!dc_isar_feature(aa32_fp_d32, s) && ((vd | vm) & 0x10)) {
1461+ if (!dc_isar_feature(aa32_simd_r32, s) && ((vd | vm) & 0x10)) {
14621462 return false;
14631463 }
14641464
@@ -1822,7 +1822,8 @@ static bool trans_VFM_dp(DisasContext *s, arg_VFM_dp *a)
18221822 }
18231823
18241824 /* UNDEF accesses to D16-D31 if they don't exist. */
1825- if (!dc_isar_feature(aa32_fp_d32, s) && ((a->vd | a->vn | a->vm) & 0x10)) {
1825+ if (!dc_isar_feature(aa32_simd_r32, s) &&
1826+ ((a->vd | a->vn | a->vm) & 0x10)) {
18261827 return false;
18271828 }
18281829
@@ -1921,7 +1922,7 @@ static bool trans_VMOV_imm_dp(DisasContext *s, arg_VMOV_imm_dp *a)
19211922 vd = a->vd;
19221923
19231924 /* UNDEF accesses to D16-D31 if they don't exist. */
1924- if (!dc_isar_feature(aa32_fp_d32, s) && (vd & 0x10)) {
1925+ if (!dc_isar_feature(aa32_simd_r32, s) && (vd & 0x10)) {
19251926 return false;
19261927 }
19271928
@@ -2065,7 +2066,7 @@ static bool trans_VCMP_dp(DisasContext *s, arg_VCMP_dp *a)
20652066 }
20662067
20672068 /* UNDEF accesses to D16-D31 if they don't exist. */
2068- if (!dc_isar_feature(aa32_fp_d32, s) && ((a->vd | a->vm) & 0x10)) {
2069+ if (!dc_isar_feature(aa32_simd_r32, s) && ((a->vd | a->vm) & 0x10)) {
20692070 return false;
20702071 }
20712072
@@ -2138,7 +2139,7 @@ static bool trans_VCVT_f64_f16(DisasContext *s, arg_VCVT_f64_f16 *a)
21382139 }
21392140
21402141 /* UNDEF accesses to D16-D31 if they don't exist. */
2141- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vd & 0x10)) {
2142+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd & 0x10)) {
21422143 return false;
21432144 }
21442145
@@ -2204,7 +2205,7 @@ static bool trans_VCVT_f16_f64(DisasContext *s, arg_VCVT_f16_f64 *a)
22042205 }
22052206
22062207 /* UNDEF accesses to D16-D31 if they don't exist. */
2207- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vm & 0x10)) {
2208+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vm & 0x10)) {
22082209 return false;
22092210 }
22102211
@@ -2264,7 +2265,7 @@ static bool trans_VRINTR_dp(DisasContext *s, arg_VRINTR_dp *a)
22642265 }
22652266
22662267 /* UNDEF accesses to D16-D31 if they don't exist. */
2267- if (!dc_isar_feature(aa32_fp_d32, s) && ((a->vd | a->vm) & 0x10)) {
2268+ if (!dc_isar_feature(aa32_simd_r32, s) && ((a->vd | a->vm) & 0x10)) {
22682269 return false;
22692270 }
22702271
@@ -2325,7 +2326,7 @@ static bool trans_VRINTZ_dp(DisasContext *s, arg_VRINTZ_dp *a)
23252326 }
23262327
23272328 /* UNDEF accesses to D16-D31 if they don't exist. */
2328- if (!dc_isar_feature(aa32_fp_d32, s) && ((a->vd | a->vm) & 0x10)) {
2329+ if (!dc_isar_feature(aa32_simd_r32, s) && ((a->vd | a->vm) & 0x10)) {
23292330 return false;
23302331 }
23312332
@@ -2384,7 +2385,7 @@ static bool trans_VRINTX_dp(DisasContext *s, arg_VRINTX_dp *a)
23842385 }
23852386
23862387 /* UNDEF accesses to D16-D31 if they don't exist. */
2387- if (!dc_isar_feature(aa32_fp_d32, s) && ((a->vd | a->vm) & 0x10)) {
2388+ if (!dc_isar_feature(aa32_simd_r32, s) && ((a->vd | a->vm) & 0x10)) {
23882389 return false;
23892390 }
23902391
@@ -2412,7 +2413,7 @@ static bool trans_VCVT_sp(DisasContext *s, arg_VCVT_sp *a)
24122413 TCGv_i32 vm;
24132414
24142415 /* UNDEF accesses to D16-D31 if they don't exist. */
2415- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vd & 0x10)) {
2416+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd & 0x10)) {
24162417 return false;
24172418 }
24182419
@@ -2440,7 +2441,7 @@ static bool trans_VCVT_dp(DisasContext *s, arg_VCVT_dp *a)
24402441 TCGv_i32 vd;
24412442
24422443 /* UNDEF accesses to D16-D31 if they don't exist. */
2443- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vm & 0x10)) {
2444+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vm & 0x10)) {
24442445 return false;
24452446 }
24462447
@@ -2494,7 +2495,7 @@ static bool trans_VCVT_int_dp(DisasContext *s, arg_VCVT_int_dp *a)
24942495 TCGv_ptr fpst;
24952496
24962497 /* UNDEF accesses to D16-D31 if they don't exist. */
2497- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vd & 0x10)) {
2498+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd & 0x10)) {
24982499 return false;
24992500 }
25002501
@@ -2534,7 +2535,7 @@ static bool trans_VJCVT(DisasContext *s, arg_VJCVT *a)
25342535 }
25352536
25362537 /* UNDEF accesses to D16-D31 if they don't exist. */
2537- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vm & 0x10)) {
2538+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vm & 0x10)) {
25382539 return false;
25392540 }
25402541
@@ -2627,7 +2628,7 @@ static bool trans_VCVT_fix_dp(DisasContext *s, arg_VCVT_fix_dp *a)
26272628 }
26282629
26292630 /* UNDEF accesses to D16-D31 if they don't exist. */
2630- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vd & 0x10)) {
2631+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd & 0x10)) {
26312632 return false;
26322633 }
26332634
@@ -2723,7 +2724,7 @@ static bool trans_VCVT_dp_int(DisasContext *s, arg_VCVT_dp_int *a)
27232724 TCGv_ptr fpst;
27242725
27252726 /* UNDEF accesses to D16-D31 if they don't exist. */
2726- if (!dc_isar_feature(aa32_fp_d32, s) && (a->vm & 0x10)) {
2727+ if (!dc_isar_feature(aa32_simd_r32, s) && (a->vm & 0x10)) {
27272728 return false;
27282729 }
27292730