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>
Showing
- accel/tcg/cpu-exec.c 25 additions, 21 deletionsaccel/tcg/cpu-exec.c
- accel/tcg/internal.h 6 additions, 0 deletionsaccel/tcg/internal.h
- accel/tcg/translate-all.c 21 additions, 16 deletionsaccel/tcg/translate-all.c
- include/exec/exec-all.h 6 additions, 0 deletionsinclude/exec/exec-all.h
- include/tcg/tcg.h 1 addition, 1 deletioninclude/tcg/tcg.h
- target/arm/cpu.c 2 additions, 2 deletionstarget/arm/cpu.c
- target/avr/cpu.c 1 addition, 1 deletiontarget/avr/cpu.c
- target/hexagon/cpu.c 1 addition, 1 deletiontarget/hexagon/cpu.c
- target/hppa/cpu.c 2 additions, 2 deletionstarget/hppa/cpu.c
- target/i386/tcg/tcg-cpu.c 1 addition, 1 deletiontarget/i386/tcg/tcg-cpu.c
- target/loongarch/cpu.c 1 addition, 1 deletiontarget/loongarch/cpu.c
- target/microblaze/cpu.c 1 addition, 1 deletiontarget/microblaze/cpu.c
- target/mips/tcg/exception.c 1 addition, 1 deletiontarget/mips/tcg/exception.c
- target/mips/tcg/sysemu/special_helper.c 1 addition, 1 deletiontarget/mips/tcg/sysemu/special_helper.c
- target/openrisc/cpu.c 1 addition, 1 deletiontarget/openrisc/cpu.c
- target/riscv/cpu.c 2 additions, 2 deletionstarget/riscv/cpu.c
- target/rx/cpu.c 1 addition, 1 deletiontarget/rx/cpu.c
- target/sh4/cpu.c 2 additions, 2 deletionstarget/sh4/cpu.c
- target/sparc/cpu.c 1 addition, 1 deletiontarget/sparc/cpu.c
- target/tricore/cpu.c 1 addition, 1 deletiontarget/tricore/cpu.c
Loading
Please register or sign in to comment