Secondary CPUs do not start at SPAPR_ENTRY_POINT but at an address given by the guest OS.
Fixes commit c79128c14c20 ("spapr: Make a helper to set up cpu entry point state") Signed-off-by: Cédric Le Goater <c...@kaod.org> --- hw/ppc/spapr_cpu_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 326b35d6ed23..f3e9b879b251 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -76,7 +76,7 @@ void spapr_cpu_set_entry_state(PowerPCCPU *cpu, target_ulong nip, target_ulong r PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); CPUPPCState *env = &cpu->env; - env->nip = SPAPR_ENTRY_POINT; + env->nip = nip; env->gpr[3] = r3; CPU(cpu)->halted = 0; /* Enable Power-saving mode Exit Cause exceptions */ -- 2.13.6