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/loongarch64 | |
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/loongarch64')
-rw-r--r-- | tcg/loongarch64/tcg-target.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-target.c.inc index 29e4bfc..5dd645f 100644 --- a/tcg/loongarch64/tcg-target.c.inc +++ b/tcg/loongarch64/tcg-target.c.inc @@ -1090,7 +1090,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, switch (opc) { case INDEX_op_goto_tb: - tcg_debug_assert(s->tb_jmp_insn_offset != NULL); + qemu_build_assert(TCG_TARGET_HAS_direct_jump); /* * Ensure that patch area is 8-byte aligned so that an * atomic write can be used to patch the target address. |