fs.py (12598:b80b2d9a251b) | fs.py (12941:24771c7aee2e) |
---|---|
1# Copyright (c) 2010-2013, 2016 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 --- 52 unchanged lines hidden (view full) --- 61from common.Benchmarks import * 62from common import Simulation 63from common import CacheConfig 64from common import MemConfig 65from common import CpuConfig 66from common.Caches import * 67from common import Options 68 | 1# Copyright (c) 2010-2013, 2016 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 --- 52 unchanged lines hidden (view full) --- 61from common.Benchmarks import * 62from common import Simulation 63from common import CacheConfig 64from common import MemConfig 65from common import CpuConfig 66from common.Caches import * 67from common import Options 68 |
69 70# Check if KVM support has been enabled, we might need to do VM 71# configuration if that's the case. 72have_kvm_support = 'BaseKvmCPU' in globals() 73def is_kvm_cpu(cpu_class): 74 return have_kvm_support and cpu_class != None and \ 75 issubclass(cpu_class, BaseKvmCPU) 76 | |
77def cmd_line_template(): 78 if options.command_line and options.command_line_file: 79 print("Error: --command-line and --command-line-file are " 80 "mutually exclusive") 81 sys.exit(1) 82 if options.command_line: 83 return options.command_line 84 if options.command_line_file: --- 58 unchanged lines hidden (view full) --- 143 test_sys.have_virtualization = True 144 145 test_sys.init_param = options.init_param 146 147 # For now, assign all the CPUs to the same clock domain 148 test_sys.cpu = [TestCPUClass(clk_domain=test_sys.cpu_clk_domain, cpu_id=i) 149 for i in xrange(np)] 150 | 69def cmd_line_template(): 70 if options.command_line and options.command_line_file: 71 print("Error: --command-line and --command-line-file are " 72 "mutually exclusive") 73 sys.exit(1) 74 if options.command_line: 75 return options.command_line 76 if options.command_line_file: --- 58 unchanged lines hidden (view full) --- 135 test_sys.have_virtualization = True 136 137 test_sys.init_param = options.init_param 138 139 # For now, assign all the CPUs to the same clock domain 140 test_sys.cpu = [TestCPUClass(clk_domain=test_sys.cpu_clk_domain, cpu_id=i) 141 for i in xrange(np)] 142 |
151 if is_kvm_cpu(TestCPUClass) or is_kvm_cpu(FutureClass): | 143 if CpuConfig.is_kvm_cpu(TestCPUClass) or CpuConfig.is_kvm_cpu(FutureClass): |
152 test_sys.kvm_vm = KvmVM() 153 154 if options.ruby: 155 bootmem = getattr(test_sys, 'bootmem', None) 156 Ruby.create_system(options, True, test_sys, test_sys.iobus, 157 test_sys._dma_ports, bootmem) 158 159 # Create a seperate clock domain for Ruby --- 117 unchanged lines hidden (view full) --- 277 drive_sys.cpu.createThreads() 278 drive_sys.cpu.createInterruptController() 279 drive_sys.cpu.connectAllPorts(drive_sys.membus) 280 if options.fastmem: 281 drive_sys.cpu.fastmem = True 282 if options.kernel is not None: 283 drive_sys.kernel = binary(options.kernel) 284 | 144 test_sys.kvm_vm = KvmVM() 145 146 if options.ruby: 147 bootmem = getattr(test_sys, 'bootmem', None) 148 Ruby.create_system(options, True, test_sys, test_sys.iobus, 149 test_sys._dma_ports, bootmem) 150 151 # Create a seperate clock domain for Ruby --- 117 unchanged lines hidden (view full) --- 269 drive_sys.cpu.createThreads() 270 drive_sys.cpu.createInterruptController() 271 drive_sys.cpu.connectAllPorts(drive_sys.membus) 272 if options.fastmem: 273 drive_sys.cpu.fastmem = True 274 if options.kernel is not None: 275 drive_sys.kernel = binary(options.kernel) 276 |
285 if is_kvm_cpu(DriveCPUClass): | 277 if CpuConfig.is_kvm_cpu(DriveCPUClass): |
286 drive_sys.kvm_vm = KvmVM() 287 288 drive_sys.iobridge = Bridge(delay='50ns', 289 ranges = drive_sys.mem_ranges) 290 drive_sys.iobridge.slave = drive_sys.iobus.master 291 drive_sys.iobridge.master = drive_sys.membus.slave 292 293 # Create the appropriate memory controllers and connect them to the --- 106 unchanged lines hidden --- | 278 drive_sys.kvm_vm = KvmVM() 279 280 drive_sys.iobridge = Bridge(delay='50ns', 281 ranges = drive_sys.mem_ranges) 282 drive_sys.iobridge.slave = drive_sys.iobus.master 283 drive_sys.iobridge.master = drive_sys.membus.slave 284 285 # Create the appropriate memory controllers and connect them to the --- 106 unchanged lines hidden --- |