diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-08-12 09:15:15 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-10-03 20:53:31 -0700 |
commit | b21af662c15522b83a973bc2ffd51d0117c0e039 (patch) | |
tree | f2870a0dbb87cd4474f9942569642157d1f3670c /accel/tcg/translator.c | |
parent | f79542afa798e1a6f7056b82c9a7e933242dd81b (diff) | |
download | qemu-b21af662c15522b83a973bc2ffd51d0117c0e039.zip qemu-b21af662c15522b83a973bc2ffd51d0117c0e039.tar.gz qemu-b21af662c15522b83a973bc2ffd51d0117c0e039.tar.bz2 |
accel/tcg: Use DisasContextBase in plugin_gen_tb_start
Use the pc coming from db->pc_first rather than the TB.
Use the cached host_addr rather than re-computing for the
first page. We still need a separate lookup for the second
page because it won't be computed for DisasContextBase until
the translator actually performs a read from the page.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/translator.c')
-rw-r--r-- | accel/tcg/translator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index ca8a5f2..8e78fd7 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -75,7 +75,7 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb, int max_insns, ops->tb_start(db, cpu); tcg_debug_assert(db->is_jmp == DISAS_NEXT); /* no early exit */ - plugin_enabled = plugin_gen_tb_start(cpu, tb, cflags & CF_MEMI_ONLY); + plugin_enabled = plugin_gen_tb_start(cpu, db, cflags & CF_MEMI_ONLY); while (true) { db->num_insns++; |