diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 09:51:04 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 09:51:04 +0100 |
commit | d5f5fbb855e8de8c64444dd02f0ed7c27866578c (patch) | |
tree | 802cb9d3cbae2de72b890b93166ddaf5b79dfaaa /src/sim/drain.hh | |
parent | e9c3d59aae58f8fcf77ce5cf4b985dc9e2a90de2 (diff) | |
download | gem5-d5f5fbb855e8de8c64444dd02f0ed7c27866578c.tar.xz |
sim: Move mem(Writeback|Invalidate) to SimObject
The memWriteback() and memInvalidate() calls used to live in the
Serializable interface. In this series of patches, the Serializable
interface will be redesigned to make serialization independent of the
object graph and always work on the entire simulator. This means that
the Serialization interface won't be useful to perform maintenance of
the caches in a sub-graph of the entire SimObject graph. This
changeset moves these memory maintenance methods to the SimObject
interface instead.
Diffstat (limited to 'src/sim/drain.hh')
-rw-r--r-- | src/sim/drain.hh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/sim/drain.hh b/src/sim/drain.hh index ae80fb7e9..4ed6074dd 100644 --- a/src/sim/drain.hh +++ b/src/sim/drain.hh @@ -204,29 +204,6 @@ class Drainable */ virtual void drainResume(); - /** - * Write back dirty buffers to memory using functional writes. - * - * After returning, an object implementing this method should have - * written all its dirty data back to memory. This method is - * typically used to prepare a system with caches for - * checkpointing. - */ - virtual void memWriteback() {}; - - /** - * Invalidate the contents of memory buffers. - * - * When the switching to hardware virtualized CPU models, we need - * to make sure that we don't have any cached state in the system - * that might become stale when we return. This method is used to - * flush all such state back to main memory. - * - * @warn This does <i>not</i> cause any dirty state to be written - * back to memory. - */ - virtual void memInvalidate() {}; - DrainState getDrainState() const { return _drainState; } protected: |