qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 16/27] target/rx: Replace `tb_pc()` with `tb->pc`


From: Anton Johansson
Subject: [PATCH v2 16/27] target/rx: Replace `tb_pc()` with `tb->pc`
Date: Tue, 21 Feb 2023 23:18:07 +0100

Signed-off-by: Anton Johansson <anjo@rev.ng>
---
 target/rx/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/rx/cpu.c b/target/rx/cpu.c
index 219ef28e46..67452e310c 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,
-- 
2.39.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]