summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch/stride.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/cache/prefetch/stride.hh')
-rw-r--r--src/mem/cache/prefetch/stride.hh11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/stride.hh b/src/mem/cache/prefetch/stride.hh
index 03ceec584..605b5432d 100644
--- a/src/mem/cache/prefetch/stride.hh
+++ b/src/mem/cache/prefetch/stride.hh
@@ -110,7 +110,16 @@ class StridePrefetcher : public QueuedPrefetcher
};
PCTable pcTable;
- bool pcTableHit(Addr pc, bool is_secure, int master_id, StrideEntry* &entry);
+ /**
+ * Search for an entry in the pc table.
+ *
+ * @param pc The PC to look for.
+ * @param is_secure True if the target memory space is secure.
+ * @param master_id The context.
+ * @return Pointer to the entry.
+ */
+ StrideEntry* findEntry(Addr pc, bool is_secure, int master_id);
+
StrideEntry* pcTableVictim(Addr pc, int master_id);
Addr pcHash(Addr pc) const;