summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch/base.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/prefetch/base.hh')
-rw-r--r--src/mem/cache/prefetch/base.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/cache/prefetch/base.hh b/src/mem/cache/prefetch/base.hh
index 63b0e1bed..06f77492d 100644
--- a/src/mem/cache/prefetch/base.hh
+++ b/src/mem/cache/prefetch/base.hh
@@ -214,6 +214,8 @@ class BasePrefetcher : public ClockedObject
/** Determine if address is in cache miss queue */
bool inMissQueue(Addr addr, bool is_secure) const;
+ bool hasBeenPrefetched(Addr addr, bool is_secure) const;
+
/** Determine if addresses are on the same page */
bool samePage(Addr a, Addr b) const;
/** Determine the address of the block in which a lays */
@@ -229,6 +231,11 @@ class BasePrefetcher : public ClockedObject
Stats::Scalar pfIssued;
+ /** Total prefetches issued */
+ uint64_t issuedPrefetches;
+ /** Total prefetches that has been useful */
+ uint64_t usefulPrefetches;
+
public:
BasePrefetcher(const BasePrefetcherParams *p);