bsp/mpc55xx: Errata e4396 for e200z7

This commit is contained in:
Sebastian Huber
2012-11-21 09:46:58 +01:00
parent 2e80662196
commit c6d35ad46b

View File

@@ -170,9 +170,17 @@ _start:
ori r3, r3, 0x4000 ori r3, r3, 0x4000
mtspr HID0, r3 mtspr HID0, r3
/* Enable branch prediction */ /*
LWI r3, FSL_EIS_BUCSR_BBFI | FSL_EIS_BUCSR_BPEN * Enable branch prediction.
*
* Errata e4396: e200z7: Erroneous Address Fetch
*
* The propose workaround does not work.
*/
#if MPC55XX_CHIP_FAMILY != 567
LWI r3, FSL_EIS_BUCSR_BBFI | FSL_EIS_BUCSR_BALLOC_ALL | FSL_EIS_BUCSR_BPRED_NOT_TAKEN | FSL_EIS_BUCSR_BPEN
mtspr FSL_EIS_BUCSR, r3 mtspr FSL_EIS_BUCSR, r3
#endif
#endif /* MPC55XX_NEEDS_LOW_LEVEL_INIT */ #endif /* MPC55XX_NEEDS_LOW_LEVEL_INIT */