On 10/08/2015 17:27, fred.kon...@greensocs.com wrote: > { > if (current_cpu) { > cpu_exit(current_cpu); > } > - exit_request = 1; > + > + /* FIXME: We might want to check if the cpu is running? */ > + tcg_thread_cpu->exit_request = true; > } > > #ifdef CONFIG_LINUX > @@ -1151,6 +1159,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) > CPUState *cpu = arg; > > qemu_mutex_lock_iothread(); > + tcg_thread_cpu = cpu; > qemu_tcg_init_cpu_signals(); > qemu_thread_get_self(cpu->thread);
This only makes sense for MTTCG, so it should be squashed in patch 11, I think. Paolo