mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07: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
1 changed files with 4 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue