summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/cache/tags/base_set_assoc.cc2
-rw-r--r--src/mem/cache/tags/cacheset.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/tags/base_set_assoc.cc b/src/mem/cache/tags/base_set_assoc.cc
index cf647ac4d..c39822929 100644
--- a/src/mem/cache/tags/base_set_assoc.cc
+++ b/src/mem/cache/tags/base_set_assoc.cc
@@ -84,7 +84,7 @@ BaseSetAssoc::BaseSetAssoc(const Params *p)
for (unsigned i = 0; i < numSets; ++i) {
sets[i].assoc = assoc;
- sets[i].blks = new BlkType*[assoc];
+ sets[i].blks.resize(assoc);
// link in the data blocks
for (unsigned j = 0; j < assoc; ++j) {
diff --git a/src/mem/cache/tags/cacheset.hh b/src/mem/cache/tags/cacheset.hh
index 69109d10c..5a3445659 100644
--- a/src/mem/cache/tags/cacheset.hh
+++ b/src/mem/cache/tags/cacheset.hh
@@ -61,7 +61,7 @@ class CacheSet
int assoc;
/** Cache blocks in this set, maintained in LRU order 0 = MRU. */
- Blktype **blks;
+ std::vector<Blktype*> blks;
/**
* Find a block matching the tag in this set.