Options.py (13357:110926e15f1f) Options.py (13432:6ce67b7e6e44)
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

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

39# Authors: Lisa Hsu
40
41import m5
42from m5.defines import buildEnv
43from m5.objects import *
44from common.Benchmarks import *
45
46from common import CpuConfig
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

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

39# Authors: Lisa Hsu
40
41import m5
42from m5.defines import buildEnv
43from m5.objects import *
44from common.Benchmarks import *
45
46from common import CpuConfig
47from common import BPConfig
47from common import MemConfig
48from common import PlatformConfig
49
50def _listCpuTypes(option, opt, value, parser):
51 CpuConfig.print_cpu_list()
52 sys.exit(0)
53
48from common import MemConfig
49from common import PlatformConfig
50
51def _listCpuTypes(option, opt, value, parser):
52 CpuConfig.print_cpu_list()
53 sys.exit(0)
54
55def _listBPTypes(option, opt, value, parser):
56 BPConfig.print_bp_list()
57 sys.exit(0)
58
54def _listMemTypes(option, opt, value, parser):
55 MemConfig.print_mem_list()
56 sys.exit(0)
57
58def _listPlatformTypes(option, opt, value, parser):
59 PlatformConfig.print_platform_list()
60 sys.exit(0)
61

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

141
142 # system options
143 parser.add_option("--list-cpu-types",
144 action="callback", callback=_listCpuTypes,
145 help="List available CPU types")
146 parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU",
147 choices=CpuConfig.cpu_names(),
148 help = "type of cpu to run with")
59def _listMemTypes(option, opt, value, parser):
60 MemConfig.print_mem_list()
61 sys.exit(0)
62
63def _listPlatformTypes(option, opt, value, parser):
64 PlatformConfig.print_platform_list()
65 sys.exit(0)
66

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

146
147 # system options
148 parser.add_option("--list-cpu-types",
149 action="callback", callback=_listCpuTypes,
150 help="List available CPU types")
151 parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU",
152 choices=CpuConfig.cpu_names(),
153 help = "type of cpu to run with")
154 parser.add_option("--list-bp-types",
155 action="callback", callback=_listBPTypes,
156 help="List available branch predictor types")
157 parser.add_option("--bp-type", type="choice", default=None,
158 choices=BPConfig.bp_names(),
159 help = """
160 type of branch predictor to run with
161 (if not set, use the default branch predictor of
162 the selected CPU)""")
149 parser.add_option("--checker", action="store_true");
150 parser.add_option("--cpu-clock", action="store", type="string",
151 default='2GHz',
152 help="Clock for blocks running at CPU speed")
153 parser.add_option("--smt", action="store_true", default=False,
154 help = """
155 Only used if multiple programs are specified. If true,
156 then the number of threads per cpu is same as the

--- 224 unchanged lines hidden ---
163 parser.add_option("--checker", action="store_true");
164 parser.add_option("--cpu-clock", action="store", type="string",
165 default='2GHz',
166 help="Clock for blocks running at CPU speed")
167 parser.add_option("--smt", action="store_true", default=False,
168 help = """
169 Only used if multiple programs are specified. If true,
170 then the number of threads per cpu is same as the

--- 224 unchanged lines hidden ---