From patchwork Tue Apr 27 15:31:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 51085 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D7B63B7D4F for ; Wed, 28 Apr 2010 01:32:42 +1000 (EST) Received: from localhost ([127.0.0.1]:51578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6mm5-0002cD-LH for incoming@patchwork.ozlabs.org; Tue, 27 Apr 2010 11:32:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6mkt-0002KA-7t for qemu-devel@nongnu.org; Tue, 27 Apr 2010 11:31:23 -0400 Received: from [140.186.70.92] (port=41017 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6mkr-0002In-HN for qemu-devel@nongnu.org; Tue, 27 Apr 2010 11:31:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6mki-0001sY-Vy for qemu-devel@nongnu.org; Tue, 27 Apr 2010 11:31:20 -0400 Received: from smtp27.orange.fr ([80.12.242.94]:50400) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6mki-0001rd-Ma for qemu-devel@nongnu.org; Tue, 27 Apr 2010 11:31:12 -0400 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2728.orange.fr (SMTP Server) with ESMTP id 15B641C00221 for ; Tue, 27 Apr 2010 17:31:11 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2728.orange.fr (SMTP Server) with ESMTP id 051251C0057F for ; Tue, 27 Apr 2010 17:31:11 +0200 (CEST) Received: from tmonjalo-laptop (LPuteaux-156-15-47-90.w82-127.abo.wanadoo.fr [82.127.74.90]) by mwinf2728.orange.fr (SMTP Server) with ESMTP id C34001C00221 for ; Tue, 27 Apr 2010 17:31:10 +0200 (CEST) X-ME-UUID: 20100427153110799.C34001C00221@mwinf2728.orange.fr From: Thomas Monjalon To: qemu-devel@nongnu.org Date: Tue, 27 Apr 2010 17:31:06 +0200 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH v2 1/5] target-ppc: fix processor versions (PVR) for e300 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Thomas Monjalon Reflect values from the table "Assigned PVR values" in [e300CORERM]. Values for MPC603 and G2 processors could need check/changes also. The reference document (e300CORERM) which is used is: "e300 Power Architecture Core Family Reference Manual", Revision 4, 12/2007. Signed-off-by: Thomas Monjalon --- target-ppc/translate_init.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index e8eadf4..9e42831 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -6720,17 +6720,18 @@ enum { /* e300 family */ /* e300 cores */ #define CPU_POWERPC_e300 CPU_POWERPC_e300c3 - CPU_POWERPC_e300c1 = 0x00830010, - CPU_POWERPC_e300c2 = 0x00840010, - CPU_POWERPC_e300c3 = 0x00850010, - CPU_POWERPC_e300c4 = 0x00860010, + CPU_POWERPC_e300c1 = 0x80830010, + CPU_POWERPC_e300c2 = 0x80840010, + CPU_POWERPC_e300c3 = 0x80850010, + CPU_POWERPC_e300c4_MPC5121e = 0x80860010, + CPU_POWERPC_e300c4_MPC83xx = 0x80861010, /* MPC83xx microcontrollers */ #define CPU_POWERPC_MPC831x CPU_POWERPC_e300c3 #define CPU_POWERPC_MPC832x CPU_POWERPC_e300c2 #define CPU_POWERPC_MPC834x CPU_POWERPC_e300c1 #define CPU_POWERPC_MPC835x CPU_POWERPC_e300c1 #define CPU_POWERPC_MPC836x CPU_POWERPC_e300c1 -#define CPU_POWERPC_MPC837x CPU_POWERPC_e300c4 +#define CPU_POWERPC_MPC837x CPU_POWERPC_e300c4_MPC83xx /* e500 family */ /* e500 cores */ #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22 @@ -7977,7 +7978,7 @@ static const ppc_def_t ppc_defs[] = { /* PowerPC e300c3 core */ POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, e300), /* PowerPC e300c4 core */ - POWERPC_DEF("e300c4", CPU_POWERPC_e300c4, e300), + POWERPC_DEF("e300c4", CPU_POWERPC_e300c4_MPC83xx, e300), /* PowerPC e300 microcontrollers */ #if defined (TODO) /* MPC8313 */