diff -r a0ca00815cc4 -r 928a955e742b configs/common/Options.py --- a/configs/common/Options.py Fri Sep 28 09:35:25 2012 -0400 +++ b/configs/common/Options.py Wed Oct 03 17:30:13 2012 +0200 @@ -32,6 +32,10 @@ from Benchmarks import * def addCommonOptions(parser): + parser.add_option("--post-script", type="string", + help = "script to execute after configuration " + "(provides 'root' and 'options')") + # system options parser.add_option("--cpu-type", type="choice", default="atomic", choices = ["atomic", "timing", "detailed", "inorder", diff -r a0ca00815cc4 -r 928a955e742b configs/example/fs.py --- a/configs/example/fs.py Fri Sep 28 09:35:25 2012 -0400 +++ b/configs/example/fs.py Wed Oct 03 17:30:13 2012 +0200 @@ -181,4 +181,13 @@ VncServer.frame_capture = True Simulation.setWorkCountOptions(test_sys, options) + +# Let the user finish-up setting parameters +if options.post_script: + variables = {"root": root, "options": options} + execfile(options.post_script, variables) + options = variables["options"] + root = variables["root"] + test_sys = root.system + Simulation.run(options, root, test_sys, FutureClass) diff -r a0ca00815cc4 -r 928a955e742b configs/example/se.py --- a/configs/example/se.py Fri Sep 28 09:35:25 2012 -0400 +++ b/configs/example/se.py Wed Oct 03 17:30:13 2012 +0200 @@ -209,4 +209,13 @@ CacheConfig.config_cache(options, system) root = Root(full_system = False, system = system) + +# Let the user finish-up setting parameters +if options.post_script: + variables = {"root": root, "options": options} + execfile(options.post_script, variables) + options = variables["options"] + root = variables["root"] + system = root.system + Simulation.run(options, root, system, FutureClass)