mem: Remove unused size field from the CacheBlk class
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 21 Feb 2017 14:14:45 +0000 (14:14 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 21 Feb 2017 14:14:45 +0000 (14:14 +0000)
Change-Id: I6149290d6d2ac1a4bd6165871c93d7b7d6a980ad
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
src/mem/cache/blk.hh
src/mem/cache/tags/base_set_assoc.cc

index ef5eff7c5aebae914c835a1b198eaf19a95949f6..44691c1229971dbfcb3a7033ddf97304d03fd660 100644 (file)
@@ -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)
index 86036aa9b192e04b334a91ab8afff63a950cdab3..a968259757cea89c044c2fbcf5172f52de6bc674 100644 (file)
@@ -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;