summaryrefslogtreecommitdiff
path: root/configs/example/ruby_fs.py
diff options
context:
space:
mode:
authorJayneel Gandhi <jayneel@cs.wisc.edu>2012-04-16 17:51:26 -0500
committerJayneel Gandhi <jayneel@cs.wisc.edu>2012-04-16 17:51:26 -0500
commitb5b9d2ad3ead8d0bf06e4546ca7fdd41445b6d2b (patch)
treeed04aa8f60c8e07aa9bdfd012ed72b92de2bebed /configs/example/ruby_fs.py
parenta5187f9d966d967254c71e1fb3545a4745aadc75 (diff)
downloadgem5-b5b9d2ad3ead8d0bf06e4546ca7fdd41445b6d2b.tar.xz
Config: Add command line options for disk image and memory size
Added the options to Options.py for FS mode with backward compatibility. It is good to provide an option to specify the disk image and the memory size from command line since a lot of disk images are created to support different benchmark suites as well as per user needs. Change in program also leads to change in memory requirements. These options provide the interface to provide both disk image and memory size from the command line and gives more flexibility.
Diffstat (limited to 'configs/example/ruby_fs.py')
-rw-r--r--configs/example/ruby_fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/example/ruby_fs.py b/configs/example/ruby_fs.py
index 8f02b8cfd..35e485c7a 100644
--- a/configs/example/ruby_fs.py
+++ b/configs/example/ruby_fs.py
@@ -71,7 +71,7 @@ if options.benchmark:
print "Valid benchmarks are: %s" % DefinedBenchmarks
sys.exit(1)
else:
- bm = [SysConfig()]
+ bm = [SysConfig(disk=options.disk_image, mem=options.mem_size)]
# Check for timing mode because ruby does not support atomic accesses
if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):