accel/tcg: Introduce tb_pc and log_pc
commitfbf59aad178d98afe193fa872a2d880266a75269
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 15 Aug 2022 20:16:06 +0000 (15 15:16 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Oct 2022 19:13:12 +0000 (4 12:13 -0700)
tree05d5fb4a7118f1a70eb0a09a1269f859f822502e
parente4fdf9df5b1c2aa427de796bea973520027ddd15
accel/tcg: Introduce tb_pc and log_pc

The availability of tb->pc will shortly be conditional.
Introduce accessor functions to minimize ifdefs.

Pass around a known pc to places like tcg_gen_code,
where the caller must already have the value.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
21 files changed:
accel/tcg/cpu-exec.c
accel/tcg/internal.h
accel/tcg/translate-all.c
include/exec/exec-all.h
include/tcg/tcg.h
target/arm/cpu.c
target/avr/cpu.c
target/hexagon/cpu.c
target/hppa/cpu.c
target/i386/tcg/tcg-cpu.c
target/loongarch/cpu.c
target/microblaze/cpu.c
target/mips/tcg/exception.c
target/mips/tcg/sysemu/special_helper.c
target/openrisc/cpu.c
target/riscv/cpu.c
target/rx/cpu.c
target/sh4/cpu.c
target/sparc/cpu.c
target/tricore/cpu.c
tcg/tcg.c