One way to do this is to expose the function via swig and call it from python in the switchCpus() function in python/m5/simulate.py.
On Tue, Mar 8, 2011 at 1:48 PM, Adwait Jog <[email protected]> wrote: > Hi, > > Is there any way to know (at run time) the Tick at which cpu will switch to > the detailed mode. I want to trigger one function in cache/lru.cc at the > tick, at which cpu switches. > Any other alternative is also ok. > > For e.g, > if (curTick > switchTick) { > trigger my function > } > > Moreover, M5 wiki says, > Note that M5 may have to simulate for a few cycles prior to switching CPUs > due to any outstanding state that may be present in the CPUs being switched > out. > > Thanks > Adwait > > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users >
_______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
