Hi Guru, You can use the static method SimObject::find() and pass the name of the ISA object, you can also probably get there from a system pointer by going through the ThreadContext.
As far as registering a stat, since the ISA object has become a simobject, if you override the regStats method you can register it there. Ali On Jun 7, 2013, at 10:37 AM, Guru Prasad <[email protected]> wrote: > Hi, > > I would like to monitor a particular register in the ARM architecture and get > its output periodically using dumpstats. > > I have gone through stat_control.cc and understood (partially) about how the > statistics system works. However, I don't understand how to add a *register* > to the statistics. > > How can I add a register to stat_control? > Is there any way I can obtain a reference to an object of class ISA? > > > Regards > Guru > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
