summaryrefslogtreecommitdiff
path: root/src/mem/cache
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2017-02-21 14:14:45 +0000
committerNikos Nikoleris <nikos.nikoleris@arm.com>2017-02-21 14:14:45 +0000
commit41bc2886de7b6055dd530577cc5ec8903dd04658 (patch)
tree032b9a716916240b4e904e8b5fe835266b3c1bc9 /src/mem/cache
parent83028e730cd57755e948593fd2caec1b6b45ec18 (diff)
downloadgem5-41bc2886de7b6055dd530577cc5ec8903dd04658.tar.xz
mem: Remove unused size field from the CacheBlk class
Change-Id: I6149290d6d2ac1a4bd6165871c93d7b7d6a980ad Reviewed-by: Andreas Hansson <andreas.hansson@arm.com> Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/mem/cache')
-rw-r--r--src/mem/cache/blk.hh6
-rw-r--r--src/mem/cache/tags/base_set_assoc.cc1
2 files changed, 2 insertions, 5 deletions
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index ef5eff7c5..44691c122 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2015 ARM Limited
+ * Copyright (c) 2012-2016 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
@@ -92,8 +92,6 @@ class CacheBlk
* referenced by this block.
*/
uint8_t *data;
- /** the number of bytes stored in this block. */
- unsigned size;
/** block state: OR of CacheBlkStatusBit */
typedef unsigned State;
@@ -167,7 +165,7 @@ class CacheBlk
CacheBlk()
: task_id(ContextSwitchTaskId::Unknown),
- tag(0), data(0) ,size(0), status(0), whenReady(0),
+ tag(0), data(0), status(0), whenReady(0),
set(-1), way(-1), isTouched(false), refCount(0),
srcMasterId(Request::invldMasterId),
tickInserted(0)
diff --git a/src/mem/cache/tags/base_set_assoc.cc b/src/mem/cache/tags/base_set_assoc.cc
index 86036aa9b..a96825975 100644
--- a/src/mem/cache/tags/base_set_assoc.cc
+++ b/src/mem/cache/tags/base_set_assoc.cc
@@ -106,7 +106,6 @@ BaseSetAssoc::BaseSetAssoc(const Params *p)
blk->tag = j;
blk->whenReady = 0;
blk->isTouched = false;
- blk->size = blkSize;
sets[i].blks[j]=blk;
blk->set = i;
blk->way = j;