qemu-e2k/accel
Matt Borgerson a392277dcf plugins: Set final instruction count in plugin_gen_tb_end
Translation logic may partially decode an instruction, then abort and
remove the instruction from the TB. This can happen for example when an
instruction spans two pages. In this case, plugins may get an incorrect
result when calling qemu_plugin_tb_n_insns to query for the number of
instructions in the TB. This patch updates plugin_gen_tb_end to set the
final instruction count.

Signed-off-by: Matt Borgerson <contact@mborgerson.com>
[AJB: added g_assert to defed API]
Message-Id: <CADc=-s5RwGViNTR-h5cq3np673W3RRFfhr4vCGJp0EoDUxvhog@mail.gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-23-alex.bennee@linaro.org>
2023-10-11 08:46:39 +01:00
..
hvf
kvm
qtest
stubs accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
tcg plugins: Set final instruction count in plugin_gen_tb_end 2023-10-11 08:46:39 +01:00
xen
accel-blocker.c
accel-system.c accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
accel-system.h accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
accel-target.c accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00
accel-user.c
dummy-cpus.c
Kconfig
meson.build accel: Rename accel_softmmu* -> accel_system* 2023-10-07 19:02:57 +02:00