Message ID | 1252440819-15923-1-git-send-email-glommer@redhat.com |
---|---|
State | Superseded |
Headers | show |
On Tue, Sep 8, 2009 at 5:13 PM, Glauber Costa<glommer@redhat.com> wrote:
> From: Glauber Costa <glommer@mothafucka.localdomain>
I've obviously sent this from the wrong address.
Just ignore it.
diff --git a/vl.c b/vl.c index a894285..604e996 100644 --- a/vl.c +++ b/vl.c @@ -3803,9 +3803,14 @@ void qemu_cpu_kick(void *_env) qemu_thread_signal(env->thread, SIGUSR1); } -int qemu_cpu_self(void *env) +int qemu_cpu_self(void *_env) { - return (cpu_single_env != NULL); + CPUState *env = _env; + QemuThread this; + + qemu_thread_self(&this); + + return qemu_thread_equal(&this, env->thread); } static void cpu_signal(int sig)