summaryrefslogtreecommitdiffstats
path: root/accel/tcg/tcg-runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel/tcg/tcg-runtime.c')
-rw-r--r--accel/tcg/tcg-runtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel/tcg/tcg-runtime.c b/accel/tcg/tcg-runtime.c
index d736f4ff55..05e3d52c2f 100644
--- a/accel/tcg/tcg-runtime.c
+++ b/accel/tcg/tcg-runtime.c
@@ -152,7 +152,9 @@ const void *HELPER(lookup_tb_ptr)(CPUArchState *env)
target_ulong cs_base, pc;
uint32_t flags;
- tb = tb_lookup__cpu_state(cpu, &pc, &cs_base, &flags, curr_cflags());
+ cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags);
+
+ tb = tb_lookup(cpu, pc, cs_base, flags, curr_cflags());
if (tb == NULL) {
return tcg_code_gen_epilogue;
}