From patchwork Mon May 2 15:03:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 93673 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E1B011007D5 for ; Tue, 3 May 2011 01:03:53 +1000 (EST) Received: from localhost ([::1]:46315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGuf9-0002Mw-2z for incoming@patchwork.ozlabs.org; Mon, 02 May 2011 11:03:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGuek-0002Ld-3c for qemu-devel@nongnu.org; Mon, 02 May 2011 11:03:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGuei-0007jB-1F for qemu-devel@nongnu.org; Mon, 02 May 2011 11:03:25 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49586 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGueh-0007is-Qf for qemu-devel@nongnu.org; Mon, 02 May 2011 11:03:23 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id BF0325FC9F; Mon, 2 May 2011 17:03:22 +0200 (CEST) From: Alexander Graf To: QEMU-devel Developers Date: Mon, 2 May 2011 17:03:17 +0200 Message-Id: <1304348602-28907-2-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1304348602-28907-1-git-send-email-agraf@suse.de> References: <1304348602-28907-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: Scott Wood , "Edgar E. Iglesias" , Liu Yu , Blue Swirl Subject: [Qemu-devel] [PATCH 1/6] PPC: Make MPC8544DS obey -cpu switch X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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);