Sort the sim objects in the python output

python/m5/config.py:
    Turn back on the sorting of sim objects so we get consistent
    output.  This can lead to slight changes in stats.

--HG--
extra : convert_revision : 8ef9bd534cd2344acd69af7f52ee90b8b1afeb24
This commit is contained in:
Nathan Binkert 2005-03-22 00:08:54 -05:00
parent fc04f8015f
commit eebe4e7fcc

View file

@ -781,9 +781,8 @@ class Node(object):
# before cpu0). Changing ordering can also influence timing # before cpu0). Changing ordering can also influence timing
# in the current memory system, as caches get added to a bus # in the current memory system, as caches get added to a bus
# in different orders which affects their priority in the # in different orders which affects their priority in the
# case of simulataneous requests. We should uncomment the # case of simulataneous requests.
# following line once we take care of that issue. self.children.sort(lambda x,y: cmp(x.name, y.name))
# self.children.sort(lambda x,y: cmp(x.name, y.name))
children = [ c.name for c in self.children if not c.paramcontext] children = [ c.name for c in self.children if not c.paramcontext]
print 'children =', ' '.join(children) print 'children =', ' '.join(children)