qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] explicitly initialize tcg_cpu_thread


From: Jun Koi
Subject: [Qemu-devel] [patch] explicitly initialize tcg_cpu_thread
Date: Tue, 1 Nov 2011 11:35:48 +0800

This patch explicitly initializes tcg_cpu_thread to NULL in cpus.c
(One code patch in qemu_tcg_init_vcpu() relies on the value of
tcg_cpu_thread to create env->thread and so on )

Signed-off-by: Jun Koi <address@hidden>


diff --git a/cpus.c b/cpus.c
index f768683..47feb58 100644
--- a/cpus.c
+++ b/cpus.c
@@ -606,7 +606,7 @@ static bool iothread_requesting_mutex;

 static QemuThread io_thread;

-static QemuThread *tcg_cpu_thread;
+static QemuThread *tcg_cpu_thread = NULL;
 static QemuCond *tcg_halt_cond;

 /* cpu creation */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]