@@ -1638,6 +1638,8 @@ void resume_all_vcpus(void)
qemu_clock_enable(QEMU_CLOCK_VIRTUAL, true);
CPU_FOREACH(cpu) {
cpu_resume(cpu);
+ fprintf(stderr, "%s-cpu%d: stop %d stopped %d halted %d\n",
+ __func__, cpu->cpu_index, cpu->stop, cpu->stopped, cpu->halted);
}
}
@@ -702,8 +702,14 @@ uint64_t cpu_ppc_load_purr (CPUPPCState *env)
*/
static inline void cpu_ppc_decr_excp(PowerPCCPU *cpu)
{
+ CPUState *cs = CPU(cpu);
+ CPUPPCState *env = &cpu->env;
/* Raise it */
LOG_TB("raise decrementer exception\n");
+ if (first_cpu != cs) {
+ fprintf(stderr, "%s-cpu%d: stop %d stopped %d halted %d SPR_LPCR %llx\n",
+ __func__, cs->cpu_index, cs->stop, cs->stopped, cs->halted, (env->spr[SPR_LPCR] & LPCR_P8_PECE3));
+ }
ppc_set_irq(cpu, PPC_INTERRUPT_DECR, 1);
}
@@ -86,6 +86,10 @@ static void spapr_cpu_reset(void *opaque)
cs->halted = 1;
env->spr[SPR_HIOR] = 0;
+ if (first_cpu != cs) {
+ fprintf(stderr, "%s-cpu%d: stop %d stopped %d halted %d SPR_LPCR %llx\n",
+ __func__, cs->cpu_index, cs->stop, cs->stopped, cs->halted, (env->spr[SPR_LPCR] & LPCR_P8_PECE3));
+ }
/*
* This is a hack for the benefit of KVM PR - it abuses the SDR1