projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5e71a
)
target-sh4: fix negc
author
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 4 Feb 2011 19:19:33 +0000
(20:19 +0100)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 4 Feb 2011 19:19:33 +0000
(20:19 +0100)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/translate.c
patch
|
blob
|
history
diff --git
a/target-sh4/translate.c
b/target-sh4/translate.c
index 35573be5ff2b9425fb4be50ef5d07ff096289f9a..58e9b8f93b39f58003da9607d3aee337c37d0cda 100644
(file)
--- 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), t
0);
+ tcg_gen_setcond
i_i32(TCG_COND_GTU, t1, t0,
0);
tcg_gen_or_i32(cpu_sr, cpu_sr, t1);
- tcg_gen_setcond
i_i32(TCG_COND_GE, t1, t0,
0);
+ tcg_gen_setcond
_i32(TCG_COND_GTU, t1, REG(B11_8), t
0);
tcg_gen_or_i32(cpu_sr, cpu_sr, t1);
tcg_temp_free(t0);
tcg_temp_free(t1);