se.py (9268:a0ca00815cc4) se.py (9317:2daeea4bce1b)
1# Copyright (c) 2012 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

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

155 fatal("You cannot use SMT with multiple CPUs!")
156
157np = options.num_cpus
158system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
159 physmem = SimpleMemory(range=AddrRange("512MB")),
160 membus = CoherentBus(), mem_mode = test_mem_mode)
161
162# Sanity check
1# Copyright (c) 2012 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

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

155 fatal("You cannot use SMT with multiple CPUs!")
156
157np = options.num_cpus
158system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
159 physmem = SimpleMemory(range=AddrRange("512MB")),
160 membus = CoherentBus(), mem_mode = test_mem_mode)
161
162# Sanity check
163if options.fastmem and (options.caches or options.l2cache):
164 fatal("You cannot use fastmem in combination with caches!")
163if options.fastmem:
164 if CPUClass != AtomicSimpleCPU:
165 fatal("Fastmem can only be used with atomic CPU!")
166 if (options.caches or options.l2cache):
167 fatal("You cannot use fastmem in combination with caches!")
165
166for i in xrange(np):
167 if options.smt:
168 system.cpu[i].workload = multiprocesses
169 elif len(multiprocesses) == 1:
170 system.cpu[i].workload = multiprocesses[0]
171 else:
172 system.cpu[i].workload = multiprocesses[i]

--- 40 unchanged lines hidden ---
168
169for i in xrange(np):
170 if options.smt:
171 system.cpu[i].workload = multiprocesses
172 elif len(multiprocesses) == 1:
173 system.cpu[i].workload = multiprocesses[0]
174 else:
175 system.cpu[i].workload = multiprocesses[i]

--- 40 unchanged lines hidden ---