提交 c4f31a0a 编写于 作者: G Gleb Natapov 提交者: Anthony Liguori

Apic creation should not depend on pci

It should depend on whether cpu has APIC.
Signed-off-by: NGleb Natapov <gleb@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 df97b920
......@@ -876,16 +876,10 @@ static void pc_init1(ram_addr_t ram_size,
fprintf(stderr, "Unable to find x86 CPU definition\n");
exit(1);
}
if (i != 0)
env->halted = 1;
if (smp_cpus > 1) {
/* XXX: enable it in all cases */
env->cpuid_features |= CPUID_APIC;
}
qemu_register_reset(main_cpu_reset, 0, env);
if (pci_enabled) {
if ((env->cpuid_features & CPUID_APIC) || smp_cpus > 1) {
apic_init(env);
}
qemu_register_reset(main_cpu_reset, 0, env);
}
vmport_init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册