summaryrefslogtreecommitdiff
path: root/src/mem/cache/blk.hh
diff options
context:
space:
mode:
authorLisa Hsu <Lisa.Hsu@amd.com>2010-02-23 09:33:09 -0800
committerLisa Hsu <Lisa.Hsu@amd.com>2010-02-23 09:33:09 -0800
commit2ad386f104cf84bd8bcb50eef50f04cdbcf9ebf7 (patch)
tree90efb129fc522f077c2cb11c9e08450b40a31fc6 /src/mem/cache/blk.hh
parenta5feaa6a69c28f2ab12e28d47fd4bd62359b07c7 (diff)
downloadgem5-2ad386f104cf84bd8bcb50eef50f04cdbcf9ebf7.tar.xz
cache: pull CacheSet out of LRU so that other tags can use associative sets.
Diffstat (limited to 'src/mem/cache/blk.hh')
-rw-r--r--src/mem/cache/blk.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index 369de6d11..4f023e848 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -98,6 +98,9 @@ class CacheBlk
*/
int set;
+ /** whether this block has been touched */
+ bool isTouched;
+
/** Number of references to this block since it was brought in. */
int refCount;
@@ -130,7 +133,7 @@ class CacheBlk
CacheBlk()
: asid(-1), tag(0), data(0) ,size(0), status(0), whenReady(0),
- set(-1), refCount(0)
+ set(-1), isTouched(false), refCount(0)
{}
/**