qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 8/9] PPC: 440: Use 440 style MMU as default, so Qemu knows the MMU type
Date: Fri, 17 Jun 2011 16:44:03 +0200	[thread overview]
Message-ID: <1308321844-11699-9-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1308321844-11699-1-git-send-email-agraf@suse.de>

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 |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/ppc440.c b/hw/ppc440.c
index 1ed001a..90abc91 100644
--- a/hw/ppc440.c
+++ b/hw/ppc440.c
@@ -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");
-- 
1.6.0.2

  parent reply	other threads:[~2011-06-17 14:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 14:43 [Qemu-devel] [PATCH 0/9] PPC patch queue 2011-06-17 Alexander Graf
2011-06-17 14:43 ` [Qemu-devel] [PATCH 1/9] PPC: E500: Implement reboot controller Alexander Graf
2011-06-17 14:43 ` [Qemu-devel] [PATCH 2/9] target-ppc: Handle memory-forced I/O controller access Alexander Graf
2011-06-17 19:34   ` Andreas Färber
2011-06-17 22:59     ` Alexander Graf
2011-06-18 11:15       ` Andreas Färber
2011-06-18 11:19         ` Alexander Graf
2011-06-17 14:43 ` [Qemu-devel] [PATCH 3/9] PPC: calculate kernel, initrd, cmdline locations dynamically Alexander Graf
2011-06-17 14:43 ` [Qemu-devel] [PATCH 4/9] PPC: mpc8544ds: Add hypervisor node Alexander Graf
2011-06-17 14:44 ` [Qemu-devel] [PATCH 5/9] PPC: update openbios firmware Alexander Graf
2011-06-17 14:44 ` [Qemu-devel] [PATCH 6/9] PPC: Only set lower 32bits with mtmsr Alexander Graf
2011-06-17 14:44 ` [Qemu-devel] [PATCH 7/9] PPC: E500: Use MAS registers instead of internal TLB representation Alexander Graf
2011-06-17 14:44 ` Alexander Graf [this message]
2011-06-17 14:44 ` [Qemu-devel] [PATCH 9/9] PPC: move TLBs to their own arrays Alexander Graf
2011-07-01 17:25 ` [Qemu-devel] [PATCH 0/9] PPC patch queue 2011-06-17 Alexander Graf
2011-07-01 21:26   ` Blue Swirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1308321844-11699-9-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).