mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target-sh4: fix negc
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user