summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Lowe-Power <jason@lowepower.com>2018-06-18 16:23:34 -0700
committerJason Lowe-Power <jason@lowepower.com>2018-06-20 15:48:08 +0000
commit262ce4e859c0d8141c1c0861d923a7951e1b00ed (patch)
tree2d4d05e6021bb3b4f86fc73ac1124b3bccb26e62
parent353722e76e6f2303a3990b974e27bc055c584958 (diff)
downloadgem5-262ce4e859c0d8141c1c0861d923a7951e1b00ed.tar.xz
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>
-rw-r--r--src/mem/cache/blk.hh11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index 48deef52a..97e1d42d9 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -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;