Cache: Fix the LRU policy for classic memory hierarchy
[gem5.git] / src / mem / cache / tags / lru.hh
index be8d75b5af3e0627d549844948ba04c9f08940f7..4eb66b708d043d8a0e32041ef9a65c7478eb9c0e 100644 (file)
@@ -40,8 +40,8 @@
 #include <cstring>
 #include <list>
 
-#include "mem/cache/blk.hh"
 #include "mem/cache/tags/base.hh"
+#include "mem/cache/blk.hh"
 #include "mem/packet.hh"
 
 class BaseCache;
@@ -224,6 +224,11 @@ public:
     {
         return hitLatency;
     }
+    /**
+     *iterated through all blocks and clear all locks
+     *Needed to clear all lock tracking at once
+     */
+    virtual void clearLocks();
 
     /**
      * Called at end of simulation to complete average block reference stats.