target/arm: Fix typos in trans function prototypes

In several places cut and paste errors meant we were using the wrong
type for the 'arg' struct in trans_ functions called by the
decodetree decoder, because we were using the _sp version of the
struct in the _dp function. These were harmless, because the two
structs were identical and so decodetree made them typedefs of the
same underlying structure (and we'd have had a compile error if they
were not harmless), but we should clean them up anyway.

Backports commit 83655223ac6143a563e981906ce13fd6f2cfbefd from qemu
This commit is contained in:
Peter Maydell 2019-06-25 18:48:32 -05:00 committed by Lioncash
parent 318a1ddf39
commit cfac686c95
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -880,7 +880,7 @@ static bool trans_VMOV_64_sp(DisasContext *s, arg_VMOV_64_sp *a)
return true; return true;
} }
static bool trans_VMOV_64_dp(DisasContext *s, arg_VMOV_64_sp *a) static bool trans_VMOV_64_dp(DisasContext *s, arg_VMOV_64_dp *a)
{ {
TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGContext *tcg_ctx = s->uc->tcg_ctx;
TCGv_i32 tmp; TCGv_i32 tmp;
@ -957,7 +957,7 @@ static bool trans_VLDR_VSTR_sp(DisasContext *s, arg_VLDR_VSTR_sp *a)
return true; return true;
} }
static bool trans_VLDR_VSTR_dp(DisasContext *s, arg_VLDR_VSTR_sp *a) static bool trans_VLDR_VSTR_dp(DisasContext *s, arg_VLDR_VSTR_dp *a)
{ {
TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGContext *tcg_ctx = s->uc->tcg_ctx;
uint32_t offset; uint32_t offset;
@ -1554,7 +1554,7 @@ static void gen_VMLA_dp(TCGContext *tcg_ctx, TCGv_i64 vd, TCGv_i64 vn, TCGv_i64
tcg_temp_free_i64(tcg_ctx, tmp); tcg_temp_free_i64(tcg_ctx, tmp);
} }
static bool trans_VMLA_dp(DisasContext *s, arg_VMLA_sp *a) static bool trans_VMLA_dp(DisasContext *s, arg_VMLA_dp *a)
{ {
return do_vfp_3op_dp(s, gen_VMLA_dp, a->vd, a->vn, a->vm, true); return do_vfp_3op_dp(s, gen_VMLA_dp, a->vd, a->vn, a->vm, true);
} }
@ -1592,7 +1592,7 @@ static void gen_VMLS_dp(TCGContext *tcg_ctx, TCGv_i64 vd, TCGv_i64 vn, TCGv_i64
tcg_temp_free_i64(tcg_ctx, tmp); tcg_temp_free_i64(tcg_ctx, tmp);
} }
static bool trans_VMLS_dp(DisasContext *s, arg_VMLS_sp *a) static bool trans_VMLS_dp(DisasContext *s, arg_VMLS_dp *a)
{ {
return do_vfp_3op_dp(s, gen_VMLS_dp, a->vd, a->vn, a->vm, true); return do_vfp_3op_dp(s, gen_VMLS_dp, a->vd, a->vn, a->vm, true);
} }
@ -1634,7 +1634,7 @@ static void gen_VNMLS_dp(TCGContext *tcg_ctx, TCGv_i64 vd, TCGv_i64 vn, TCGv_i64
tcg_temp_free_i64(tcg_ctx, tmp); tcg_temp_free_i64(tcg_ctx, tmp);
} }
static bool trans_VNMLS_dp(DisasContext *s, arg_VNMLS_sp *a) static bool trans_VNMLS_dp(DisasContext *s, arg_VNMLS_dp *a)
{ {
return do_vfp_3op_dp(s, gen_VNMLS_dp, a->vd, a->vn, a->vm, true); return do_vfp_3op_dp(s, gen_VNMLS_dp, a->vd, a->vn, a->vm, true);
} }
@ -1668,7 +1668,7 @@ static void gen_VNMLA_dp(TCGContext *tcg_ctx, TCGv_i64 vd, TCGv_i64 vn, TCGv_i64
tcg_temp_free_i64(tcg_ctx, tmp); tcg_temp_free_i64(tcg_ctx, tmp);
} }
static bool trans_VNMLA_dp(DisasContext *s, arg_VNMLA_sp *a) static bool trans_VNMLA_dp(DisasContext *s, arg_VNMLA_dp *a)
{ {
return do_vfp_3op_dp(s, gen_VNMLA_dp, a->vd, a->vn, a->vm, true); return do_vfp_3op_dp(s, gen_VNMLA_dp, a->vd, a->vn, a->vm, true);
} }
@ -1678,7 +1678,7 @@ static bool trans_VMUL_sp(DisasContext *s, arg_VMUL_sp *a)
return do_vfp_3op_sp(s, gen_helper_vfp_muls, a->vd, a->vn, a->vm, false); return do_vfp_3op_sp(s, gen_helper_vfp_muls, a->vd, a->vn, a->vm, false);
} }
static bool trans_VMUL_dp(DisasContext *s, arg_VMUL_sp *a) static bool trans_VMUL_dp(DisasContext *s, arg_VMUL_dp *a)
{ {
return do_vfp_3op_dp(s, gen_helper_vfp_muld, a->vd, a->vn, a->vm, false); return do_vfp_3op_dp(s, gen_helper_vfp_muld, a->vd, a->vn, a->vm, false);
} }
@ -1702,7 +1702,7 @@ static void gen_VNMUL_dp(TCGContext *tcg_ctx, TCGv_i64 vd, TCGv_i64 vn, TCGv_i64
gen_helper_vfp_negd(tcg_ctx, vd, vd); gen_helper_vfp_negd(tcg_ctx, vd, vd);
} }
static bool trans_VNMUL_dp(DisasContext *s, arg_VNMUL_sp *a) static bool trans_VNMUL_dp(DisasContext *s, arg_VNMUL_dp *a)
{ {
return do_vfp_3op_dp(s, gen_VNMUL_dp, a->vd, a->vn, a->vm, false); return do_vfp_3op_dp(s, gen_VNMUL_dp, a->vd, a->vn, a->vm, false);
} }
@ -1712,7 +1712,7 @@ static bool trans_VADD_sp(DisasContext *s, arg_VADD_sp *a)
return do_vfp_3op_sp(s, gen_helper_vfp_adds, a->vd, a->vn, a->vm, false); return do_vfp_3op_sp(s, gen_helper_vfp_adds, a->vd, a->vn, a->vm, false);
} }
static bool trans_VADD_dp(DisasContext *s, arg_VADD_sp *a) static bool trans_VADD_dp(DisasContext *s, arg_VADD_dp *a)
{ {
return do_vfp_3op_dp(s, gen_helper_vfp_addd, a->vd, a->vn, a->vm, false); return do_vfp_3op_dp(s, gen_helper_vfp_addd, a->vd, a->vn, a->vm, false);
} }
@ -1722,7 +1722,7 @@ static bool trans_VSUB_sp(DisasContext *s, arg_VSUB_sp *a)
return do_vfp_3op_sp(s, gen_helper_vfp_subs, a->vd, a->vn, a->vm, false); return do_vfp_3op_sp(s, gen_helper_vfp_subs, a->vd, a->vn, a->vm, false);
} }
static bool trans_VSUB_dp(DisasContext *s, arg_VSUB_sp *a) static bool trans_VSUB_dp(DisasContext *s, arg_VSUB_dp *a)
{ {
return do_vfp_3op_dp(s, gen_helper_vfp_subd, a->vd, a->vn, a->vm, false); return do_vfp_3op_dp(s, gen_helper_vfp_subd, a->vd, a->vn, a->vm, false);
} }
@ -1732,7 +1732,7 @@ static bool trans_VDIV_sp(DisasContext *s, arg_VDIV_sp *a)
return do_vfp_3op_sp(s, gen_helper_vfp_divs, a->vd, a->vn, a->vm, false); return do_vfp_3op_sp(s, gen_helper_vfp_divs, a->vd, a->vn, a->vm, false);
} }
static bool trans_VDIV_dp(DisasContext *s, arg_VDIV_sp *a) static bool trans_VDIV_dp(DisasContext *s, arg_VDIV_dp *a)
{ {
return do_vfp_3op_dp(s, gen_helper_vfp_divd, a->vd, a->vn, a->vm, false); return do_vfp_3op_dp(s, gen_helper_vfp_divd, a->vd, a->vn, a->vm, false);
} }
@ -1796,7 +1796,7 @@ static bool trans_VFM_sp(DisasContext *s, arg_VFM_sp *a)
return true; return true;
} }
static bool trans_VFM_dp(DisasContext *s, arg_VFM_sp *a) static bool trans_VFM_dp(DisasContext *s, arg_VFM_dp *a)
{ {
/* /*
* VFNMA : fd = muladd(-fd, fn, fm) * VFNMA : fd = muladd(-fd, fn, fm)
@ -2246,7 +2246,7 @@ static bool trans_VRINTR_sp(DisasContext *s, arg_VRINTR_sp *a)
return true; return true;
} }
static bool trans_VRINTR_dp(DisasContext *s, arg_VRINTR_sp *a) static bool trans_VRINTR_dp(DisasContext *s, arg_VRINTR_dp *a)
{ {
TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGContext *tcg_ctx = s->uc->tcg_ctx;
TCGv_ptr fpst; TCGv_ptr fpst;
@ -2304,7 +2304,7 @@ static bool trans_VRINTZ_sp(DisasContext *s, arg_VRINTZ_sp *a)
return true; return true;
} }
static bool trans_VRINTZ_dp(DisasContext *s, arg_VRINTZ_sp *a) static bool trans_VRINTZ_dp(DisasContext *s, arg_VRINTZ_dp *a)
{ {
TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGContext *tcg_ctx = s->uc->tcg_ctx;
TCGv_ptr fpst; TCGv_ptr fpst;