From: Anton Johansson Date: Mon, 27 Feb 2023 13:51:51 +0000 (+0100) Subject: target/rx: Replace `tb_pc()` with `tb->pc` X-Git-Tag: v8.0.0-rc0~40^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8023d1abcdd42f2f5d171229a2f52c6eb0153f19;p=thirdparty%2Fqemu.git target/rx: Replace `tb_pc()` with `tb->pc` Signed-off-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230227135202.9710-17-anjo@rev.ng> Signed-off-by: Richard Henderson --- diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 219ef28e463..67452e310c8 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -44,7 +44,8 @@ static void rx_cpu_synchronize_from_tb(CPUState *cs, { RXCPU *cpu = RX_CPU(cs); - cpu->env.pc = tb_pc(tb); + tcg_debug_assert(!(cs->tcg_cflags & CF_PCREL)); + cpu->env.pc = tb->pc; } static void rx_restore_state_to_opc(CPUState *cs,