diff options
author | Nathan Binkert <binkertn@umich.edu> | 2006-12-22 21:51:19 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2006-12-22 21:51:19 -0800 |
commit | 91ffe811a33539e914dcd226aebb574136f5d41b (patch) | |
tree | 7dbfe0f5c3d8661b325d0e8fea371ee6ddbddd21 /configs/example/fs.py | |
parent | 139dcbe0889484cbb5a944f4abd0da76608d71b7 (diff) | |
download | gem5-91ffe811a33539e914dcd226aebb574136f5d41b.tar.xz |
Add options for setting the kernel to run and the
script to run
--HG--
extra : convert_revision : 32ad8e08ca74edf042d8606ca4876cbe1193e932
Diffstat (limited to 'configs/example/fs.py')
-rw-r--r-- | configs/example/fs.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index d479d717e..5d7d49616 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -46,6 +46,10 @@ config_root = os.path.dirname(config_path) parser = optparse.OptionParser() +# System options +parser.add_option("--kernel", action="store", type="string") +parser.add_option("--script", action="store", type="string") + # Benchmark options parser.add_option("--l2cache", action="store_true") parser.add_option("--dual", action="store_true", @@ -99,6 +103,12 @@ elif m5.build_env['TARGET_ISA'] == "sparc": else: m5.panic("incapable of building non-alpha or non-sparc full system!") +if options.kernel is not None: + test_sys.kernel = binary(options.kernel) + +if options.script is not None: + test_sys.readfile = options.script + np = options.num_cpus if options.l2cache: |