simulate.py (9262:547845010c08) simulate.py (9326:96ae1c545fb5)
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

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

202 system.setMemoryMode(objects.params.atomic)
203
204def changeToTiming(system):
205 if not isinstance(system, (objects.Root, objects.System)):
206 raise TypeError, "Parameter of type '%s'. Must be type %s or %s." % \
207 (type(system), objects.Root, objects.System)
208
209 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

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

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

--- 17 unchanged lines hidden ---
211 print "Changing memory mode to timing"
212 system.setMemoryMode(objects.params.timing)
213
214def switchCpus(cpuList):
215 print "switching cpus"
216 if not isinstance(cpuList, list):
217 raise RuntimeError, "Must pass a list to this function"
218 for item in cpuList:

--- 17 unchanged lines hidden ---