提交 0dd4bc7d 编写于 作者: A Alexander Graf

PPC: 440: Use 440 style MMU as default, so Qemu knows the MMU type

We have some KVM interaction code in Qemu that tries to be clever and
ignore some capabilities when running on BookE style MMUs. Unfortunately,
the default CPU bamboo was defaulting to was not a BookE-style MMU,
resulting in the check to fail.

With this patch, guests can run again on 440 with -enable-kvm.
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 d1e256fe
...@@ -45,8 +45,9 @@ CPUState *ppc440ep_init(ram_addr_t *ram_size, PCIBus **pcip, ...@@ -45,8 +45,9 @@ CPUState *ppc440ep_init(ram_addr_t *ram_size, PCIBus **pcip,
qemu_irq *irqs; qemu_irq *irqs;
qemu_irq *pci_irqs; qemu_irq *pci_irqs;
if (cpu_model == NULL) if (cpu_model == NULL) {
cpu_model = "405"; // XXX: should be 440EP cpu_model = "440-Xilinx"; // XXX: should be 440EP
}
env = cpu_init(cpu_model); env = cpu_init(cpu_model);
if (!env) { if (!env) {
fprintf(stderr, "Unable to initialize CPU!\n"); fprintf(stderr, "Unable to initialize CPU!\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册