Options.py (13883:f44e21d3aaa7) Options.py (13958:1945df12e5b0)
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

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

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
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

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

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
67def _listIndirectBPTypes(option, opt, value, parser):
68 BPConfig.print_indirect_bp_list()
69 sys.exit(0)
70
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

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

157 action="callback", callback=_listCpuTypes,
158 help="List available CPU types")
159 parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU",
160 choices=CpuConfig.cpu_names(),
161 help = "type of cpu to run with")
162 parser.add_option("--list-bp-types",
163 action="callback", callback=_listBPTypes,
164 help="List available branch predictor types")
71def _listMemTypes(option, opt, value, parser):
72 MemConfig.print_mem_list()
73 sys.exit(0)
74
75def _listPlatformTypes(option, opt, value, parser):
76 PlatformConfig.print_platform_list()
77 sys.exit(0)
78

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

161 action="callback", callback=_listCpuTypes,
162 help="List available CPU types")
163 parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU",
164 choices=CpuConfig.cpu_names(),
165 help = "type of cpu to run with")
166 parser.add_option("--list-bp-types",
167 action="callback", callback=_listBPTypes,
168 help="List available branch predictor types")
169 parser.add_option("--list-indirect-bp-types",
170 action="callback", callback=_listIndirectBPTypes,
171 help="List available indirect 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)""")
172 parser.add_option("--bp-type", type="choice", default=None,
173 choices=BPConfig.bp_names(),
174 help = """
175 type of branch predictor to run with
176 (if not set, use the default branch predictor of
177 the selected CPU)""")
178 parser.add_option("--indirect-bp-type", type="choice",
179 default="SimpleIndirectPredictor",
180 choices=BPConfig.indirect_bp_names(),
181 help = "type of indirect branch predictor to run with")
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.

--- 259 unchanged lines hidden ---
182 parser.add_option("--list-hwp-types",
183 action="callback", callback=_listHWPTypes,
184 help="List available hardware prefetcher types")
185 parser.add_option("--l1i-hwp-type", type="choice", default=None,
186 choices=HWPConfig.hwp_names(),
187 help = """
188 type of hardware prefetcher to use with the L1
189 instruction cache.

--- 259 unchanged lines hidden ---