From: Thomas Monjalon <tho...@monjalon.net> 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 <tho...@monjalon.net> --- 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.1