]> git.proxmox.com Git - qemu.git/blobdiff - cpus.c
versatile_pci: Implement the correct PCI IRQ mapping
[qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index 97e9ab4c077aa65de300cd44b5330ac5ec09c270..c15ff6c5fee824c3c7a28664dfce2820d7915fef 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -419,7 +419,7 @@ void cpu_synchronize_all_post_reset(void)
     CPUArchState *cpu;
 
     for (cpu = first_cpu; cpu; cpu = cpu->next_cpu) {
-        cpu_synchronize_post_reset(cpu);
+        cpu_synchronize_post_reset(ENV_GET_CPU(cpu));
     }
 }
 
@@ -428,7 +428,7 @@ void cpu_synchronize_all_post_init(void)
     CPUArchState *cpu;
 
     for (cpu = first_cpu; cpu; cpu = cpu->next_cpu) {
-        cpu_synchronize_post_init(cpu);
+        cpu_synchronize_post_init(ENV_GET_CPU(cpu));
     }
 }