tcg: Add TranslationBlock.jmp_insn_offset
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 27 Nov 2022 02:54:23 +0000 (18:54 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 17 Jan 2023 20:08:55 +0000 (10:08 -1000)
commit9da6079b2695dcffd8b18890db6cafdf4dc373db
tree40f2a3e7c03b3dc10b3bc3a38aca0e8641cea3c4
parentb7e4afbd9f2f9233a37e021f9e8cce472aecdd64
tcg: Add TranslationBlock.jmp_insn_offset

Stop overloading jmp_target_arg for both offset and address,
depending on TCG_TARGET_HAS_direct_jump.  Instead, add a new
field to hold the jump insn offset and always set the target
address in jmp_target_addr[].  This will allow a tcg backend
to use either direct or indirect depending on displacement.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
include/exec/exec-all.h
tcg/tcg.c