diff options
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r-- | configs/common/Options.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py index 6d9c9cf37..58078ec86 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -48,6 +48,7 @@ from m5.objects import * from .Benchmarks import * from . import CpuConfig from . import BPConfig +from . import HWPConfig from . import MemConfig from . import PlatformConfig @@ -59,6 +60,10 @@ def _listBPTypes(option, opt, value, parser): BPConfig.print_bp_list() sys.exit(0) +def _listHWPTypes(option, opt, value, parser): + HWPConfig.print_hwp_list() + sys.exit(0) + def _listMemTypes(option, opt, value, parser): MemConfig.print_mem_list() sys.exit(0) @@ -163,6 +168,29 @@ def addCommonOptions(parser): type of branch predictor to run with (if not set, use the default branch predictor of the selected CPU)""") + parser.add_option("--list-hwp-types", + action="callback", callback=_listHWPTypes, + help="List available hardware prefetcher types") + parser.add_option("--l1i-hwp-type", type="choice", default=None, + choices=HWPConfig.hwp_names(), + help = """ + type of hardware prefetcher to use with the L1 + instruction cache. + (if not set, use the default prefetcher of + the selected cache)""") + parser.add_option("--l1d-hwp-type", type="choice", default=None, + choices=HWPConfig.hwp_names(), + help = """ + type of hardware prefetcher to use with the L1 + data cache. + (if not set, use the default prefetcher of + the selected cache)""") + parser.add_option("--l2-hwp-type", type="choice", default=None, + choices=HWPConfig.hwp_names(), + help = """ + type of hardware prefetcher to use with the L2 cache. + (if not set, use the default prefetcher of + the selected cache)""") parser.add_option("--checker", action="store_true"); parser.add_option("--cpu-clock", action="store", type="string", default='2GHz', |