aboutsummaryrefslogtreecommitdiff
path: root/target/rx
diff options
context:
space:
mode:
authorAnton Johansson <anjo@rev.ng>2023-02-27 14:51:51 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-03-01 07:33:11 -1000
commit8023d1abcdd42f2f5d171229a2f52c6eb0153f19 (patch)
tree83b835d029691fdc6f0ad2e0f8ee619324b22b40 /target/rx
parentdd69c77cc67f879da04bddc65a07c96a9f13be63 (diff)
downloadqemu-8023d1abcdd42f2f5d171229a2f52c6eb0153f19.zip
qemu-8023d1abcdd42f2f5d171229a2f52c6eb0153f19.tar.gz
qemu-8023d1abcdd42f2f5d171229a2f52c6eb0153f19.tar.bz2
target/rx: 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-17-anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/rx')
-rw-r--r--target/rx/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/rx/cpu.c b/target/rx/cpu.c
index 219ef28..67452e3 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,