]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-i386/helper.c
cpu: Use QTAILQ for CPU list
[mirror_qemu.git] / target-i386 / helper.c
index bf3e2ac73dec3380e192877f7357c87253ad4983..7c58e274d928d291dc6cf8f52ce942060aeaa996 100644 (file)
@@ -1231,8 +1231,7 @@ void cpu_x86_inject_mce(Monitor *mon, X86CPU *cpu, int bank,
         params.mcg_status = MCG_STATUS_MCIP | MCG_STATUS_RIPV;
         params.addr = 0;
         params.misc = 0;
-        for (other_cs = first_cpu; other_cs != NULL;
-             other_cs = other_cs->next_cpu) {
+        CPU_FOREACH(other_cs) {
             if (other_cs == cs) {
                 continue;
             }