diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-04-05 12:08:46 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-04-23 08:17:33 +0100 |
commit | 1a057554cc2e3ece8ed166f12a9b85cd5ec4cbe1 (patch) | |
tree | 43d3a482e5fa402db5a1fe5a6428627db8c8ddc7 /tcg/i386 | |
parent | 6dd06214892d71cbbdd25daed7693e58afcb1093 (diff) | |
download | qemu-1a057554cc2e3ece8ed166f12a9b85cd5ec4cbe1.zip qemu-1a057554cc2e3ece8ed166f12a9b85cd5ec4cbe1.tar.gz qemu-1a057554cc2e3ece8ed166f12a9b85cd5ec4cbe1.tar.bz2 |
tcg: Replace if + tcg_abort with tcg_debug_assert
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/i386')
-rw-r--r-- | tcg/i386/tcg-target.c.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tcg/i386/tcg-target.c.inc b/tcg/i386/tcg-target.c.inc index 5a151fe..dfd41c7 100644 --- a/tcg/i386/tcg-target.c.inc +++ b/tcg/i386/tcg-target.c.inc @@ -1369,8 +1369,8 @@ static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) } } -/* Use SMALL != 0 to force a short forward branch. */ -static void tcg_out_jxx(TCGContext *s, int opc, TCGLabel *l, int small) +/* Set SMALL to force a short forward branch. */ +static void tcg_out_jxx(TCGContext *s, int opc, TCGLabel *l, bool small) { int32_t val, val1; @@ -1385,9 +1385,7 @@ static void tcg_out_jxx(TCGContext *s, int opc, TCGLabel *l, int small) } tcg_out8(s, val1); } else { - if (small) { - tcg_abort(); - } + tcg_debug_assert(!small); if (opc == -1) { tcg_out8(s, OPC_JMP_long); tcg_out32(s, val - 5); |