Cache: Fix the LRU policy for classic memory hierarchy
[gem5.git] / src / mem / cache / tags / cacheset.hh
index 135e993aacb3e5f198760a63bebcb8c7cad95c03..d38a1e927db1ac72391099a2f2cba78e6212a95d 100644 (file)
@@ -36,9 +36,9 @@
 #ifndef __CACHESET_HH__
 #define __CACHESET_HH__
 
-#include "mem/cache/blk.hh" // base class
-#include <assert.h>
+#include <cassert>
 
+#include "mem/cache/blk.hh" // base class
 
 /**
  * An associative set of cache blocks.
@@ -66,6 +66,12 @@ class CacheSet
      */
     void moveToHead(CacheBlk *blk);
 
+    /**
+     * Move the given block to the tail of the list.
+     * @param blk The block to move
+     */
+    void moveToTail(CacheBlk *blk);
+
 };
 
 #endif