<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=990260122-11042008>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990260122-11042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008>I was trying to
turn on I-Cache while u-boot is executing out of Flash on MPC5121 ADS board, and
just found the board refused to boot. After debug and tried many different ways,
we finally found that the root of the problem is the SYNC macro definition in
u-boot include/ppc_asm.tmpl file. The SYNC was defined as</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990260122-11042008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990260122-11042008><EM>#define SYNC \<BR> sync;
\<BR> isync<BR></EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990260122-11042008><FONT
color=#000000>By turning on I-cache on powerpc e300 core, ICE bit of HID0 needs
to be set. Before setting ICE, an isync operation need to be issued. In the
cpu/mpc512x/start.S file, this is done by using a 'SYNC' statement. But we found
we need to add one more sync operation to guarantee isync is complete.
</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990260122-11042008><FONT
color=#000000></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990260122-11042008><FONT
color=#000000>I think it is more safe to change the SYNC definition in
ppc_asm.tmpl to the following,</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990260122-11042008><FONT
color=#000000></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><EM><FONT
color=#0000ff>#define SYNC \<BR> sync; \<BR> isync;
\<BR> sync<BR></FONT></EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><FONT
color=#0000ff><FONT color=#000000>Just a suggestion.
</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><FONT
color=#0000ff><FONT color=#000000></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><FONT
color=#0000ff><FONT color=#000000></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><FONT
color=#0000ff><FONT color=#000000>Best
Regards,</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><FONT
color=#0000ff><FONT color=#000000>Ronda</FONT></DIV></FONT></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=990260122-11042008><BR> </DIV></SPAN></FONT></BODY></HTML>