target/i386/translate: Remove unnecessary (and incorrect) pointer casts from some gen_op functions

These used to be necessary, as the relevant variables used to be void*,
thus making the casts necessary. Given they were changed to concrete
types over the course of backporting, these are unnecessary.
This commit is contained in:
Lioncash 2018-09-03 10:44:53 -04:00
parent 73c7c9aadc
commit dce6dde483
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -759,7 +759,7 @@ static inline void gen_movs(DisasContext *s, TCGMemOp ot)
static void gen_op_update1_cc(TCGContext *s)
{
TCGv cpu_cc_dst = *(TCGv *)s->cpu_cc_dst;
TCGv cpu_cc_dst = s->cpu_cc_dst;
TCGv cpu_T0 = s->cpu_T0;
tcg_gen_mov_tl(s, cpu_cc_dst, cpu_T0);
@ -767,8 +767,8 @@ static void gen_op_update1_cc(TCGContext *s)
static void gen_op_update2_cc(TCGContext *s)
{
TCGv cpu_cc_dst = *(TCGv *)s->cpu_cc_dst;
TCGv cpu_cc_src = *(TCGv *)s->cpu_cc_src;
TCGv cpu_cc_dst = s->cpu_cc_dst;
TCGv cpu_cc_src = s->cpu_cc_src;
TCGv cpu_T0 = s->cpu_T0;
TCGv cpu_T1 = s->cpu_T1;
@ -778,9 +778,9 @@ static void gen_op_update2_cc(TCGContext *s)
static void gen_op_update3_cc(TCGContext *s, TCGv reg)
{
TCGv cpu_cc_dst = *(TCGv *)s->cpu_cc_dst;
TCGv cpu_cc_src = *(TCGv *)s->cpu_cc_src;
TCGv cpu_cc_src2 = *(TCGv *)s->cpu_cc_src2;
TCGv cpu_cc_dst = s->cpu_cc_dst;
TCGv cpu_cc_src = s->cpu_cc_src;
TCGv cpu_cc_src2 = s->cpu_cc_src2;
TCGv cpu_T0 = s->cpu_T0;
TCGv cpu_T1 = s->cpu_T1;
@ -791,7 +791,7 @@ static void gen_op_update3_cc(TCGContext *s, TCGv reg)
static inline void gen_op_testl_T0_T1_cc(TCGContext *s)
{
TCGv cpu_cc_dst = *(TCGv *)s->cpu_cc_dst;
TCGv cpu_cc_dst = s->cpu_cc_dst;
TCGv cpu_T0 = s->cpu_T0;
TCGv cpu_T1 = s->cpu_T1;
@ -800,9 +800,9 @@ static inline void gen_op_testl_T0_T1_cc(TCGContext *s)
static void gen_op_update_neg_cc(TCGContext *s)
{
TCGv cpu_cc_dst = *(TCGv *)s->cpu_cc_dst;
TCGv cpu_cc_src = *(TCGv *)s->cpu_cc_src;
TCGv cpu_cc_srcT = *(TCGv *)s->cpu_cc_srcT;
TCGv cpu_cc_dst = s->cpu_cc_dst;
TCGv cpu_cc_src = s->cpu_cc_src;
TCGv cpu_cc_srcT = s->cpu_cc_srcT;
TCGv cpu_T0 = s->cpu_T0;
tcg_gen_mov_tl(s, cpu_cc_dst, cpu_T0);