se.py (8920:99083b5b7ed4) se.py (8926:570b44fe6e04)
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

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

150CPUClass.numThreads = numThreads;
151
152np = options.num_cpus
153
154system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
155 physmem = PhysicalMemory(range=AddrRange("512MB")),
156 membus = Bus(), mem_mode = test_mem_mode)
157
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

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

150CPUClass.numThreads = numThreads;
151
152np = options.num_cpus
153
154system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
155 physmem = PhysicalMemory(range=AddrRange("512MB")),
156 membus = Bus(), mem_mode = test_mem_mode)
157
158# Sanity check
159if options.fastmem and (options.caches or options.l2cache):
160 fatal("You cannot use fastmem in combination with caches!")
161
158for i in xrange(np):
159 system.cpu[i].workload = multiprocesses[i]
160
161 if options.fastmem:
162for i in xrange(np):
163 system.cpu[i].workload = multiprocesses[i]
164
165 if options.fastmem:
162 system.cpu[0].physmem_port = system.physmem.port
166 system.cpu[0].fastmem = True
163
164 if options.checker:
165 system.cpu[i].addCheckerCpu()
166
167if options.ruby:
168 if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
169 print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!"
170 sys.exit(1)

--- 24 unchanged lines hidden ---
167
168 if options.checker:
169 system.cpu[i].addCheckerCpu()
170
171if options.ruby:
172 if not (options.cpu_type == "detailed" or options.cpu_type == "timing"):
173 print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!"
174 sys.exit(1)

--- 24 unchanged lines hidden ---