Posted (May 26, 2011, 4:29 p.m.)
What does Self.all do? What is it for? You have one use in the change so I have a basic idea, but it would be helpful to know the specifics.
Posted (May 27, 2011, 1:10 p.m.)
-
src/python/m5/SimObject.py (Diff revision 1) -
Does this do what you want? It doesn't seem like it would recurse down the tree and find all nodes that match (or does it?)
-
src/python/m5/params.py (Diff revision 1) -
what exactly is this doing? Also, what happens if val is of length 2 and the first element is a list or tuple? Seems like an error condition or you're doing something wrong.
-
src/python/m5/proxy.py (Diff revision 1) -
Seems like Mr Doxygen should be documenting this file a bit better :) Also, what does Parent.all do? It'd be nice if you described Self.all and Parent.all in this file.
Posted (May 28, 2011, 2:20 a.m.)
-
src/python/m5/params.py (Diff revision 1) -
The all proxy object is going to return an array which in then going to get turned into [[all,objects,that,match]]. we don't want this.
-
src/python/m5/proxy.py (Diff revision 1) -
Parent.all would find every object above you in the hierarchy that matched, although I've never tried it. I only use self.all.. I can add a description for those two. Will you add one for the rest of the proxy objets? :)
Posted (May 28, 2011, 10:22 a.m.)
-
src/sim/System.py (Diff revision 1) -
It seems odd that Parent.any here will generate an error if there are multiple matches, but Self.all only is necessary if there are multiple matches. I think the reason it's not a problem is that this Parent.any proxy on physmem is never used. Should we get rid of it?
