Decorated Operations for QorIQ P3/P4/P5 Processors - Freescale ...
Decorated Operations for QorIQ P3/P4/P5 Processors - Freescale ...
Decorated Operations for QorIQ P3/P4/P5 Processors - Freescale ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Sample Application<br />
int main(int argc, char *argv[])<br />
{<br />
uint32_t i;<br />
curr_lwe_id = get_lwe_id();<br />
spin_lock(&init_lock);<br />
if (g_ctrl_lwe == INV_LWE_ID){<br />
g_ctrl_lwe = curr_lwe_id;<br />
}<br />
else{<br />
APP_INFO("*********************************************");<br />
APP_INFO("<strong>Decorated</strong> <strong>Operations</strong> Benchmark, July 2010");<br />
APP_INFO("Jonas Svennebring, <strong>Freescale</strong> Nordic");<br />
APP_INFO ("Parition %d\n\n", curr_lwe_id);<br />
i = barrier_init(&sync_barrier, get_online_core_mask());<br />
if (unlikely(i != 0)) {<br />
APP_ERROR("Barrier initialization failed");<br />
return 1;<br />
}<br />
decorated_counter = (int32_t *) stats_memalign(CACHE_LINE_SIZE, sizeof(int32_t));<br />
*decorated_counter = 0;<br />
APP_INFO("");<br />
APP_INFO("Singlecore Test:");<br />
singlecore_test();<br />
APP_INFO("Slave Partition, id %d", curr_lwe_id);<br />
atb_start = mfspr(SPR_ATBL); //start timer<br />
atb_stop = mfspr(SPR_ATBL); //stop timer<br />
atb_oh = atb_stop - atb_start;<br />
APP_INFO ("Start/Stop overhead is %d cycles.", atb_oh);<br />
spin_unlock(&init_lock);<br />
<strong>Decorated</strong> <strong>Operations</strong> <strong>for</strong> <strong>QorIQ</strong> <strong>P3</strong>/<strong>P4</strong>/<strong>P5</strong> <strong>Processors</strong>, Rev. A<br />
12 <strong>Freescale</strong> Confidential Proprietary <strong>Freescale</strong> Semiconductor<br />
Preliminary—Subject to Change Without Notice