Skip to contentSkip to conversation

[4355] Fix MIPS64 branches.

Qemu-devel Thiemo Seufer 1 participant 1 message May 6, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4355

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4355
Author:   ths
Date:     2008-05-06 10:03:16 +0000 (Tue, 06 May 2008)

Log Message:
-----------
Fix MIPS64 branches. Funny how this survived testing.

Modified Paths:
--------------
trunk/target-mips/translate.c

Modified: trunk/target-mips/translate.c
===================================================================

target-mips/translate.c +1 -1
@@ -1763,7 +1763,7 @@
     int r_tmp = tcg_temp_new(TCG_TYPE_TL);
 
     tcg_gen_ld_tl(r_tmp, cpu_env, offsetof(CPUState, bcond));
-    tcg_gen_brcond_tl(TCG_COND_NE, r_tmp, tcg_const_i32(0), label);
+    tcg_gen_brcond_tl(TCG_COND_NE, r_tmp, tcg_const_tl(0), label);
 }
 
 /* Branches (before delay slot) */