diff options
author | Anton Johansson <anjo@rev.ng> | 2023-02-27 14:52:00 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-01 07:33:24 -1000 |
commit | 604b66ce5e46711960b95241d0713cd8c1896907 (patch) | |
tree | 08d3195d5ee103eb92e8420ddfd74f4684a7b71c | |
parent | ba44565588fe5b6fd1bf416d2b66d7e1a82e4c3e (diff) |
target/avr: Replace `tb_pc()` with `tb->pc`
Signed-off-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230227135202.9710-26-anjo@rev.ng>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/avr/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/avr/cpu.c b/target/avr/cpu.c index d0139804b9..a24c23c247 100644 --- a/target/avr/cpu.c +++ b/target/avr/cpu.c @@ -54,7 +54,8 @@ static void avr_cpu_synchronize_from_tb(CPUState *cs, AVRCPU *cpu = AVR_CPU(cs); CPUAVRState *env = &cpu->env; - env->pc_w = tb_pc(tb) / 2; /* internally PC points to words */ + tcg_debug_assert(!(cs->tcg_cflags & CF_PCREL)); + env->pc_w = tb->pc / 2; /* internally PC points to words */ } static void avr_restore_state_to_opc(CPUState *cs, |