]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Convert jumps to labels to TCG
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 21 Mar 2008 17:59:39 +0000 (17:59 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 21 Mar 2008 17:59:39 +0000 (17:59 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4094 c046a42c-6fe2-441c-8c8c-71466251a162

target-sparc/op.c
target-sparc/translate.c

index 99b9942e001b76ebea81b6e121d3e43129118021..cc4aa14acbc5e7454381859eb450cd52edd3b31d 100644 (file)
 #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)     \
     {                                                   \
index 0295fcd15e011a556530ddafa83dad510605ed08..69ce4cbfffedb8675b2896819d1abbf523fdccc0 100644 (file)
@@ -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);