fs.py (12941:24771c7aee2e) fs.py (13012:5fbc6b9c64bc)
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

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

183 test_sys.iocache.cpu_side = test_sys.iobus.master
184 test_sys.iocache.mem_side = test_sys.membus.slave
185 elif not options.external_memory_system:
186 test_sys.iobridge = Bridge(delay='50ns', ranges = test_sys.mem_ranges)
187 test_sys.iobridge.slave = test_sys.iobus.master
188 test_sys.iobridge.master = test_sys.membus.slave
189
190 # Sanity check
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

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

183 test_sys.iocache.cpu_side = test_sys.iobus.master
184 test_sys.iocache.mem_side = test_sys.membus.slave
185 elif not options.external_memory_system:
186 test_sys.iobridge = Bridge(delay='50ns', ranges = test_sys.mem_ranges)
187 test_sys.iobridge.slave = test_sys.iobus.master
188 test_sys.iobridge.master = test_sys.membus.slave
189
190 # Sanity check
191 if options.fastmem:
192 if TestCPUClass != AtomicSimpleCPU:
193 fatal("Fastmem can only be used with atomic CPU!")
194 if (options.caches or options.l2cache):
195 fatal("You cannot use fastmem in combination with caches!")
196
197 if options.simpoint_profile:
191 if options.simpoint_profile:
198 if not options.fastmem:
199 # Atomic CPU checked with fastmem option already
200 fatal("SimPoint generation should be done with atomic cpu and fastmem")
192 if not CpuConfig.is_atomic_cpu(TestCPUClass):
193 fatal("SimPoint generation should be done with atomic cpu")
201 if np > 1:
202 fatal("SimPoint generation not supported with more than one CPUs")
203
204 for i in xrange(np):
194 if np > 1:
195 fatal("SimPoint generation not supported with more than one CPUs")
196
197 for i in xrange(np):
205 if options.fastmem:
206 test_sys.cpu[i].fastmem = True
207 if options.simpoint_profile:
208 test_sys.cpu[i].addSimPointProbe(options.simpoint_interval)
209 if options.checker:
210 test_sys.cpu[i].addCheckerCpu()
211 test_sys.cpu[i].createThreads()
212
213 # If elastic tracing is enabled when not restoring from checkpoint and
214 # when not fast forwarding using the atomic cpu, then check that the

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

264 voltage_domain =
265 drive_sys.cpu_voltage_domain)
266
267 drive_sys.cpu = DriveCPUClass(clk_domain=drive_sys.cpu_clk_domain,
268 cpu_id=0)
269 drive_sys.cpu.createThreads()
270 drive_sys.cpu.createInterruptController()
271 drive_sys.cpu.connectAllPorts(drive_sys.membus)
198 if options.simpoint_profile:
199 test_sys.cpu[i].addSimPointProbe(options.simpoint_interval)
200 if options.checker:
201 test_sys.cpu[i].addCheckerCpu()
202 test_sys.cpu[i].createThreads()
203
204 # If elastic tracing is enabled when not restoring from checkpoint and
205 # when not fast forwarding using the atomic cpu, then check that the

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

255 voltage_domain =
256 drive_sys.cpu_voltage_domain)
257
258 drive_sys.cpu = DriveCPUClass(clk_domain=drive_sys.cpu_clk_domain,
259 cpu_id=0)
260 drive_sys.cpu.createThreads()
261 drive_sys.cpu.createInterruptController()
262 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
277 if CpuConfig.is_kvm_cpu(DriveCPUClass):
278 drive_sys.kvm_vm = KvmVM()
279
280 drive_sys.iobridge = Bridge(delay='50ns',
281 ranges = drive_sys.mem_ranges)

--- 110 unchanged lines hidden ---
263 if options.kernel is not None:
264 drive_sys.kernel = binary(options.kernel)
265
266 if CpuConfig.is_kvm_cpu(DriveCPUClass):
267 drive_sys.kvm_vm = KvmVM()
268
269 drive_sys.iobridge = Bridge(delay='50ns',
270 ranges = drive_sys.mem_ranges)

--- 110 unchanged lines hidden ---