diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-21 17:59:39 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-21 17:59:39 +0000 |
commit | 06b3e1b3a9d2e252b1921cefe60af4513a21fe4a (patch) | |
tree | c4dd45492871e8aba82a1b752801671106f768cc /target-sparc | |
parent | fb50d4134d6533f4151b3dd1faf1b8bad83639d1 (diff) |
Convert jumps to labels to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4094 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/op.c | 5 | ||||
-rw-r--r-- | target-sparc/translate.c | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c index 99b9942e00..cc4aa14acb 100644 --- a/target-sparc/op.c +++ b/target-sparc/op.c @@ -37,11 +37,6 @@ #endif #endif -void OPPROTO op_jmp_label(void) -{ - GOTO_LABEL_PARAM(1); -} - #define CHECK_ALIGN_OP(align) \ void OPPROTO op_check_align_T0_ ## align (void) \ { \ diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 0295fcd15e..69ce4cbfff 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -750,7 +750,7 @@ static inline void gen_op_mulscc_T1_T0(void) tcg_gen_andi_i32(r_temp, r_temp, 0x1); tcg_gen_brcond_i32(TCG_COND_EQ, r_temp, tcg_const_tl(0), l1); tcg_gen_mov_tl(cpu_cc_src2, cpu_T[1]); - gen_op_jmp_label(l2); + tcg_gen_br(l2); gen_set_label(l1); tcg_gen_movi_tl(cpu_cc_src2, 0); gen_set_label(l2); @@ -863,7 +863,7 @@ static inline void gen_op_sdivx_T1_T0(void) tcg_gen_brcond_i64(TCG_COND_NE, cpu_T[0], tcg_const_i64(INT64_MIN), l1); tcg_gen_brcond_i64(TCG_COND_NE, cpu_T[1], tcg_const_i64(-1), l1); tcg_gen_movi_i64(cpu_T[0], INT64_MIN); - gen_op_jmp_label(l2); + tcg_gen_br(l2); gen_set_label(l1); tcg_gen_div_i64(cpu_T[0], cpu_T[0], cpu_T[1]); gen_set_label(l2); @@ -1205,7 +1205,7 @@ static inline void gen_generic_branch(target_ulong npc1, target_ulong npc2, tcg_gen_brcond_tl(TCG_COND_EQ, r_cond, tcg_const_tl(0), l1); gen_movl_npc_im(npc1); - gen_op_jmp_label(l2); + tcg_gen_br(l2); gen_set_label(l1); gen_movl_npc_im(npc2); |