void qemu_cpu_kick(CPUState *cpu)
{
qemu_cond_broadcast(cpu->halt_cond);
- if (((hax_enabled() && hax_ug_platform()) || !tcg_enabled()) && !cpu->thread_kicked) {
+#ifdef CONFIG_HAX
++ if (((hax_enabled() && hax_ug_platform()) ||
++ !tcg_enabled()) && !cpu->thread_kicked) {
+#else
if (!tcg_enabled() && !cpu->thread_kicked) {
+#endif
qemu_cpu_kick_thread(cpu);
cpu->thread_kicked = true;
}
/* In the simple case there is no need to bump the VCPU thread out of
* TCG code execution.
*/
- #ifdef CONFIG_HAX
- if (!tcg_enabled() || qemu_in_vcpu_thread() ||
- !first_cpu || !first_cpu->thread ||
- (hax_enabled() && hax_ug_platform())) {
- #else
if (!tcg_enabled() || qemu_in_vcpu_thread() ||
- !first_cpu || !first_cpu->thread) {
++#ifdef CONFIG_HAX
++ (hax_enabled() && hax_ug_platform()) ||
+#endif
+ !first_cpu || !first_cpu->created) {
qemu_mutex_lock(&qemu_global_mutex);
atomic_dec(&iothread_requesting_mutex);
} else {