Deleted Added
sdiff udiff text old ( 10993:4e27d8806403 ) new ( 11238:627dd43a5846 )
full compact
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

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

40
41import m5
42from m5.defines import buildEnv
43from m5.objects import *
44from Benchmarks import *
45
46import CpuConfig
47import MemConfig
48
49from FSConfig import os_types
50
51def _listCpuTypes(option, opt, value, parser):
52 CpuConfig.print_cpu_list()
53 sys.exit(0)
54
55def _listMemTypes(option, opt, value, parser):
56 MemConfig.print_mem_list()
57 sys.exit(0)
58
59def addCommonOptions(parser):
60 # system options
61 parser.add_option("--list-cpu-types",
62 action="callback", callback=_listCpuTypes,
63 help="List available CPU types")
64 parser.add_option("--cpu-type", type="choice", default="atomic",
65 choices=CpuConfig.cpu_names(),
66 help = "type of cpu to run with")

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

258 parser.add_option("--script", action="store", type="string")
259 parser.add_option("--frame-capture", action="store_true",
260 help="Stores changed frame buffers from the VNC server to compressed "\
261 "files in the gem5 output directory")
262
263 if buildEnv['TARGET_ISA'] == "arm":
264 parser.add_option("--bare-metal", action="store_true",
265 help="Provide the raw system without the linux specific bits")
266 parser.add_option("--machine-type", action="store", type="choice",
267 choices=ArmMachineType.map.keys(), default="VExpress_EMM")
268 parser.add_option("--dtb-filename", action="store", type="string",
269 help="Specifies device tree blob file to use with device-tree-"\
270 "enabled kernels")
271 parser.add_option("--enable-context-switch-stats-dump", \
272 action="store_true", help="Enable stats dump at context "\
273 "switches and dump tasks file (required for Streamline)")
274
275 # Benchmark options

--- 25 unchanged lines hidden ---