Mahmood Naderan <mahmood.nt <at> gmail.com> writes:

> 
> maybe this post can point you how to track
> http://www.mail-archive.com/gem5-users <at> gem5.org/msg01966.html
> 
> what do you want to do exactly?
> 
> On 1/28/12, Patrick <plafratt <at> gmail.com> wrote:
> > I'm a little confused as to how the C++ constructor of a SimObject gets
> > called. I see in simulate.py that the "createCCObject" is somehow invoking
> > the C++ constructor, but I don't see how it is doing it. Could someone
> > please point me to documentation that will explain how python is calling
> > these constructors?
> >
> > I am attempting to figure out how to turn on some simple statistics, but
> > the gem5 documentation doesn't seem to give a simple example for how to do
> > this. Does anyone know of a post that gives a simple example of this?
> >
> > Thanks,
> > Patrick
> >
> 

Thank you for the response and the link. As a beginner to gem5, what I am 
trying to accomplish is two things:

1) Learn the general structure of the code (and I am new to SWIG, which is I 
believe why I'm confused about the calling of C++ constructors).
2) Print some existing statistics, so I can eventually learn how to insert new 
ones.

I figured that completing the first task will help me with the second.

Thanks,
Patrick

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to