Message ID | E1MagKK-000864-CJ@3bkjzd1.ch3.sourceforge.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/hw/pc.c +++ b/hw/pc.c @@ -1096,11 +1096,11 @@ CPUState *pc_new_cpu(const char *cpu_model) } if ((env->cpuid_features & CPUID_APIC) || smp_cpus > 1) { env->cpuid_apic_id = env->cpu_index; - /* APIC reset callback resets cpu */ - apic_init(env); } else { qemu_register_reset((QEMUResetHandler*)cpu_reset, env); } + /* APIC reset callback resets cpu */ + apic_init(env); /* kvm needs this to run after the apic is initialized. Otherwise, * it can access invalid state and crash.