From 75f78c215131499165101a499197313ba77ea230 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 21 Mar 2025 16:06:07 -0400 Subject: Small cleanups to up a lot of inplementation details --- inc/cache.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'inc/cache.h') diff --git a/inc/cache.h b/inc/cache.h index 3b16ca1..a5fa16e 100644 --- a/inc/cache.h +++ b/inc/cache.h @@ -42,6 +42,15 @@ class Cache : public Storage private: /** + * Returns OK if `accessor` is allowed to complete its request this cycle. + * Handles cache misses, wait times, and setting the current accessor this + * storage is serving. + * @param the accessor asking for a resource + * @return whether or not the access can be carried out this function call. + */ + Response is_access_cleared(Accessor accessor, int address); + /** + * Helper for access_cleared. * Fetches `address` from a lower level of storage if it is not already * present. If it is not, temporarily sets the is_blocked attribute of this * cache level to true, and the victim line is chosen/written back. -- cgit v1.2.3