On 29/8/25 17:31, Paolo Bonzini wrote:
Round-robin TCG is calling into cpu_exit() directly. In preparation
for making cpu_exit() usable from all accelerators, define a generic
thread-kick function for TCG which is used directly in the multi-threaded
case, and through CPU_FOREACH in the round-robin case.
Use it also for user-mode emulation, and take the occasion to move
the implementation to accel/tcg/user-exec.c.
Signed-off-by: Paolo Bonzini <[email protected]>
---
docs/devel/tcg-icount.rst | 2 +-
accel/tcg/tcg-accel-ops-mttcg.h | 3 ---
accel/tcg/tcg-accel-ops.h | 1 +
accel/tcg/cpu-exec.c | 6 ++++++
accel/tcg/tcg-accel-ops-mttcg.c | 5 -----
accel/tcg/tcg-accel-ops-rr.c | 2 +-
accel/tcg/tcg-accel-ops.c | 2 +-
accel/tcg/user-exec.c | 6 ++++++
bsd-user/main.c | 5 -----
linux-user/main.c | 5 -----
10 files changed, 16 insertions(+), 21 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>