diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-11-26 15:09:00 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-01-17 09:55:13 -1000 |
commit | 7f83167c612438bb46ef01b5b23f7b2a0827bdc4 (patch) | |
tree | 5eaacc6aae3a5b8b19fb5f53cfe6cb66655de88c /tcg/mips | |
parent | 1ce41e044391120e8dd74fc7c9119747fb072632 (diff) | |
download | qemu-7f83167c612438bb46ef01b5b23f7b2a0827bdc4.zip qemu-7f83167c612438bb46ef01b5b23f7b2a0827bdc4.tar.gz qemu-7f83167c612438bb46ef01b5b23f7b2a0827bdc4.tar.bz2 |
tcg: Replace asserts on tcg_jmp_insn_offset
Test TCG_TARGET_HAS_direct_jump instead of testing an
implementation pointer.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/mips')
-rw-r--r-- | tcg/mips/tcg-target.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/mips/tcg-target.c.inc b/tcg/mips/tcg-target.c.inc index 52881ab..02887d7 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -1987,7 +1987,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, switch (opc) { case INDEX_op_goto_tb: /* indirect jump method */ - tcg_debug_assert(s->tb_jmp_insn_offset == 0); + qemu_build_assert(!TCG_TARGET_HAS_direct_jump); tcg_out_ld(s, TCG_TYPE_PTR, TCG_TMP0, TCG_REG_ZERO, (uintptr_t)(s->tb_jmp_target_addr + a0)); tcg_out_opc_reg(s, OPC_JR, 0, TCG_TMP0, 0); |