Config: Add command line options for disk image and memory size
Review Request #1150 - Created April 16, 2012 and submitted
| Information | |
|---|---|
| Jayneel Gandhi | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 8956:3c7003592b5f --------------------------- 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. The memeory size option should be used while using simgle memory. These options provide the interface to provide both disk image and memory size from the command line and gives more flexibility.
Testing done to confirm backward compatibility
Seems fine to me.
Posted (April 17, 2012, 12:56 a.m.)
-
configs/common/Options.py (Diff revision 1) -
What if there are multiple disks?
-
configs/common/Options.py (Diff revision 1) -
What if there are multiple memories? What about memories of different characteristics? (the comment also says disk image...)
-
configs/example/fs.py (Diff revision 1) -
Oversimplification when using distributed memories of different size/type.
-
configs/example/fs.py (Diff revision 1) -
Same as before.
-
configs/example/ruby_fs.py (Diff revision 1) -
Same as before.
Seems to me this is just adding command-line access to override more fields of the SysConfig object. Andreas is right that it's not a fully general solution, but limitation really lies with the way SysConfig works and not with Jayneel's patch. This seems like a reasonable step until/unless someone rewrites the SysConfig stuff to be more general.
Review request changed
Updated (April 23, 2012, 9:55 a.m.)
Summary: |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||
Branch: |
|
|||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+11 -3) |
Ship It!
