projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14c461c
)
Allow proxies to refer to proxies in config files.
author
Steve Reinhardt
<stever@eecs.umich.edu>
Thu, 17 Mar 2005 04:10:17 +0000
(23:10 -0500)
committer
Steve Reinhardt
<stever@eecs.umich.edu>
Thu, 17 Mar 2005 04:10:17 +0000
(23:10 -0500)
python/m5/config.py:
Allow proxies to refer to other proxies and resolve by recurseivly calling unproxy().
Not sure this works completely (since I don't have any examples to test it on)
but it doesn't seem to break any existing config scripts.
--HG--
extra : convert_revision :
d7fc272d0777d85f89104dfb5d1c5e4d8ddd6d6f
python/m5/config.py
patch
|
blob
|
history
diff --git
a/python/m5/config.py
b/python/m5/config.py
index e6ad5a0ba5a1edb60b55c8283642b4bf1c32d438..8e7576c4190b8eb8f2e9a72a50c5af00e43843d6 100644
(file)
--- a/
python/m5/config.py
+++ b/
python/m5/config.py
@@
-197,12
+197,13
@@
class Proxy(object):
raise AttributeError, \
'Parent of %s type %s not found at path %s' \
% (base.name, ptype, self._path)
- found, done = obj.find(ptype, self._path)
- if isinstance(found, Proxy):
- done = False
+ result, done = obj.find(ptype, self._path)
obj = obj.parent
- return self._mulcheck(found)
+ if isinstance(result, Proxy):
+ result = result.unproxy(obj, ptype)
+
+ return self._mulcheck(result)
def getindex(obj, index):
if index == None: