Options.py (10697:71c40e5c8bd4) | Options.py (10747:3fe41011333d) |
---|---|
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 --- 32 unchanged lines hidden (view full) --- 41import m5 42from m5.defines import buildEnv 43from m5.objects import * 44from Benchmarks import * 45 46import CpuConfig 47import MemConfig 48 | 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 --- 32 unchanged lines hidden (view full) --- 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 |
|
49def _listCpuTypes(option, opt, value, parser): 50 CpuConfig.print_cpu_list() 51 sys.exit(0) 52 53def _listMemTypes(option, opt, value, parser): 54 MemConfig.print_mem_list() 55 sys.exit(0) 56 --- 179 unchanged lines hidden (view full) --- 236 237def addFSOptions(parser): 238 # Simulation options 239 parser.add_option("--timesync", action="store_true", 240 help="Prevent simulated time from getting ahead of real time") 241 242 # System options 243 parser.add_option("--kernel", action="store", type="string") | 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 --- 179 unchanged lines hidden (view full) --- 238 239def addFSOptions(parser): 240 # Simulation options 241 parser.add_option("--timesync", action="store_true", 242 help="Prevent simulated time from getting ahead of real time") 243 244 # System options 245 parser.add_option("--kernel", action="store", type="string") |
246 parser.add_option("--os-type", action="store", type="choice", 247 choices=os_types[buildEnv['TARGET_ISA']], default="linux", 248 help="Specifies type of OS to boot") |
|
244 parser.add_option("--script", action="store", type="string") 245 parser.add_option("--frame-capture", action="store_true", 246 help="Stores changed frame buffers from the VNC server to compressed "\ 247 "files in the gem5 output directory") 248 249 if buildEnv['TARGET_ISA'] == "arm": 250 parser.add_option("--bare-metal", action="store_true", 251 help="Provide the raw system without the linux specific bits") --- 35 unchanged lines hidden --- | 249 parser.add_option("--script", action="store", type="string") 250 parser.add_option("--frame-capture", action="store_true", 251 help="Stores changed frame buffers from the VNC server to compressed "\ 252 "files in the gem5 output directory") 253 254 if buildEnv['TARGET_ISA'] == "arm": 255 parser.add_option("--bare-metal", action="store_true", 256 help="Provide the raw system without the linux specific bits") --- 35 unchanged lines hidden --- |