From: Alexander Graf <agraf@suse.de>
To: QEMU-devel Developers <qemu-devel@nongnu.org>
Cc: Scott Wood <scottwood@freescale.com>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Liu Yu <yu.liu@freescale.com>
Subject: [Qemu-devel] [PATCH 1/5] PPC: Make MPC8544DS obey -cpu switch
Date: Mon, 2 May 2011 13:04:03 +0200 [thread overview]
Message-ID: <1304334247-6005-2-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1304334247-6005-1-git-send-email-agraf@suse.de>
The MPC8544DS board emulation code ignored the user defined -cpu switch.
This patch enables it to only provide a sane default, not force an e500v2
CPU inside.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
hw/ppce500_mpc8544ds.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index e111dda..1b8a1c4 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -178,7 +178,11 @@ static void mpc8544ds_init(ram_addr_t ram_size,
qemu_irq *irqs, *mpic, *pci_irqs;
/* Setup CPU */
- env = cpu_ppc_init("e500v2_v30");
+ if (cpu_model == NULL) {
+ cpu_model = "e500v2_v30";
+ }
+
+ env = cpu_ppc_init(cpu_model);
if (!env) {
fprintf(stderr, "Unable to initialize CPU!\n");
exit(1);
--
1.6.0.2
next prev parent reply other threads:[~2011-05-02 11:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-02 11:04 [Qemu-devel] [PATCH 0/5] PPC: Add FSL (e500) MMU emulation v2 Alexander Graf
2011-05-02 11:04 ` Alexander Graf [this message]
2011-05-02 11:04 ` [Qemu-devel] [PATCH 2/5] PPC: Make MPC8544DS emulation work w/o KVM Alexander Graf
2011-05-02 12:05 ` Edgar E. Iglesias
2011-05-02 12:12 ` Alexander Graf
2011-05-02 11:04 ` [Qemu-devel] [PATCH 3/5] PPC: Add GS MSR definition Alexander Graf
2011-05-02 11:04 ` [Qemu-devel] [PATCH 4/5] PPC: Add another 64 bits to instruction feature mask Alexander Graf
2011-05-02 11:04 ` [Qemu-devel] [PATCH 5/5] PPC: Implement e500 (FSL) MMU Alexander Graf
2011-05-02 12:07 ` [Qemu-devel] [PATCH 0/5] PPC: Add FSL (e500) MMU emulation v2 Edgar E. Iglesias
-- strict thread matches above, loose matches on Subject: below --
2011-04-30 22:54 [Qemu-devel] [PATCH 0/5] PPC: Add FSL (e500) MMU emulation Alexander Graf
2011-04-30 22:54 ` [Qemu-devel] [PATCH 1/5] PPC: Make MPC8544DS obey -cpu switch Alexander Graf
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=1304334247-6005-2-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=edgar.iglesias@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=scottwood@freescale.com \
--cc=yu.liu@freescale.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.