Nikos Nikoleris has submitted this change and it was merged. (
https://gem5-review.googlesource.com/8287 )
Change subject: mem-cache: Make the block invalidate functions virtual
......................................................................
mem-cache: Make the block invalidate functions virtual
This change makes the cache block invalidation function in the
BaseTags and CacheBlk class virtual to enable derived classes.
Change-Id: I2e64b01c6ca637f16d10474fc8b08eeec3f23453
Reviewed-by: Andreas Sandberg <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/8287
Maintainer: Nikos Nikoleris <[email protected]>
Reviewed-by: Daniel Carvalho <[email protected]>
---
M src/mem/cache/blk.hh
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Daniel Carvalho: Looks good to me, approved
Nikos Nikoleris: Looks good to me, approved
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh
index 66f05c8..7dd0a92 100644
--- a/src/mem/cache/blk.hh
+++ b/src/mem/cache/blk.hh
@@ -170,6 +170,7 @@
CacheBlk(const CacheBlk&) = delete;
CacheBlk& operator=(const CacheBlk&) = delete;
+ virtual ~CacheBlk() {};
/**
* Checks the write permissions of this block.
@@ -205,7 +206,7 @@
/**
* Invalidate the block and clear all state.
*/
- void invalidate()
+ virtual void invalidate()
{
tag = MaxAddr;
task_id = ContextSwitchTaskId::Unknown;
--
To view, visit https://gem5-review.googlesource.com/8287
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I2e64b01c6ca637f16d10474fc8b08eeec3f23453
Gerrit-Change-Number: 8287
Gerrit-PatchSet: 5
Gerrit-Owner: Nikos Nikoleris <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerit-CC: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev