From b5b9d2ad3ead8d0bf06e4546ca7fdd41445b6d2b Mon Sep 17 00:00:00 2001 From: Jayneel Gandhi Date: Mon, 16 Apr 2012 17:51:26 -0500 Subject: 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. --- configs/example/fs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configs/example/fs.py') diff --git a/configs/example/fs.py b/configs/example/fs.py index 38571fec3..33dc63af4 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -86,9 +86,9 @@ if options.benchmark: sys.exit(1) else: if options.dual: - bm = [SysConfig(), SysConfig()] + bm = [SysConfig(disk=options.disk_image, mem=options.mem_size), SysConfig(disk=options.disk_image, mem=options.mem_size)] else: - bm = [SysConfig()] + bm = [SysConfig(disk=options.disk_image, mem=options.mem_size)] np = options.num_cpus -- cgit v1.2.3