Hello Mahmood,
>From the counters that you listed, I think the best way is to add your own
>stat counters. You can add your counters to the decoder of your simulator and
>increment them with every incoming instruction. If you want to classify them
>you can look at the opcode (Sparc v9 ISA) and decide the type (e.g., branch,
>load, store, fp).
The opcode is already captured in v9DecoderImpl.cpp with the following piece of
code:
theOpcode = (dynamic_cast< v9Instruction *>( inst.get() ))->getOpcode();
FLEXUS_CHANNEL( DispatchedInstructionOut ) << theOpcode;
Regards,
Onur
On Sep 10, 2011, at 3:22 PM, Mahmood Naderan wrote:
> Hi,
> while feeding flexus stat counter to McPAT, I can not find the corresponding
> stat for some counters. Also I am not sure about some others.
>
>
> McPAT:<stat name="total_instructions" value="54995388"/>
> Flexus: ??????
>
> McPAT: <stat name="int_instructions" value="18246314"/>
> McPAT: <stat name="fp_instructions" value="34652688"/>
> Flexus: ????
>
>
>
> McPAT: <stat name="branch_instructions" value="1520689"/>
> Flexus: sys-fag-branches
>
> McPAT: <stat name="branch_mispredictions" value="104975"/>
> Flexus: sys-fag-mispredict
>
> McPAT: <stat name="load_instructions" value="0"/>
> Flexus: sys-uarch-InsnCount:User:Load + sys-uarch-InsnCount:Trap:Load +
> sys-uarch-InsnCount:System:Load
>
>
> McPAT: <stat name="store_instructions" value="50000"/>
> Flexus: sys-uarch-InsnCount:User:Store + sys-uarch-InsnCount:Trap:Store +
> sys-uarch-InsnCount:System:Store
>
>
> McPAT: <stat name="committed_instructions" value="54995388"/>
> Flexus: sys-uarch-Commits
>
> McPAT: <stat name="committed_int_instructions" value="200000"/>
> McPAT: <stat name="committed_fp_instructions" value="100000"/>
>
> Flexus: ?????
>
> Please share any suggestion. Thanks
>
> // Naderan *Mahmood;