From cc0bce884b9a3cf38b5aa8a711813e7ca1c26cac Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 5 Nov 2013 12:13:44 +1000 Subject: target-i386: Remove gen_movtl_T*_im Propagate the definitions into all users. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-i386/translate.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'target-i386') diff --git a/target-i386/translate.c b/target-i386/translate.c index ade8606..a0fba1b 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -252,16 +252,6 @@ static void gen_update_cc_op(DisasContext *s) } } -static inline void gen_movtl_T0_im(target_ulong val) -{ - tcg_gen_movi_tl(cpu_T[0], val); -} - -static inline void gen_movtl_T1_im(target_ulong val) -{ - tcg_gen_movi_tl(cpu_T[1], val); -} - static inline void gen_op_andl_T0_ffff(void) { tcg_gen_andi_tl(cpu_T[0], cpu_T[0], 0xffff); @@ -5020,7 +5010,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, if (s->dflag == 0) gen_op_andl_T0_ffff(); next_eip = s->pc - s->cs_base; - gen_movtl_T1_im(next_eip); + tcg_gen_movi_tl(cpu_T[1], next_eip); gen_push_T1(s); gen_op_jmp_T0(); gen_eob(s); @@ -5663,7 +5653,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, tmp = cpu_ldq_code(env, s->pc); s->pc += 8; reg = (b & 7) | REX_B(s); - gen_movtl_T0_im(tmp); + tcg_gen_movi_tl(cpu_T[0], tmp); gen_op_mov_reg_T0(MO_64, reg); } else #endif @@ -6637,7 +6627,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, tval &= 0xffff; else if(!CODE64(s)) tval &= 0xffffffff; - gen_movtl_T0_im(next_eip); + tcg_gen_movi_tl(cpu_T[0], next_eip); gen_push_T0(s); gen_jmp(s, tval); } -- cgit v1.1