Hi Nikos,
I wanted to store some data at the end of the simulation. After finding the old
solution
(https://m5-dev.m5sim.narkive.com/R5frBw8D/gem5-dev-printing-tlb-statistics-at-end-of-simulation)
and the explanation on why that solution is not working anymore
(https://gem5.atlassian.net/browse/GEM5-698), I finally found your solution,
and it solved my problem. Thank you.
In brief, the solution was :
1- Add CallBack to .hh file : #include "base/callback.hh"
2- Call myFunction in constructor of .cc file using Callback :
registerExitCallback([this]() { myFunc(); });
3- Add myFunction to .hh : void myFunc();
4- Define myFunction body in .cc : void ::myFunc() { }
It may be useful for the beginners like me ;)
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s