mem-cache: Create an address aware TempCacheBlk
tempBlock has its member variables manually set in order to allow it to be used in the block address regeneration function. This is not necessary, and ti can be simply given the address, so it does not need to be aware of set and tag. This will simplify implementation of sector and skewed caches. Change-Id: Iaffb10c323509722cd5589fe1030b818d43336d6 Reviewed-on: https://gem5-review.googlesource.com/9961 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
888bdb67e1
commit
7704113d94
2
src/mem/cache/cache.cc
vendored
2
src/mem/cache/cache.cc
vendored
@@ -873,7 +873,7 @@ Cache::cleanEvictBlk(CacheBlk *blk)
|
||||
assert(blk && blk->isValid() && !blk->isDirty());
|
||||
// Creating a zero sized write, a message to the snoop filter
|
||||
Request *req =
|
||||
new Request(tags->regenerateBlkAddr(blk), blkSize, 0,
|
||||
new Request(regenerateBlkAddr(blk), blkSize, 0,
|
||||
Request::wbMasterId);
|
||||
if (blk->isSecure())
|
||||
req->setFlags(Request::SECURE);
|
||||
|
||||
Reference in New Issue
Block a user