diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-06-26 16:50:19 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-06-26 16:50:19 -0400 |
commit | d80acd37bdbadb95f7f116e130f98c528ba93abe (patch) | |
tree | 02ae1da7ef4e4cfbe71f2f91877e76b2491bfab1 /configs/test | |
parent | c4be6f1e64a7bdd0c5057e2ab3f6a117444bc8ea (diff) | |
download | gem5-d80acd37bdbadb95f7f116e130f98c528ba93abe.tar.xz |
add python options for input file and command line options for live process
--HG--
extra : convert_revision : 3db1e6d29846812378aa5174179a0686f0141580
Diffstat (limited to 'configs/test')
-rw-r--r-- | configs/test/test.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/test/test.py b/configs/test/test.py index a570c1a08..738219d82 100644 --- a/configs/test/test.py +++ b/configs/test/test.py @@ -12,6 +12,8 @@ from FullO3Config import * parser = optparse.OptionParser(option_list=m5.standardOptions) parser.add_option("-c", "--cmd", default="hello") +parser.add_option("-o", "--options", default="") +parser.add_option("-i", "--input", default="") parser.add_option("-t", "--timing", action="store_true") parser.add_option("-d", "--detailed", action="store_true") parser.add_option("-m", "--maxtick", type="int") @@ -28,7 +30,9 @@ this_dir = os.path.dirname(__file__) process = LiveProcess() process.executable = os.path.join(this_dir, options.cmd) -process.cmd = options.cmd +process.cmd = options.cmd + " " + options.options +if options.input != "": + process.input = options.input magicbus = Bus() mem = PhysicalMemory() |