aboutsummaryrefslogtreecommitdiff
path: root/accel/tcg/tcg-runtime.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2021-02-24 16:58:07 +0000
committerRichard Henderson <richard.henderson@linaro.org>2021-03-06 11:50:43 -0800
commit6f04cb1c8f481cf02fbc4657fefba985a1fe725f (patch)
tree48f4f0111b496e398b81d8fbd07d9a5131fa7f4e /accel/tcg/tcg-runtime.c
parent9e9acb7b348570f8a9ed62fcbad299424fe61501 (diff)
downloadqemu-6f04cb1c8f481cf02fbc4657fefba985a1fe725f.zip
qemu-6f04cb1c8f481cf02fbc4657fefba985a1fe725f.tar.gz
qemu-6f04cb1c8f481cf02fbc4657fefba985a1fe725f.tar.bz2
accel/tcg: rename tb_lookup__cpu_state and hoist state extraction
Having a function return either and valid TB and some system state seems excessive. It will make the subsequent re-factoring easier if we lookup the current state where we are. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20210224165811.11567-2-alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
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 d736f4f..05e3d52 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;
}