se.py (9647:5b6b315472e7) se.py (9665:6dbdeee787cc)
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

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

145 print >> sys.stderr, "No workload specified. Exiting!\n"
146 sys.exit(1)
147
148
149(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
150CPUClass.clock = options.clock
151CPUClass.numThreads = numThreads
152
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

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

145 print >> sys.stderr, "No workload specified. Exiting!\n"
146 sys.exit(1)
147
148
149(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
150CPUClass.clock = options.clock
151CPUClass.numThreads = numThreads
152
153MemClass = Simulation.setMemClass(options)
154
153# Check -- do not allow SMT with multiple CPUs
154if options.smt and options.num_cpus > 1:
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)],
155# Check -- do not allow SMT with multiple CPUs
156if options.smt and options.num_cpus > 1:
157 fatal("You cannot use SMT with multiple CPUs!")
158
159np = options.num_cpus
160system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
159 physmem = SimpleMemory(range=AddrRange("512MB")),
161 physmem = MemClass(range=AddrRange("512MB")),
160 membus = CoherentBus(), mem_mode = test_mem_mode)
161
162# Sanity check
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!")

--- 64 unchanged lines hidden ---
162 membus = CoherentBus(), mem_mode = test_mem_mode)
163
164# Sanity check
165if options.fastmem:
166 if CPUClass != AtomicSimpleCPU:
167 fatal("Fastmem can only be used with atomic CPU!")
168 if (options.caches or options.l2cache):
169 fatal("You cannot use fastmem in combination with caches!")

--- 64 unchanged lines hidden ---