Standard Switch: Drain the system before switching CPUs
authorJoel Hestness <hestness@cs.wisc.edu>
Thu, 13 Sep 2012 02:41:37 +0000 (21:41 -0500)
committerJoel Hestness <hestness@cs.wisc.edu>
Thu, 13 Sep 2012 02:41:37 +0000 (21:41 -0500)
commit234fa4cf7ecd16350c1095830d26f94b2bfd3eb9
treeb9e29dccf07623bd982d6042fa852c9b99f5390b
parent16dcb723c11afb91cc3428294bd3106425114949
Standard Switch: Drain the system before switching CPUs
When switching from an atomic CPU to any of the timing CPUs, a drain is
unnecessary since no events are scheduled in atomic mode. However, when
trying to switch CPUs starting with a timing CPU, there may be events
scheduled. This change ensures that all events are drained from the system
by calling m5.drain before switching CPUs.
configs/common/Simulation.py
src/python/m5/simulate.py