mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
protect qemu_cpu_kick_self for Win32
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
714bd04090
commit
b55c22c65b
4
cpus.c
4
cpus.c
@ -867,12 +867,16 @@ void qemu_cpu_kick(void *_env)
|
||||
|
||||
void qemu_cpu_kick_self(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
assert(cpu_single_env);
|
||||
|
||||
if (!cpu_single_env->thread_kicked) {
|
||||
qemu_thread_signal(cpu_single_env->thread, SIG_IPI);
|
||||
cpu_single_env->thread_kicked = true;
|
||||
}
|
||||
#else
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
|
||||
int qemu_cpu_is_self(void *_env)
|
||||
|
Loading…
Reference in New Issue
Block a user