From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4W8B-0000zG-Qt for qemu-devel@nongnu.org; Wed, 21 Apr 2010 05:22:03 -0400 Received: from [140.186.70.92] (port=46100 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4W89-0000ww-QF for qemu-devel@nongnu.org; Wed, 21 Apr 2010 05:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4W86-0001ns-5X for qemu-devel@nongnu.org; Wed, 21 Apr 2010 05:22:01 -0400 Received: from smtp21.orange.fr ([80.12.242.48]:18134) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4W85-0001mt-TW for qemu-devel@nongnu.org; Wed, 21 Apr 2010 05:21:58 -0400 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2113.orange.fr (SMTP Server) with ESMTP id 5648D1C019E6 for ; Wed, 21 Apr 2010 11:21:56 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2113.orange.fr (SMTP Server) with ESMTP id 48F031C01A45 for ; Wed, 21 Apr 2010 11:21:56 +0200 (CEST) Received: from localhost.localdomain (LPuteaux-156-15-47-90.w82-127.abo.wanadoo.fr [82.127.74.90]) by mwinf2113.orange.fr (SMTP Server) with ESMTP id 1BD571C019E6 for ; Wed, 21 Apr 2010 11:21:56 +0200 (CEST) From: Thomas Monjalon Date: Wed, 21 Apr 2010 11:21:55 +0200 Message-Id: <1271841716-11582-2-git-send-email-thomas_ml@monjalon.net> In-Reply-To: <1271841716-11582-1-git-send-email-thomas_ml@monjalon.net> References: <1271841716-11582-1-git-send-email-thomas_ml@monjalon.net> Subject: [Qemu-devel] [PATCH 1/2] target-ppc: fix processor versions (PVR) for e300 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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 */ -- 1.7.0.5