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/tcg.c | |
| parent | 6dd06214892d71cbbdd25daed7693e58afcb1093 (diff) | |
| download | focaccia-qemu-1a057554cc2e3ece8ed166f12a9b85cd5ec4cbe1.tar.gz focaccia-qemu-1a057554cc2e3ece8ed166f12a9b85cd5ec4cbe1.zip | |
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/tcg.c')
| -rw-r--r-- | tcg/tcg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c index bb52bc060b..100f81edb2 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1174,9 +1174,7 @@ static TCGTemp *tcg_global_reg_new_internal(TCGContext *s, TCGType type, { TCGTemp *ts; - if (TCG_TARGET_REG_BITS == 32 && type != TCG_TYPE_I32) { - tcg_abort(); - } + tcg_debug_assert(TCG_TARGET_REG_BITS == 64 || type == TCG_TYPE_I32); ts = tcg_global_alloc(s); ts->base_type = type; |