e600 core for MPC86xx processors
PATCH v3 1/1 e600 core for MPC86xx processors
MPC86xx processors are based on the e600 core, which is not the case in qemu where it is based on the 7400 processor.
This patch creates the e600 core and instantiates the MPC86xx processors based on it. Therefore, adding the high BATs, the SPRG 4..7 registers, which are e600-specific [1], and a HW MMU model (as 7400). This allows to define the MPC8610 processor too.
Tested with a kernel using the HW TLB misses.
[1] http://cache.freescale.com/files/32bit/doc/ref_manual/E600CORERM.pdf
--- target-ppc/cpu-models.c | 10 ++-- target-ppc/cpu-models.h | 4 +- target-ppc/translate_init.c | 125 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 130 insertions(+), 9 deletions(-)
target-ppc/cpu-models.c +4 -6
@@ -792,17 +792,15 @@POWERPC_DEF_SVR ("MPC8572E" ,"MPC8572E" ,CPU_POWERPC_MPC8572E ,POWERPC_SVR_8572E , e500v2) /* e600 family */ -POWERPC_DEF ("e600" , CPU_POWERPC_e600,7400 , +POWERPC_DEF ("e600" , CPU_POWERPC_e600, e600,"PowerPC e600 core" ) /* PowerPC e600 microcontrollers */ -#if defined(TODO )POWERPC_DEF_SVR ("MPC8610" ,"MPC8610" , - CPU_POWERPC_MPC8610, POWERPC_SVR_8610, 7400) -#endif + CPU_POWERPC_MPC8610, POWERPC_SVR_8610, e600)POWERPC_DEF_SVR ("MPC8641" ,"MPC8641" , - CPU_POWERPC_MPC8641, POWERPC_SVR_8641, 7400) + CPU_POWERPC_MPC8641, POWERPC_SVR_8641, e600)POWERPC_DEF_SVR ("MPC8641D" ,"MPC8641D" , -CPU_POWERPC_MPC8641D ,POWERPC_SVR_8641D ,7400 ) +CPU_POWERPC_MPC8641D ,POWERPC_SVR_8641D , e600)/* 32 bits "classic" PowerPC */ /* PowerPC 6xx family */ POWERPC_DEF("601_v0", CPU_POWERPC_601_v0, 601,
target-ppc/cpu-models.h +1 -3
@@ -731,9 +731,7 @@ enum {POWERPC_SVR_8568E =0x807D0011 |POWERPC_SVR_E500 ,POWERPC_SVR_8572 =0x80E00010 |POWERPC_SVR_E500 ,POWERPC_SVR_8572E =0x80E80010 |POWERPC_SVR_E500 , -#if 0 -POWERPC_SVR_8610 = xxx, -#endif +POWERPC_SVR_8610 =0x80A00011 ,POWERPC_SVR_8641 =0x80900021 , POWERPC_SVR_8641D = 0x80900121, };
target-ppc/translate_init.c +125 -0
131 lines not on this page · raw message
Signature · 1 line
1.8.1.4
Alexander Graf
AppliedQuoted 8 lines · Julio Guerra
MPC86xx processors are based on the e600 core, which is not the case in qemu where it is based on the 7400 processor.
This patch creates the e600 core and instantiates the MPC86xx processors based on it. Therefore, adding the high BATs, the SPRG 4..7 registers, which are e600-specific [1], and a HW MMU model (as 7400). This allows to define the MPC8610 processor too.
Quoted 5 lines
Tested with a kernel using the HW TLB misses.
[1] http://cache.freescale.com/files/32bit/doc/ref_manual/E600CORERM.pdf
Signed-off-by Julio Guerra<[email protected]>
Thanks, applied to ppc-next.
Alex