Options.py (11837:17b37f38944a) Options.py (11995:d3dbd5a6b19a)
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

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

130def addCommonOptions(parser):
131 # start by adding the base options that do not assume an ISA
132 addNoISAOptions(parser)
133
134 # system options
135 parser.add_option("--list-cpu-types",
136 action="callback", callback=_listCpuTypes,
137 help="List available CPU types")
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

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

130def addCommonOptions(parser):
131 # start by adding the base options that do not assume an ISA
132 addNoISAOptions(parser)
133
134 # system options
135 parser.add_option("--list-cpu-types",
136 action="callback", callback=_listCpuTypes,
137 help="List available CPU types")
138 parser.add_option("--cpu-type", type="choice", default="atomic",
138 parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU",
139 choices=CpuConfig.cpu_names(),
140 help = "type of cpu to run with")
141 parser.add_option("--checker", action="store_true");
142 parser.add_option("--cpu-clock", action="store", type="string",
143 default='2GHz',
144 help="Clock for blocks running at CPU speed")
145 parser.add_option("--smt", action="store_true", default=False,
146 help = """

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

248 help="take a checkpoint at end of run")
249 parser.add_option("--work-begin-checkpoint-count", action="store", type="int",
250 help="checkpoint at specified work begin count")
251 parser.add_option("--work-end-checkpoint-count", action="store", type="int",
252 help="checkpoint at specified work end count")
253 parser.add_option("--work-cpus-checkpoint-count", action="store", type="int",
254 help="checkpoint and exit when active cpu count is reached")
255 parser.add_option("--restore-with-cpu", action="store", type="choice",
139 choices=CpuConfig.cpu_names(),
140 help = "type of cpu to run with")
141 parser.add_option("--checker", action="store_true");
142 parser.add_option("--cpu-clock", action="store", type="string",
143 default='2GHz',
144 help="Clock for blocks running at CPU speed")
145 parser.add_option("--smt", action="store_true", default=False,
146 help = """

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

248 help="take a checkpoint at end of run")
249 parser.add_option("--work-begin-checkpoint-count", action="store", type="int",
250 help="checkpoint at specified work begin count")
251 parser.add_option("--work-end-checkpoint-count", action="store", type="int",
252 help="checkpoint at specified work end count")
253 parser.add_option("--work-cpus-checkpoint-count", action="store", type="int",
254 help="checkpoint and exit when active cpu count is reached")
255 parser.add_option("--restore-with-cpu", action="store", type="choice",
256 default="atomic", choices=CpuConfig.cpu_names(),
256 default="AtomicSimpleCPU", choices=CpuConfig.cpu_names(),
257 help = "cpu type for restoring from a checkpoint")
258
259
260 # CPU Switching - default switch model goes from a checkpoint
261 # to a timing simple CPU with caches to warm up, then to detailed CPU for
262 # data measurement
263 parser.add_option("--repeat-switch", action="store", type="int",
264 default=None,

--- 106 unchanged lines hidden ---
257 help = "cpu type for restoring from a checkpoint")
258
259
260 # CPU Switching - default switch model goes from a checkpoint
261 # to a timing simple CPU with caches to warm up, then to detailed CPU for
262 # data measurement
263 parser.add_option("--repeat-switch", action="store", type="int",
264 default=None,

--- 106 unchanged lines hidden ---