On 3/21/22 15:14, Mark Kanda wrote:
diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c
index ea7dcad674..527592c4d7 100644
--- a/accel/tcg/tcg-accel-ops.c
+++ b/accel/tcg/tcg-accel-ops.c
@@ -94,6 +94,7 @@ void tcg_handle_interrupt(CPUState *cpu, int mask)
static void tcg_accel_ops_init(AccelOpsClass *ops)
  {
+    ops->destroy_vcpu_thread = generic_destroy_vcpu_thread;
      if (qemu_tcg_mttcg_enabled()) {
          ops->create_vcpu_thread = mttcg_start_vcpu_thread;
          ops->kick_vcpu_thread = mttcg_kick_vcpu_thread;

This should not be done for the icount case, where there is only one thread.

Paolo

Reply via email to