Config: Change the way options are added
Review Request #1115 - Created March 24, 2012 and submitted
| Information | |
|---|---|
| Nilay Vaish | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 8921:9328fdaf0992 --------------------------- Config: Change the way options are added I am not too happy with the way options are added in files se.py and fs.py currently. This patch moves all the options to the file Options.py, functions from which are called when required.
Issue Summary
2
1
1
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| Anyone know why we did this as opposed to import Options before? Is it something to do with relative path ... | Ali Saidi | March 25, 2012, 3:10 a.m. | Open |
Posted (March 25, 2012, 3:10 a.m.)
-
configs/example/se.py (Diff revision 1) -
Anyone know why we did this as opposed to import Options before? Is it something to do with relative path import in python 2.4 vs 2.5?
Posted (March 25, 2012, 11:29 a.m.)
-
configs/common/Options.py (Diff revision 1) -
This bit of code to set m5_root seems like overkill since m5_root is only used to set a default path for cmd that I expect is never used. I'd be in favor of not having a default for cmd and then getting rid of these lines.
Review request changed
Updated (March 27, 2012, 9:38 a.m.)
Description: |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+158 -187) |
Thanks, Nilay!
