04-04-09-Opti

From Msim

Jump to: navigation, search

There refer to the optimizations made in sim-outorder.c


DCRA has been adjusted to remove two conditionals:
Old:

if(fast[i])
{
 num_fa++;
}
else
{
 num_sa++;
}

New:

num_fa += fast[i];
num_sa += (!fast[i]);

Minor fixes to the fetch code:
Old:

if(lat > cores[core_num].cache_il1_lat)
 last_inst_missed = TRUE;

New:

last_inst_missed = (lat > cores[core_num].cache_il1_lat);

Old:

if(tlb_lat 1)
 last_inst_tmissed = TRUE;

New:

last_inst_tmissed = (tlb_lat > 1);
Personal tools