]> git.proxmox.com Git - mirror_qemu.git/commitdiff
accel: Remove _WIN32 ifdef from qtest-cpus.c
authorJason Andryuk <jandryuk@gmail.com>
Tue, 13 Oct 2020 14:05:09 +0000 (10:05 -0400)
committerThomas Huth <thuth@redhat.com>
Sat, 24 Oct 2020 05:23:19 +0000 (07:23 +0200)
dummy-cpus.c is only compiled with CONFIG_POSIX, so the _WIN32 condition
will never evaluate true.  Remove it.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Message-Id: <20201013140511.5681-2-jandryuk@gmail.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
accel/qtest/qtest-cpus.c

index 7c5399ed9dec8d036b80f38aa7df24c6c7ba0079..db094201c1f6441b3fa1dc15668eec92267df70d 100644 (file)
 
 static void *qtest_cpu_thread_fn(void *arg)
 {
-#ifdef _WIN32
-    error_report("qtest is not supported under Windows");
-    exit(1);
-#else
     CPUState *cpu = arg;
     sigset_t waitset;
     int r;
@@ -69,7 +65,6 @@ static void *qtest_cpu_thread_fn(void *arg)
     qemu_mutex_unlock_iothread();
     rcu_unregister_thread();
     return NULL;
-#endif
 }
 
 static void qtest_start_vcpu_thread(CPUState *cpu)