Fix build error on "hax-all.c".
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 12 Dec 2013 06:39:41 +0000 (15:39 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 12 Dec 2013 06:39:41 +0000 (15:39 +0900)
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
target-i386/hax-all.c

index 188ece63bb49cf1cb6d2da704b5516886c86dc10..cbc27ab93692c53c3b6af72899052d79ef1956a8 100644 (file)
@@ -1200,7 +1200,7 @@ int hax_sync_vcpus(void)
         if (!cpu)
             return 0;
 
-        for (; cpu != NULL; cpu = cpu->next_cpu) {
+        for (; cpu != NULL; cpu = CPU_NEXT(cpu)) {
             int ret;
 
             ret = hax_arch_set_registers(cpu->env_ptr);
@@ -1217,7 +1217,7 @@ int hax_sync_vcpus(void)
 void hax_reset_vcpu_state(void *opaque)
 {
     CPUState *cpu;
-    for (cpu = first_cpu; cpu != NULL; cpu = cpu->next_cpu)
+    for (cpu = first_cpu; cpu != NULL; cpu = CPU_NEXT(cpu))
     {
         CPUArchState *env = (CPUArchState *) cpu->env_ptr;
         dprint("*********ReSet hax_vcpu->emulation_state \n");