fs.py (7586:da93206873dc) | fs.py (7861:4ebff121cc0e) |
---|---|
1# Copyright (c) 2010 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 --- 51 unchanged lines hidden (view full) --- 60from Caches import * 61 62# Get paths we might need. It's expected this file is in m5/configs/example. 63config_path = os.path.dirname(os.path.abspath(__file__)) 64config_root = os.path.dirname(config_path) 65 66parser = optparse.OptionParser() 67 | 1# Copyright (c) 2010 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 --- 51 unchanged lines hidden (view full) --- 60from Caches import * 61 62# Get paths we might need. It's expected this file is in m5/configs/example. 63config_path = os.path.dirname(os.path.abspath(__file__)) 64config_root = os.path.dirname(config_path) 65 66parser = optparse.OptionParser() 67 |
68# Simulation options 69parser.add_option("--timesync", action="store_true", 70 help="Prevent simulated time from getting ahead of real time") 71 |
|
68# System options 69parser.add_option("--kernel", action="store", type="string") 70parser.add_option("--script", action="store", type="string") 71if buildEnv['TARGET_ISA'] == "arm": 72 parser.add_option("--bare-metal", action="store_true", 73 help="Provide the raw system without the linux specific bits") 74 parser.add_option("--machine-type", action="store", type="choice", 75 choices=ArmMachineType.map.keys(), default="RealView_PBX") --- 106 unchanged lines hidden (view full) --- 182 183 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 184elif len(bm) == 1: 185 root = Root(system=test_sys) 186else: 187 print "Error I don't know how to create more than 2 systems." 188 sys.exit(1) 189 | 72# System options 73parser.add_option("--kernel", action="store", type="string") 74parser.add_option("--script", action="store", type="string") 75if buildEnv['TARGET_ISA'] == "arm": 76 parser.add_option("--bare-metal", action="store_true", 77 help="Provide the raw system without the linux specific bits") 78 parser.add_option("--machine-type", action="store", type="choice", 79 choices=ArmMachineType.map.keys(), default="RealView_PBX") --- 106 unchanged lines hidden (view full) --- 186 187 root = makeDualRoot(test_sys, drive_sys, options.etherdump) 188elif len(bm) == 1: 189 root = Root(system=test_sys) 190else: 191 print "Error I don't know how to create more than 2 systems." 192 sys.exit(1) 193 |
194if options.timesync: 195 root.time_sync_enable = True 196 |
|
190Simulation.run(options, root, test_sys, FutureClass) | 197Simulation.run(options, root, test_sys, FutureClass) |