accel/tcg: Use DisasContextBase in plugin_gen_tb_start
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Aug 2022 16:15:15 +0000 (09:15 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Oct 2022 03:53:31 +0000 (20:53 -0700)
commitb21af662c15522b83a973bc2ffd51d0117c0e039
treef2870a0dbb87cd4474f9942569642157d1f3670c
parentf79542afa798e1a6f7056b82c9a7e933242dd81b
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>
accel/tcg/plugin-gen.c
accel/tcg/translator.c
include/exec/plugin-gen.h