diff options
author | Jayneel Gandhi <jayneel@cs.wisc.edu> | 2012-04-16 17:51:26 -0500 |
---|---|---|
committer | Jayneel Gandhi <jayneel@cs.wisc.edu> | 2012-04-16 17:51:26 -0500 |
commit | b5b9d2ad3ead8d0bf06e4546ca7fdd41445b6d2b (patch) | |
tree | ed04aa8f60c8e07aa9bdfd012ed72b92de2bebed /configs/common | |
parent | a5187f9d966d967254c71e1fb3545a4745aadc75 (diff) | |
download | gem5-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/common')
-rw-r--r-- | configs/common/Options.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py index d22b3ab3c..9413283f1 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -171,3 +171,11 @@ def addFSOptions(parser): parser.add_option("--etherdump", action="store", type="string", dest="etherdump", help="Specify the filename to dump a pcap capture of the" \ "ethernet traffic") + + # Disk Image Options + parser.add_option("--disk-image", action="store", type="string", default=None, + help="Path to the disk image to use.") + + # Memory Size Options + parser.add_option("--mem-size", action="store", type="string", default=None, + help="Path to the disk image to use.") |