summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-02-04 20:19:33 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-02-04 20:19:33 +0100
commit7026259f79ffc85ceaaaeee32df518ea96863ee4 (patch)
tree5a1201693777c34948ed025212337cb677863eb5
parent1f5e71a8e6b24dce74b156472ff9253b9bd33a11 (diff)
downloadqemu-7026259f79ffc85ceaaaeee32df518ea96863ee4.tar.gz
qemu-7026259f79ffc85ceaaaeee32df518ea96863ee4.tar.bz2
qemu-7026259f79ffc85ceaaaeee32df518ea96863ee4.zip
target-sh4: fix negc
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--target-sh4/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 35573be5ff..58e9b8f93b 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -960,9 +960,9 @@ static void _decode_opc(DisasContext * ctx)
tcg_gen_andi_i32(t1, cpu_sr, SR_T);
tcg_gen_sub_i32(REG(B11_8), t0, t1);
tcg_gen_andi_i32(cpu_sr, cpu_sr, ~SR_T);
- tcg_gen_setcond_i32(TCG_COND_GE, t1, REG(B11_8), t0);
+ tcg_gen_setcondi_i32(TCG_COND_GTU, t1, t0, 0);
tcg_gen_or_i32(cpu_sr, cpu_sr, t1);
- tcg_gen_setcondi_i32(TCG_COND_GE, t1, t0, 0);
+ tcg_gen_setcond_i32(TCG_COND_GTU, t1, REG(B11_8), t0);
tcg_gen_or_i32(cpu_sr, cpu_sr, t1);
tcg_temp_free(t0);
tcg_temp_free(t1);