Hello,
I'm just starting to try out gem5, and a I ran into an error today using
the gem5 --list-sim-objects argument. This is from week old gem5 checkout.
david@david-ThinkPad-T410:~/gem5$ build/ARM/gem5.opt --list-sim-objects
...
ArmTLB
size
default: 64
desc: TLB size
walker
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/david/gem5/src/python/m5/main.py", line 243, in main
print " default: %s" % default
File "/home/david/gem5/src/python/m5/SimObject.py", line 833, in __str__
return self.path()
File "/home/david/gem5/src/python/m5/SimObject.py", line 827, in path
ppath = self._parent.path()
TypeError: unbound method path() must be called with ArmTLB instance as
first argument (got nothing instead)
I'm no python expert, but from googling, it seems that _parent returns
the class itself, not a reference to it. Since the path function isn't a
static method, path() fails. Would it be better instead to use the
getmro function for this purpose?
http://docs.python.org/library/inspect.html#inspect.getmro
Thanks,
David
--
David Gloe
gloex...@umn.edu da...@cs.umn.edu dcg...@gmail.com
Masters Student, Computer Science
University of Minnesota
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users