瀏覽代碼

cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Emilio G. Cota 10 年之前
父節點
當前提交
c28e399cad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cpus.c

+ 1 - 1
cpus.c

@@ -1016,7 +1016,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
     qemu_cond_signal(&qemu_cpu_cond);
     qemu_cond_signal(&qemu_cpu_cond);
 
 
     /* wait for initial kick-off after machine start */
     /* wait for initial kick-off after machine start */
-    while (QTAILQ_FIRST(&cpus)->stopped) {
+    while (first_cpu->stopped) {
         qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex);
         qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex);
 
 
         /* process any pending work */
         /* process any pending work */