Options.py (13774:a1be2a0c55f2) Options.py (13876:1643f200987c)
1# Copyright (c) 2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 34 unchanged lines hidden (view full) ---

43
44import m5
45from m5.defines import buildEnv
46from m5.objects import *
47
48from .Benchmarks import *
49from . import CpuConfig
50from . import BPConfig
1# Copyright (c) 2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 34 unchanged lines hidden (view full) ---

43
44import m5
45from m5.defines import buildEnv
46from m5.objects import *
47
48from .Benchmarks import *
49from . import CpuConfig
50from . import BPConfig
51from . import HWPConfig
51from . import MemConfig
52from . import PlatformConfig
53
54def _listCpuTypes(option, opt, value, parser):
55 CpuConfig.print_cpu_list()
56 sys.exit(0)
57
58def _listBPTypes(option, opt, value, parser):
59 BPConfig.print_bp_list()
60 sys.exit(0)
61
52from . import MemConfig
53from . import PlatformConfig
54
55def _listCpuTypes(option, opt, value, parser):
56 CpuConfig.print_cpu_list()
57 sys.exit(0)
58
59def _listBPTypes(option, opt, value, parser):
60 BPConfig.print_bp_list()
61 sys.exit(0)
62
63def _listHWPTypes(option, opt, value, parser):
64 HWPConfig.print_hwp_list()
65 sys.exit(0)
66
62def _listMemTypes(option, opt, value, parser):
63 MemConfig.print_mem_list()
64 sys.exit(0)
65
66def _listPlatformTypes(option, opt, value, parser):
67 PlatformConfig.print_platform_list()
68 sys.exit(0)
69

--- 88 unchanged lines hidden (view full) ---

158 action="callback", callback=_listBPTypes,
159 help="List available branch predictor types")
160 parser.add_option("--bp-type", type="choice", default=None,
161 choices=BPConfig.bp_names(),
162 help = """
163 type of branch predictor to run with
164 (if not set, use the default branch predictor of
165 the selected CPU)""")
67def _listMemTypes(option, opt, value, parser):
68 MemConfig.print_mem_list()
69 sys.exit(0)
70
71def _listPlatformTypes(option, opt, value, parser):
72 PlatformConfig.print_platform_list()
73 sys.exit(0)
74

--- 88 unchanged lines hidden (view full) ---

163 action="callback", callback=_listBPTypes,
164 help="List available branch predictor types")
165 parser.add_option("--bp-type", type="choice", default=None,
166 choices=BPConfig.bp_names(),
167 help = """
168 type of branch predictor to run with
169 (if not set, use the default branch predictor of
170 the selected CPU)""")
171 parser.add_option("--list-hwp-types",
172 action="callback", callback=_listHWPTypes,
173 help="List available hardware prefetcher types")
174 parser.add_option("--l1i-hwp-type", type="choice", default=None,
175 choices=HWPConfig.hwp_names(),
176 help = """
177 type of hardware prefetcher to use with the L1
178 instruction cache.
179 (if not set, use the default prefetcher of
180 the selected cache)""")
181 parser.add_option("--l1d-hwp-type", type="choice", default=None,
182 choices=HWPConfig.hwp_names(),
183 help = """
184 type of hardware prefetcher to use with the L1
185 data cache.
186 (if not set, use the default prefetcher of
187 the selected cache)""")
188 parser.add_option("--l2-hwp-type", type="choice", default=None,
189 choices=HWPConfig.hwp_names(),
190 help = """
191 type of hardware prefetcher to use with the L2 cache.
192 (if not set, use the default prefetcher of
193 the selected cache)""")
166 parser.add_option("--checker", action="store_true");
167 parser.add_option("--cpu-clock", action="store", type="string",
168 default='2GHz',
169 help="Clock for blocks running at CPU speed")
170 parser.add_option("--smt", action="store_true", default=False,
171 help = """
172 Only used if multiple programs are specified. If true,
173 then the number of threads per cpu is same as the

--- 223 unchanged lines hidden ---
194 parser.add_option("--checker", action="store_true");
195 parser.add_option("--cpu-clock", action="store", type="string",
196 default='2GHz',
197 help="Clock for blocks running at CPU speed")
198 parser.add_option("--smt", action="store_true", default=False,
199 help = """
200 Only used if multiple programs are specified. If true,
201 then the number of threads per cpu is same as the

--- 223 unchanged lines hidden ---