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>
This commit is contained in:
parent
83028e730c
commit
41bc2886de
2 changed files with 2 additions and 5 deletions
6
src/mem/cache/blk.hh
vendored
6
src/mem/cache/blk.hh
vendored
|
@ -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)
|
||||
|
|
1
src/mem/cache/tags/base_set_assoc.cc
vendored
1
src/mem/cache/tags/base_set_assoc.cc
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue