]> Git Repo - qemu.git/blobdiff - hw/ppc/spapr_cpu_core.c
spapr: modify the prototype of the cpu_intc_create() method
[qemu.git] / hw / ppc / spapr_cpu_core.c
index 1811cd48db907222b658b0942d80a30273a9dcbb..2739b2a4b818d7b90b0fdf51fe170f2fd61b3adb 100644 (file)
@@ -214,7 +214,6 @@ static void spapr_cpu_core_unrealize(DeviceState *dev, Error **errp)
 static void spapr_realize_vcpu(PowerPCCPU *cpu, sPAPRMachineState *spapr,
                                sPAPRCPUCore *sc, Error **errp)
 {
-    sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(spapr);
     CPUPPCState *env = &cpu->env;
     CPUState *cs = CPU(cpu);
     Error *local_err = NULL;
@@ -233,7 +232,7 @@ static void spapr_realize_vcpu(PowerPCCPU *cpu, sPAPRMachineState *spapr,
     qemu_register_reset(spapr_cpu_reset, cpu);
     spapr_cpu_reset(cpu);
 
-    cpu->intc = smc->irq->cpu_intc_create(spapr, OBJECT(cpu), &local_err);
+    spapr->irq->cpu_intc_create(spapr, cpu, &local_err);
     if (local_err) {
         goto error_unregister;
     }
This page took 0.020051 seconds and 4 git commands to generate.