I have a full-system m5.debug simulation which I am running in Sampler
mode, and during simulation I invoke "m5 resetstats." Recently, after
realizing this was not working, I took a look through the source to
determine the problem, and realized that the boolean variable
doStatisticsInsts is being set to false on line 704 of
encumbered/cpu/full/cpu.cc in the code fragment pasted below:
//////////////////////////////////////////////
#if FULL_SYSTEM
/**
* @todo this here is a hack to make sure that none of this crap
* happens in full_cpu. The quiesce especically screws up full cpu.
*/
using namespace AlphaPseudo;
doStatisticsInsts = false;
doCheckpointInsts = false;
doQuiesce = false;
#endif
//////////////////////////////////////////////
I was wondering if there is a good workaround for this. Should I start in
DetailedCPU mode instead of using Sampler, or perhaps do this stat
resetting/dumping in m5.opt instead?
Also, out of curiosity, what is the harm of changing doStatisticsInsts
back to true? Will simulation fail?
Thanks in advance,
Adam Kaplan
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users