mem-cache: Fix TempCacheBlock insert
TempCacheBlock insert() had a different signature than the parent class which caused an error on clang. This matches the signature with default zero values. Change-Id: Ic096914497f3d17e88295c9e65a04d76fdddf365 Signed-off-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-on: https://gem5-review.googlesource.com/11349 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
This commit is contained in:
11
src/mem/cache/blk.hh
vendored
11
src/mem/cache/blk.hh
vendored
@@ -420,15 +420,8 @@ class TempCacheBlk final : public CacheBlk
|
||||
_addr = MaxAddr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set member variables when a block insertion occurs. A TempCacheBlk does
|
||||
* not have all the information required to regenerate the block's address,
|
||||
* so it is provided the address itself for easy regeneration.
|
||||
*
|
||||
* @param addr Block address.
|
||||
* @param is_secure Whether the block is in secure space or not.
|
||||
*/
|
||||
void insert(const Addr addr, const bool is_secure)
|
||||
void insert(const Addr addr, const bool is_secure,
|
||||
const int src_master_ID=0, const uint32_t task_ID=0) override
|
||||
{
|
||||
// Set block address
|
||||
_addr = addr;
|
||||
|
||||
Reference in New Issue
Block a user