Review Board 2.0.15


sim: Add drain methods to request additional cleanup operations

Review Request #1511 - Created Oct. 24, 2012 and submitted - Latest diff uploaded

Information
Ali Saidi
gem5
default
Reviewers
Default
Changeset 9335:c0639bb5beaa
---------------------------
sim: Add drain methods to request additional cleanup operations

This patch adds the following two methods to the Drainable base class:

memWriteback() - Write back all dirty cache lines to memory using
functional accesses.

memInvalidate() - Invalidate memory system buffers. Dirty data
won't be written back.

Specifying calling memWriteback() after draining will allow us to
checkpoint systems with caches. memInvalidate() can be used to drop
memory system buffers in preparation for switching to an accelerated
CPU model that bypasses the gem5 memory system (e.g., hardware
virtualized CPUs).

Note: This patch only adds the methods to Drainable, the code for
flushing the TLB and the cache is committed separately.