From d80acd37bdbadb95f7f116e130f98c528ba93abe Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 26 Jun 2006 16:50:19 -0400 Subject: [PATCH] add python options for input file and command line options for live process --HG-- extra : convert_revision : 3db1e6d29846812378aa5174179a0686f0141580 --- configs/test/test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()