OSDN Git Service

tcg: Introduce set_jmp_insn_offset
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 26 Nov 2022 23:18:44 +0000 (15:18 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 17 Jan 2023 19:55:13 +0000 (09:55 -1000)
commitb52a2c03b7d36694c21d70bcd46d68aaba5b0840
treed00737c5c74f17be63481174ff1c72c4ecde7e8f
parent7f83167c612438bb46ef01b5b23f7b2a0827bdc4
tcg: Introduce set_jmp_insn_offset

Similar to the existing set_jmp_reset_offset.  Move any assert for
TCG_TARGET_HAS_direct_jump into the new function (which now cannot
be build-time).  Will be unused if TCG_TARGET_HAS_direct_jump is
constant 0, but we can't test for constant in the preprocessor,
so just mark it G_GNUC_UNUSED.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc
tcg/i386/tcg-target.c.inc
tcg/loongarch64/tcg-target.c.inc
tcg/ppc/tcg-target.c.inc
tcg/s390x/tcg-target.c.inc
tcg/sparc64/tcg-target.c.inc
tcg/tcg.c