Options.py revision 13774
12292SN/A# Copyright (c) 2013 ARM Limited
27597Sminkyu.jeong@arm.com# All rights reserved.
37597Sminkyu.jeong@arm.com#
47597Sminkyu.jeong@arm.com# The license below extends only to copyright in the software and shall
57597Sminkyu.jeong@arm.com# not be construed as granting a license to any other intellectual
67597Sminkyu.jeong@arm.com# property including but not limited to intellectual property relating
77597Sminkyu.jeong@arm.com# to a hardware implementation of the functionality of the software
87597Sminkyu.jeong@arm.com# licensed hereunder.  You may use the software subject to the license
97597Sminkyu.jeong@arm.com# terms below provided that you ensure that this notice is replicated
107597Sminkyu.jeong@arm.com# unmodified and in its entirety in all distributions of the software,
117597Sminkyu.jeong@arm.com# modified or unmodified, in source code or in binary form.
127597Sminkyu.jeong@arm.com#
137597Sminkyu.jeong@arm.com# Copyright (c) 2006-2008 The Regents of The University of Michigan
142292SN/A# All rights reserved.
152292SN/A#
162292SN/A# Redistribution and use in source and binary forms, with or without
172292SN/A# modification, are permitted provided that the following conditions are
182292SN/A# met: redistributions of source code must retain the above copyright
192292SN/A# notice, this list of conditions and the following disclaimer;
202292SN/A# redistributions in binary form must reproduce the above copyright
212292SN/A# notice, this list of conditions and the following disclaimer in the
222292SN/A# documentation and/or other materials provided with the distribution;
232292SN/A# neither the name of the copyright holders nor the names of its
242292SN/A# contributors may be used to endorse or promote products derived from
252292SN/A# this software without specific prior written permission.
262292SN/A#
272292SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
282292SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
292292SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
302292SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
312292SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
322292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
332292SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
342292SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
352292SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
362292SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
372292SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
382292SN/A#
392689Sktlim@umich.edu# Authors: Lisa Hsu
402689Sktlim@umich.edu
412689Sktlim@umich.edufrom __future__ import print_function
422292SN/Afrom __future__ import absolute_import
432292SN/A
443326Sktlim@umich.eduimport m5
458229Snate@binkert.orgfrom m5.defines import buildEnv
466658Snate@binkert.orgfrom m5.objects import *
472733Sktlim@umich.edu
482907Sktlim@umich.edufrom .Benchmarks import *
492292SN/Afrom . import CpuConfig
508232Snate@binkert.orgfrom . import BPConfig
518232Snate@binkert.orgfrom . import MemConfig
528232Snate@binkert.orgfrom . import PlatformConfig
532722Sktlim@umich.edu
542669Sktlim@umich.edudef _listCpuTypes(option, opt, value, parser):
552292SN/A    CpuConfig.print_cpu_list()
562790Sktlim@umich.edu    sys.exit(0)
572790Sktlim@umich.edu
582790Sktlim@umich.edudef _listBPTypes(option, opt, value, parser):
592790Sktlim@umich.edu    BPConfig.print_bp_list()
602669Sktlim@umich.edu    sys.exit(0)
612678Sktlim@umich.edu
622678Sktlim@umich.edudef _listMemTypes(option, opt, value, parser):
635606Snate@binkert.org    MemConfig.print_mem_list()
642292SN/A    sys.exit(0)
652678Sktlim@umich.edu
662292SN/Adef _listPlatformTypes(option, opt, value, parser):
672292SN/A    PlatformConfig.print_platform_list()
682669Sktlim@umich.edu    sys.exit(0)
692292SN/A
702678Sktlim@umich.edu# Add the very basic options that work also in the case of the no ISA
712292SN/A# being used, and consequently no CPUs, but rather various types of
722678Sktlim@umich.edu# testers and traffic generators.
732678Sktlim@umich.edudef addNoISAOptions(parser):
742678Sktlim@umich.edu    parser.add_option("-n", "--num-cpus", type="int", default=1)
754319Sktlim@umich.edu    parser.add_option("--sys-voltage", action="store", type="string",
764319Sktlim@umich.edu                      default='1.0V',
774319Sktlim@umich.edu                      help = """Top-level voltage for blocks running at system
784319Sktlim@umich.edu                      power supply""")
794319Sktlim@umich.edu    parser.add_option("--sys-clock", action="store", type="string",
802678Sktlim@umich.edu                      default='1GHz',
812678Sktlim@umich.edu                      help = """Top-level clock for blocks running at system
822292SN/A                      speed""")
832678Sktlim@umich.edu
842678Sktlim@umich.edu    # Memory Options
855336Shines@cs.fsu.edu    parser.add_option("--list-mem-types",
862678Sktlim@umich.edu                      action="callback", callback=_listMemTypes,
874873Sstever@eecs.umich.edu                      help="List available memory types")
882678Sktlim@umich.edu    parser.add_option("--mem-type", type="choice", default="DDR3_1600_8x8",
892292SN/A                      choices=MemConfig.mem_names(),
902678Sktlim@umich.edu                      help = "type of memory to use")
912678Sktlim@umich.edu    parser.add_option("--mem-channels", type="int", default=1,
922678Sktlim@umich.edu                      help = "number of memory channels")
932678Sktlim@umich.edu    parser.add_option("--mem-ranks", type="int", default=None,
942678Sktlim@umich.edu                      help = "number of memory ranks per channel")
952678Sktlim@umich.edu    parser.add_option("--mem-size", action="store", type="string",
967852SMatt.Horsnell@arm.com                      default="512MB",
977852SMatt.Horsnell@arm.com                      help="Specify the physical memory size (single memory)")
982344SN/A
992678Sktlim@umich.edu
1002678Sktlim@umich.edu    parser.add_option("--memchecker", action="store_true")
1014986Ssaidi@eecs.umich.edu
1024986Ssaidi@eecs.umich.edu    # Cache Options
1036974Stjones1@inf.ed.ac.uk    parser.add_option("--external-memory-system", type="string",
1046974Stjones1@inf.ed.ac.uk                      help="use external ports of this port_type for caches")
1056974Stjones1@inf.ed.ac.uk    parser.add_option("--tlm-memory", type="string",
1066974Stjones1@inf.ed.ac.uk                      help="use external port for SystemC TLM cosimulation")
1076974Stjones1@inf.ed.ac.uk    parser.add_option("--caches", action="store_true")
1086974Stjones1@inf.ed.ac.uk    parser.add_option("--l2cache", action="store_true")
1096974Stjones1@inf.ed.ac.uk    parser.add_option("--num-dirs", type="int", default=1)
1102678Sktlim@umich.edu    parser.add_option("--num-l2caches", type="int", default=1)
1112820Sktlim@umich.edu    parser.add_option("--num-l3caches", type="int", default=1)
1122678Sktlim@umich.edu    parser.add_option("--l1d_size", type="string", default="64kB")
1132678Sktlim@umich.edu    parser.add_option("--l1i_size", type="string", default="32kB")
1146974Stjones1@inf.ed.ac.uk    parser.add_option("--l2_size", type="string", default="2MB")
1156974Stjones1@inf.ed.ac.uk    parser.add_option("--l3_size", type="string", default="16MB")
1166974Stjones1@inf.ed.ac.uk    parser.add_option("--l1d_assoc", type="int", default=2)
1176974Stjones1@inf.ed.ac.uk    parser.add_option("--l1i_assoc", type="int", default=2)
1186974Stjones1@inf.ed.ac.uk    parser.add_option("--l2_assoc", type="int", default=8)
1196974Stjones1@inf.ed.ac.uk    parser.add_option("--l3_assoc", type="int", default=16)
1202678Sktlim@umich.edu    parser.add_option("--cacheline_size", type="int", default=64)
1212678Sktlim@umich.edu
1222678Sktlim@umich.edu    # Enable Ruby
1232678Sktlim@umich.edu    parser.add_option("--ruby", action="store_true")
1242678Sktlim@umich.edu
1252344SN/A    # Run duration options
1262307SN/A    parser.add_option("-m", "--abs-max-tick", type="int", default=m5.MaxTick,
1276974Stjones1@inf.ed.ac.uk                      metavar="TICKS", help="Run to absolute simulated tick "
1286974Stjones1@inf.ed.ac.uk                      "specified including ticks from a restored checkpoint")
1296974Stjones1@inf.ed.ac.uk    parser.add_option("--rel-max-tick", type="int", default=None,
1306974Stjones1@inf.ed.ac.uk                      metavar="TICKS", help="Simulate for specified number of"
1312678Sktlim@umich.edu                      " ticks relative to the simulation start tick (e.g. if "
1324032Sktlim@umich.edu                      "restoring a checkpoint)")
1332678Sktlim@umich.edu    parser.add_option("--maxtime", type="float", default=None,
1342292SN/A                      help="Run to the specified absolute simulated time in "
1352292SN/A                      "seconds")
1362292SN/A    parser.add_option("-P", "--param", action="append", default=[],
1372292SN/A        help="Set a SimObject parameter relative to the root node. "
1388545Ssaidi@eecs.umich.edu             "An extended Python multi range slicing syntax can be used "
1392678Sktlim@umich.edu             "for arrays. For example: "
1406974Stjones1@inf.ed.ac.uk             "'system.cpu[0,1,3:8:2].max_insts_all_threads = 42' "
1412292SN/A             "sets max_insts_all_threads for cpus 0, 1, 3, 5 and 7 "
1422292SN/A             "Direct parameters of the root object are not accessible, "
1432292SN/A             "only parameters of its children.")
1442292SN/A
1452292SN/A# Add common options that assume a non-NULL ISA.
1465529Snate@binkert.orgdef addCommonOptions(parser):
1475529Snate@binkert.org    # start by adding the base options that do not assume an ISA
1485529Snate@binkert.org    addNoISAOptions(parser)
1492292SN/A
1504329Sktlim@umich.edu    # system options
1514329Sktlim@umich.edu    parser.add_option("--list-cpu-types",
1524329Sktlim@umich.edu                      action="callback", callback=_listCpuTypes,
1534329Sktlim@umich.edu                      help="List available CPU types")
1542292SN/A    parser.add_option("--cpu-type", type="choice", default="AtomicSimpleCPU",
1552307SN/A                      choices=CpuConfig.cpu_names(),
1562307SN/A                      help = "type of cpu to run with")
1578545Ssaidi@eecs.umich.edu    parser.add_option("--list-bp-types",
1588545Ssaidi@eecs.umich.edu                      action="callback", callback=_listBPTypes,
1592907Sktlim@umich.edu                      help="List available branch predictor types")
1602907Sktlim@umich.edu    parser.add_option("--bp-type", type="choice", default=None,
1612292SN/A                      choices=BPConfig.bp_names(),
1622292SN/A                      help = """
1632329SN/A                      type of branch predictor to run with
1642329SN/A                      (if not set, use the default branch predictor of
1652329SN/A                      the selected CPU)""")
1662292SN/A    parser.add_option("--checker", action="store_true");
1672292SN/A    parser.add_option("--cpu-clock", action="store", type="string",
1682292SN/A                      default='2GHz',
1692292SN/A                      help="Clock for blocks running at CPU speed")
1708199SAli.Saidi@ARM.com    parser.add_option("--smt", action="store_true", default=False,
1718199SAli.Saidi@ARM.com                      help = """
1728199SAli.Saidi@ARM.com                      Only used if multiple programs are specified. If true,
1732292SN/A                      then the number of threads per cpu is same as the
1742292SN/A                      number of programs.""")
1752292SN/A    parser.add_option("--elastic-trace-en", action="store_true",
1762292SN/A                      help="""Enable capture of data dependency and instruction
1772292SN/A                      fetch traces using elastic trace probe.""")
1782292SN/A    # Trace file paths input to trace probe in a capture simulation and input
1792292SN/A    # to Trace CPU in a replay simulation
1803492Sktlim@umich.edu    parser.add_option("--inst-trace-file", action="store", type="string",
1812329SN/A                      help="""Instruction fetch trace file input to
1822292SN/A                      Elastic Trace probe in a capture simulation and
1832292SN/A                      Trace CPU in a replay simulation""", default="")
1842292SN/A    parser.add_option("--data-trace-file", action="store", type="string",
1852292SN/A                      help="""Data dependency trace file input to
1862292SN/A                      Elastic Trace probe in a capture simulation and
1872292SN/A                      Trace CPU in a replay simulation""", default="")
1882292SN/A
1892292SN/A    parser.add_option("-l", "--lpae", action="store_true")
1902292SN/A    parser.add_option("-V", "--virtualisation", action="store_true")
1912292SN/A
1922292SN/A    # dist-gem5 options
1938247Snate@binkert.org    parser.add_option("--dist", action="store_true",
1942292SN/A                      help="Parallel distributed gem5 simulation.")
1952292SN/A    parser.add_option("--dist-sync-on-pseudo-op", action="store_true",
1962292SN/A                      help="Use a pseudo-op to start dist-gem5 synchronization.")
1972292SN/A    parser.add_option("--is-switch", action="store_true",
1982292SN/A                      help="Select the network switch simulator process for a"\
1992727Sktlim@umich.edu                      "distributed gem5 run")
2002727Sktlim@umich.edu    parser.add_option("--dist-rank", default=0, action="store", type="int",
2012727Sktlim@umich.edu                      help="Rank of this system within the dist gem5 run.")
2022727Sktlim@umich.edu    parser.add_option("--dist-size", default=0, action="store", type="int",
2032727Sktlim@umich.edu                      help="Number of gem5 processes within the dist gem5 run.")
2042727Sktlim@umich.edu    parser.add_option("--dist-server-name",
2052727Sktlim@umich.edu                      default="127.0.0.1",
2062727Sktlim@umich.edu                      action="store", type="string",
2072727Sktlim@umich.edu                      help="Name of the message server host\nDEFAULT: localhost")
2082727Sktlim@umich.edu    parser.add_option("--dist-server-port",
2092727Sktlim@umich.edu                      default=2200,
2102727Sktlim@umich.edu                      action="store", type="int",
2112727Sktlim@umich.edu                      help="Message server listen port\nDEFAULT: 2200")
2122727Sktlim@umich.edu    parser.add_option("--dist-sync-repeat",
2132727Sktlim@umich.edu                      default="0us",
2142727Sktlim@umich.edu                      action="store", type="string",
2152727Sktlim@umich.edu                      help="Repeat interval for synchronisation barriers among dist-gem5 processes\nDEFAULT: --ethernet-linkdelay")
2162727Sktlim@umich.edu    parser.add_option("--dist-sync-start",
2172361SN/A                      default="5200000000000t",
2182361SN/A                      action="store", type="string",
2192361SN/A                      help="Time to schedule the first dist synchronisation barrier\nDEFAULT:5200000000000t")
2202361SN/A    parser.add_option("--ethernet-linkspeed", default="10Gbps",
2212727Sktlim@umich.edu                        action="store", type="string",
2222727Sktlim@umich.edu                        help="Link speed in bps\nDEFAULT: 10Gbps")
2232727Sktlim@umich.edu    parser.add_option("--ethernet-linkdelay", default="10us",
2242727Sktlim@umich.edu                      action="store", type="string",
2252727Sktlim@umich.edu                      help="Link delay in seconds\nDEFAULT: 10us")
2262727Sktlim@umich.edu
2272727Sktlim@umich.edu    # Run duration options
2282727Sktlim@umich.edu    parser.add_option("-I", "--maxinsts", action="store", type="int",
2292727Sktlim@umich.edu                      default=None, help="""Total number of instructions to
2302727Sktlim@umich.edu                                            simulate (default: run forever)""")
2312727Sktlim@umich.edu    parser.add_option("--work-item-id", action="store", type="int",
2322727Sktlim@umich.edu                      help="the specific work id for exit & checkpointing")
2332727Sktlim@umich.edu    parser.add_option("--num-work-ids", action="store", type="int",
2342727Sktlim@umich.edu                      help="Number of distinct work item types")
2352727Sktlim@umich.edu    parser.add_option("--work-begin-cpu-id-exit", action="store", type="int",
2362727Sktlim@umich.edu                      help="exit when work starts on the specified cpu")
2372727Sktlim@umich.edu    parser.add_option("--work-end-exit-count", action="store", type="int",
2382727Sktlim@umich.edu                      help="exit at specified work end count")
2392727Sktlim@umich.edu    parser.add_option("--work-begin-exit-count", action="store", type="int",
2402727Sktlim@umich.edu                      help="exit at specified work begin count")
2412727Sktlim@umich.edu    parser.add_option("--init-param", action="store", type="int", default=0,
2422727Sktlim@umich.edu                      help="""Parameter available in simulation with m5
2432727Sktlim@umich.edu                              initparam""")
2444329Sktlim@umich.edu    parser.add_option("--initialize-only", action="store_true", default=False,
2454329Sktlim@umich.edu                      help="""Exit after initialization. Do not simulate time.
2464329Sktlim@umich.edu                              Useful when gem5 is run as a library.""")
2474329Sktlim@umich.edu
2484329Sktlim@umich.edu    # Simpoint options
2494329Sktlim@umich.edu    parser.add_option("--simpoint-profile", action="store_true",
2504329Sktlim@umich.edu                      help="Enable basic block profiling for SimPoints")
2514329Sktlim@umich.edu    parser.add_option("--simpoint-interval", type="int", default=10000000,
2524329Sktlim@umich.edu                      help="SimPoint interval in num of instructions")
2534329Sktlim@umich.edu    parser.add_option("--take-simpoint-checkpoints", action="store", type="string",
2544329Sktlim@umich.edu        help="<simpoint file,weight file,interval-length,warmup-length>")
2554329Sktlim@umich.edu    parser.add_option("--restore-simpoint-checkpoint", action="store_true",
2564329Sktlim@umich.edu        help="restore from a simpoint checkpoint taken with " +
2572292SN/A             "--take-simpoint-checkpoints")
2582292SN/A
2592292SN/A    # Checkpointing options
2602292SN/A    ###Note that performing checkpointing via python script files will override
2612292SN/A    ###checkpoint instructions built into binaries.
2622292SN/A    parser.add_option("--take-checkpoints", action="store", type="string",
2632292SN/A        help="<M,N> take checkpoints at tick M and every N ticks thereafter")
2642292SN/A    parser.add_option("--max-checkpoints", action="store", type="int",
2652292SN/A        help="the maximum number of checkpoints to drop", default=5)
2662292SN/A    parser.add_option("--checkpoint-dir", action="store", type="string",
2672292SN/A        help="Place all checkpoints in this absolute directory")
2682292SN/A    parser.add_option("-r", "--checkpoint-restore", action="store", type="int",
2692292SN/A        help="restore from checkpoint <N>")
2702292SN/A    parser.add_option("--checkpoint-at-end", action="store_true",
2712307SN/A                      help="take a checkpoint at end of run")
2722307SN/A    parser.add_option("--work-begin-checkpoint-count", action="store", type="int",
2732307SN/A                      help="checkpoint at specified work begin count")
2742367SN/A    parser.add_option("--work-end-checkpoint-count", action="store", type="int",
2752367SN/A                      help="checkpoint at specified work end count")
2762307SN/A    parser.add_option("--work-cpus-checkpoint-count", action="store", type="int",
2772367SN/A                      help="checkpoint and exit when active cpu count is reached")
2782307SN/A    parser.add_option("--restore-with-cpu", action="store", type="choice",
2792329SN/A                      default="AtomicSimpleCPU", choices=CpuConfig.cpu_names(),
2802307SN/A                      help = "cpu type for restoring from a checkpoint")
2812307SN/A
2822307SN/A
2832307SN/A    # CPU Switching - default switch model goes from a checkpoint
2842307SN/A    # to a timing simple CPU with caches to warm up, then to detailed CPU for
2852307SN/A    # data measurement
2862307SN/A    parser.add_option("--repeat-switch", action="store", type="int",
2872307SN/A        default=None,
2882307SN/A        help="switch back and forth between CPUs with period <N>")
2892307SN/A    parser.add_option("-s", "--standard-switch", action="store", type="int",
2902307SN/A        default=None,
2912307SN/A        help="switch from timing to Detailed CPU after warmup period of <N>")
2922307SN/A    parser.add_option("-p", "--prog-interval", type="str",
2932307SN/A        help="CPU Progress Interval")
2942307SN/A
2952329SN/A    # Fastforwarding and simpoint related materials
2962307SN/A    parser.add_option("-W", "--warmup-insts", action="store", type="int",
2972307SN/A        default=None,
2982307SN/A        help="Warmup period in total instructions (requires --standard-switch)")
2992307SN/A    parser.add_option("--bench", action="store", type="string", default=None,
3002307SN/A        help="base names for --take-checkpoint and --checkpoint-restore")
3012307SN/A    parser.add_option("-F", "--fast-forward", action="store", type="string",
3028545Ssaidi@eecs.umich.edu        default=None,
3038545Ssaidi@eecs.umich.edu        help="Number of instructions to fast forward before switching")
3048545Ssaidi@eecs.umich.edu    parser.add_option("-S", "--simpoint", action="store_true", default=False,
3052307SN/A        help="""Use workload simpoints as an instruction offset for
3062307SN/A                --checkpoint-restore or --take-checkpoint.""")
3072307SN/A    parser.add_option("--at-instruction", action="store_true", default=False,
3082307SN/A        help="""Treat value of --checkpoint-restore or --take-checkpoint as a
3092292SN/A                number of instructions.""")
3102292SN/A    parser.add_option("--spec-input", default="ref", type="choice",
3112329SN/A                      choices=["ref", "test", "train", "smred", "mdred",
3122329SN/A                               "lgred"],
3132292SN/A                      help="Input set size for SPEC CPU2000 benchmarks.")
3142329SN/A    parser.add_option("--arm-iset", default="arm", type="choice",
3152329SN/A                      choices=["arm", "thumb", "aarch64"],
3162292SN/A                      help="ARM instruction set.")
3172292SN/A
3182292SN/A
3192292SN/Adef addSEOptions(parser):
3202292SN/A    # Benchmark options
3212329SN/A    parser.add_option("-c", "--cmd", default="",
3222292SN/A                      help="The binary to run in syscall emulation mode.")
3232292SN/A    parser.add_option("-o", "--options", default="",
3242292SN/A                      help="""The options to pass to the binary, use " "
3252292SN/A                              around the entire string""")
3262292SN/A    parser.add_option("-e", "--env", default="",
3272292SN/A                      help="Initialize workload environment from text file.")
3282292SN/A    parser.add_option("-i", "--input", default="",
3292292SN/A                      help="Read stdin from a file.")
3302329SN/A    parser.add_option("--output", default="",
3312329SN/A                      help="Redirect stdout to a file.")
3322329SN/A    parser.add_option("--errout", default="",
3332292SN/A                      help="Redirect stderr to a file.")
3342292SN/A
3352292SN/Adef addFSOptions(parser):
3362292SN/A    from .FSConfig import os_types
3372292SN/A
3382329SN/A    # Simulation options
3392292SN/A    parser.add_option("--timesync", action="store_true",
3402292SN/A            help="Prevent simulated time from getting ahead of real time")
3412292SN/A
3422292SN/A    # System options
3432292SN/A    parser.add_option("--kernel", action="store", type="string")
3442292SN/A    parser.add_option("--os-type", action="store", type="choice",
3452292SN/A                      choices=os_types[str(buildEnv['TARGET_ISA'])],
3462292SN/A                      default="linux",
3472292SN/A                      help="Specifies type of OS to boot")
3482292SN/A    parser.add_option("--script", action="store", type="string")
3492292SN/A    parser.add_option("--frame-capture", action="store_true",
3502292SN/A            help="Stores changed frame buffers from the VNC server to compressed "\
3512292SN/A            "files in the gem5 output directory")
3522292SN/A
3532292SN/A    if buildEnv['TARGET_ISA'] == "arm":
3542292SN/A        parser.add_option("--bare-metal", action="store_true",
3552292SN/A                   help="Provide the raw system without the linux specific bits")
3562292SN/A        parser.add_option("--list-machine-types",
3572292SN/A                          action="callback", callback=_listPlatformTypes,
3582292SN/A                      help="List available platform types")
3592292SN/A        parser.add_option("--machine-type", action="store", type="choice",
3602292SN/A                choices=PlatformConfig.platform_names(),
3612292SN/A                default="VExpress_EMM")
3622292SN/A        parser.add_option("--dtb-filename", action="store", type="string",
3632329SN/A              help="Specifies device tree blob file to use with device-tree-"\
3642329SN/A              "enabled kernels")
3652292SN/A        parser.add_option("--enable-security-extensions", action="store_true",
3667720Sgblack@eecs.umich.edu              help="Turn on the ARM Security Extensions")
3677720Sgblack@eecs.umich.edu        parser.add_option("--enable-context-switch-stats-dump", \
3682292SN/A                action="store_true", help="Enable stats dump at context "\
3692292SN/A                "switches and dump tasks file (required for Streamline)")
3702292SN/A
3712292SN/A    # Benchmark options
3722292SN/A    parser.add_option("--dual", action="store_true",
3732292SN/A                      help="Simulate two systems attached with an ethernet link")
3742292SN/A    parser.add_option("-b", "--benchmark", action="store", type="string",
3752292SN/A                      dest="benchmark",
3762292SN/A                      help="Specify the benchmark to run. Available benchmarks: %s"\
3772292SN/A                      % DefinedBenchmarks)
3782292SN/A
3792292SN/A    # Metafile options
3802292SN/A    parser.add_option("--etherdump", action="store", type="string", dest="etherdump",
3812292SN/A                      help="Specify the filename to dump a pcap capture of the" \
3822292SN/A                      "ethernet traffic")
3832292SN/A
3842292SN/A    # Disk Image Options
3852292SN/A    parser.add_option("--disk-image", action="store", type="string", default=None,
3862292SN/A                      help="Path to the disk image to use.")
3872292SN/A    parser.add_option("--root-device", action="store", type="string", default=None,
3882292SN/A                      help="OS device name for root partition")
3892292SN/A
3902292SN/A    # Command line options
3912292SN/A    parser.add_option("--command-line", action="store", type="string",
3927720Sgblack@eecs.umich.edu                      default=None,
3937720Sgblack@eecs.umich.edu                      help="Template for the kernel command line.")
3942292SN/A    parser.add_option("--command-line-file", action="store",
3952292SN/A                      default=None, type="string",
3962292SN/A                      help="File with a template for the kernel command line")
3972292SN/A