From 41bc2886de7b6055dd530577cc5ec8903dd04658 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Tue, 21 Feb 2017 14:14:45 +0000 Subject: [PATCH] mem: Remove unused size field from the CacheBlk class Change-Id: I6149290d6d2ac1a4bd6165871c93d7b7d6a980ad Reviewed-by: Andreas Hansson Signed-off-by: Andreas Sandberg --- src/mem/cache/blk.hh | 6 ++---- src/mem/cache/tags/base_set_assoc.cc | 1 - 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; -- 2.30.2