Options.py (10993:4e27d8806403) Options.py (11238:627dd43a5846)
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
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
48import PlatformConfig
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
49
50from FSConfig import os_types
51
52def _listCpuTypes(option, opt, value, parser):
53 CpuConfig.print_cpu_list()
54 sys.exit(0)
55
56def _listMemTypes(option, opt, value, parser):
57 MemConfig.print_mem_list()
58 sys.exit(0)
59
60def _listPlatformTypes(option, opt, value, parser):
61 PlatformConfig.print_platform_list()
62 sys.exit(0)
63
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")
64def addCommonOptions(parser):
65 # system options
66 parser.add_option("--list-cpu-types",
67 action="callback", callback=_listCpuTypes,
68 help="List available CPU types")
69 parser.add_option("--cpu-type", type="choice", default="atomic",
70 choices=CpuConfig.cpu_names(),
71 help = "type of cpu to run with")

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

263 parser.add_option("--script", action="store", type="string")
264 parser.add_option("--frame-capture", action="store_true",
265 help="Stores changed frame buffers from the VNC server to compressed "\
266 "files in the gem5 output directory")
267
268 if buildEnv['TARGET_ISA'] == "arm":
269 parser.add_option("--bare-metal", action="store_true",
270 help="Provide the raw system without the linux specific bits")
271 parser.add_option("--list-machine-types",
272 action="callback", callback=_listPlatformTypes,
273 help="List available platform types")
266 parser.add_option("--machine-type", action="store", type="choice",
274 parser.add_option("--machine-type", action="store", type="choice",
267 choices=ArmMachineType.map.keys(), default="VExpress_EMM")
275 choices=PlatformConfig.platform_names(),
276 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 ---
277 parser.add_option("--dtb-filename", action="store", type="string",
278 help="Specifies device tree blob file to use with device-tree-"\
279 "enabled kernels")
280 parser.add_option("--enable-context-switch-stats-dump", \
281 action="store_true", help="Enable stats dump at context "\
282 "switches and dump tasks file (required for Streamline)")
283
284 # Benchmark options

--- 25 unchanged lines hidden ---