PPC: 440: Use 440 style MMU as default, so Qemu knows the MMU type
authorAlexander Graf <agraf@suse.de>
Thu, 16 Jun 2011 16:49:22 +0000 (18:49 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 17 Jun 2011 00:58:35 +0000 (02:58 +0200)
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: Alexander Graf <agraf@suse.de>
hw/ppc440.c

index 1ed001a031682b024d71687a5e4a799d5b668cdf..90abc91929f813ed89bfd4c38b354c83a283c3b2 100644 (file)
@@ -45,8 +45,9 @@ CPUState *ppc440ep_init(ram_addr_t *ram_size, PCIBus **pcip,
     qemu_irq *irqs;
     qemu_irq *pci_irqs;
 
-    if (cpu_model == NULL)
-        cpu_model = "405"; // XXX: should be 440EP
+    if (cpu_model == NULL) {
+        cpu_model = "440-Xilinx"; // XXX: should be 440EP
+    }
     env = cpu_init(cpu_model);
     if (!env) {
         fprintf(stderr, "Unable to initialize CPU!\n");