simulate.py (9195:77fd8912c9d4) simulate.py (9221:4f54b0f229b5)
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

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

198 obj.changeTiming(objects.params.atomic)
199
200def changeToTiming(system):
201 if not isinstance(system, (objects.Root, objects.System)):
202 raise TypeError, "Parameter of type '%s'. Must be type %s or %s." % \
203 (type(system), objects.Root, objects.System)
204
205 if system.getMemoryMode() != objects.params.timing:
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

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

198 obj.changeTiming(objects.params.atomic)
199
200def changeToTiming(system):
201 if not isinstance(system, (objects.Root, objects.System)):
202 raise TypeError, "Parameter of type '%s'. Must be type %s or %s." % \
203 (type(system), objects.Root, objects.System)
204
205 if system.getMemoryMode() != objects.params.timing:
206 doDrain(system)
207 print "Changing memory mode to timing"
208 for obj in system.descendants():
209 obj.changeTiming(objects.params.timing)
210
211def switchCpus(cpuList):
212 print "switching cpus"
213 if not isinstance(cpuList, list):
214 raise RuntimeError, "Must pass a list to this function"

--- 18 unchanged lines hidden ---
206 print "Changing memory mode to timing"
207 for obj in system.descendants():
208 obj.changeTiming(objects.params.timing)
209
210def switchCpus(cpuList):
211 print "switching cpus"
212 if not isinstance(cpuList, list):
213 raise RuntimeError, "Must pass a list to this function"

--- 18 unchanged lines hidden ---