<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008>I&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=990260122-11042008><EM>#define SYNC \<BR>&nbsp;sync; 
\<BR>&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990260122-11042008><FONT 
color=#000000>I think it is more safe to&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><EM><FONT 
color=#0000ff>#define SYNC \<BR>&nbsp;sync; \<BR>&nbsp;isync; 
\<BR>&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=990260122-11042008><FONT 
color=#0000ff><FONT color=#000000></FONT></FONT></SPAN></FONT>&nbsp;</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>&nbsp;</DIV></SPAN></FONT></BODY></HTML>