python: Remove redundant drain when changing memory modes
Review Request #2871 - Created June 8, 2015 and submitted
| Information | |
|---|---|
| Andreas Sandberg | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10869:996b20e55386 --------------------------- python: Remove redundant drain when changing memory modes When the Python helper code switches CPU models, it sometimes also needs to change the memory mode of the simulator. When this happens, it accidentally tried to drain the simulator despite having done so already. This changeset removes the redundant drain.
Long regressions (including switcheroos pass)
Ship It!
Posted (July 4, 2015, 10:32 a.m.)
So is the assumption here that, if you're switching memory modes, you will always call switchCpus with do_drain=True? Other than that I don't see where the redundant drain is coming from.
Also, if the system is already drained, how long does a redundant drain take? That is, how much are we really saving here?
