From a59db0e910417e6845e4b461133b2a93b56e0141 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Thu, 7 Jun 2018 11:46:18 +0200 Subject: [PATCH] mem-cache: Forward declare ReplaceableEntry Forward declare ReplaceableEntry where in classes where pointers to it are used. Change-Id: I49c08d36442a563d7a6b4c9bcd7eba3591d29b60 Reviewed-on: https://gem5-review.googlesource.com/11096 Reviewed-by: Nikos Nikoleris Reviewed-by: Jason Lowe-Power Maintainer: Nikos Nikoleris --- src/mem/cache/tags/base.hh | 1 + src/mem/cache/tags/fa_lru.hh | 2 ++ src/mem/cache/tags/sector_tags.hh | 1 + 3 files changed, 4 insertions(+) diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 30da40855..9a9de8cfa 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh @@ -63,6 +63,7 @@ #include "sim/clocked_object.hh" class BaseCache; +class ReplaceableEntry; /** * A common base class of Cache tagstore objects. diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index dee1af028..35413c253 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -68,6 +68,8 @@ // TrackedCaches class //#define FALRU_DEBUG +class ReplaceableEntry; + // A bitmask of the caches we are keeping track of. Currently the // lowest bit is the smallest cache we are tracking, as it is // specified by the corresponding parameter. The rest of the bits are diff --git a/src/mem/cache/tags/sector_tags.hh b/src/mem/cache/tags/sector_tags.hh index d0dc1f7e3..c0dae8dd4 100644 --- a/src/mem/cache/tags/sector_tags.hh +++ b/src/mem/cache/tags/sector_tags.hh @@ -45,6 +45,7 @@ #include "params/SectorTags.hh" class BaseReplacementPolicy; +class ReplaceableEntry; /** * A SectorTags cache tag store. -- 2.30.2