diff options
author | Richard Henderson | 2022-08-15 22:16:06 +0200 |
---|---|---|
committer | Richard Henderson | 2022-10-04 21:13:12 +0200 |
commit | fbf59aad178d98afe193fa872a2d880266a75269 (patch) | |
tree | 05d5fb4a7118f1a70eb0a09a1269f859f822502e /target/avr | |
parent | hw/core: Add CPUClass.get_pc (diff) | |
download | qemu-fbf59aad178d98afe193fa872a2d880266a75269.tar.gz qemu-fbf59aad178d98afe193fa872a2d880266a75269.tar.xz qemu-fbf59aad178d98afe193fa872a2d880266a75269.zip |
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>
Diffstat (limited to 'target/avr')
-rw-r--r-- | target/avr/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/avr/cpu.c b/target/avr/cpu.c index 6900444d03..0d2861179d 100644 --- a/target/avr/cpu.c +++ b/target/avr/cpu.c @@ -54,7 +54,7 @@ static void avr_cpu_synchronize_from_tb(CPUState *cs, AVRCPU *cpu = AVR_CPU(cs); CPUAVRState *env = &cpu->env; - env->pc_w = tb->pc / 2; /* internally PC points to words */ + env->pc_w = tb_pc(tb) / 2; /* internally PC points to words */ } static void avr_cpu_reset(DeviceState *ds) |