On Wed, Jan 4, 2012 at 7:09 AM, Andreas Hansson <[email protected]>wrote:

>
>
> > On 2012-01-03 16:42:00, Ali Saidi wrote:
> > > Why do you need setParent()? You could make every simobject have a
> parameter called System and have the default value be Parent.any (see
> src/dev/Device.py).
>
> After attempting a "simple" implementation as suggested, with one line in
> SimObject.py my conclusion is that it is more complicated than what it
> seems. Conceptually it is a good idea (there is no inherent reason why the
> whole setParent() is needed), but I struggle to get Python to appreciate
> the Param and Parent objects. Do you have any suggestions on how to do this?


Can you be more specific with what you tried and why/how it didn't work?

BTW, I intend to get to your other patches on reviewboard soon; between
work and the holidays I've been kind of swamped lately.  Thanks for your
patience!

Steve
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to