Yea, you'll need a rather new version for the ISA is a SimObject change.

Thanks,
Ali

On Jun 7, 2013, at 3:05 PM, Guru Prasad <[email protected]> wrote:

> Hi Ali,
> 
> Thank you for your response and insight.
> 
> Sadly, I think in the version that I'm using (rev. 9197) class ISA is not 
> extending class SimObject
> 
> class ThreadContext;
> class Checkpoint;
> class EventManager;
> 
> namespace ArmISA
> {
>     class ISA
>     {
>       protected:
>         MiscReg miscRegs[NumMiscRegs];
>         ...
>         ...
> 
> 
> This I believe rules out method 1 and 3..(I don't know the 'name' of the 
> instance of the ISA object..for the moment I tried everything from ArmISA, 
> TheISA, isa, ISA..but since it doesn't extend SimObject, this was probably 
> futile)
> 
> I will try to get there using a system pointer, thanks!
> 
> 
> Regards
> Guru
> 
> 
> 
> On Fri, Jun 7, 2013 at 3:20 PM, Ali Saidi <[email protected]> wrote:
> 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
> 
> _______________________________________________
> 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

Reply via email to