summaryrefslogtreecommitdiff
path: root/src/python/m5/main.py
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2009-05-11 19:44:34 -0400
committerKorey Sewell <ksewell@umich.edu>2009-05-11 19:44:34 -0400
commita63cc2ff5fbba0e42a7aa39bfce6b6e2310fd52a (patch)
tree0952c5678b449ffd8def645fec2b714c4960df9e /src/python/m5/main.py
parenteea2b02b04a3076969dd607aca739b96d94b6155 (diff)
parentf21e80ec72cf68ad859f18a2886297004ea9f959 (diff)
downloadgem5-a63cc2ff5fbba0e42a7aa39bfce6b6e2310fd52a.tar.xz
Merge Ruby Stuff
Diffstat (limited to 'src/python/m5/main.py')
-rw-r--r--src/python/m5/main.py27
1 files changed, 9 insertions, 18 deletions
diff --git a/src/python/m5/main.py b/src/python/m5/main.py
index 98019b197..2a308ff09 100644
--- a/src/python/m5/main.py
+++ b/src/python/m5/main.py
@@ -121,6 +121,15 @@ set_group("Help Options")
add_option("--list-sim-objects", action='store_true', default=False,
help="List all built-in SimObjects, their parameters and default values")
+# load the options.py config file to allow people to set their own
+# default options
+options_file = config.get('options.py')
+if options_file:
+ scope = { 'options' : options }
+ execfile(options_file, scope)
+
+arguments = options.parse_args()
+
def main():
import core
import debug
@@ -136,15 +145,6 @@ def main():
fatal("Tracing is not enabled. Compile with TRACING_ON")
- # load the options.py config file to allow people to set their own
- # default options
- options_file = config.get('options.py')
- if options_file:
- scope = { 'options' : options }
- execfile(options_file, scope)
-
- arguments = options.parse_args()
-
if not os.path.isdir(options.outdir):
os.makedirs(options.outdir)
@@ -366,15 +366,6 @@ def main():
if __name__ == '__main__':
from pprint import pprint
- # load the options.py config file to allow people to set their own
- # default options
- options_file = config.get('options.py')
- if options_file:
- scope = { 'options' : options }
- execfile(options_file, scope)
-
- arguments = options.parse_args()
-
print 'opts:'
pprint(options, indent=4)
print