diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-03-05 19:28:43 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-03-05 19:28:43 -0500 |
commit | e5f945967b2d49f3c14384be947a12dbf02260da (patch) | |
tree | bc915297641a5599e88c18d4486616c3eec9904e | |
parent | 0804a7530fe57e8a68e3d7620ebc70a3d431633a (diff) | |
download | gem5-e5f945967b2d49f3c14384be947a12dbf02260da.tar.xz |
Sort fields in .ini files generated by Python config
to make it easier to diff output from modified versions.
sim/pyconfig/m5config.py:
Sort .ini outputs for repeatable results across versions.
--HG--
extra : convert_revision : fa918f2c53635eca3a02ce02af9b320eacd1f057
-rw-r--r-- | sim/pyconfig/m5config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/pyconfig/m5config.py b/sim/pyconfig/m5config.py index c413fef71..17a0d8f42 100644 --- a/sim/pyconfig/m5config.py +++ b/sim/pyconfig/m5config.py @@ -698,9 +698,11 @@ class Node(object): # instantiate children in same order they were added for # backward compatibility (else we can end up with cpu1 # before cpu0). + self.children.sort(lambda x,y: cmp(x.name, y.name)) children = [ c.name for c in self.children if not c.paramcontext] print 'children =', ' '.join(children) + self.params.sort(lambda x,y: cmp(x.name, y.name)) for param in self.params: try: if param.value is None: |