summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-21 16:06:07 -0400
committerbd <bdunahu@operationnull.com>2025-03-21 16:06:07 -0400
commit431cba9a4bcef0e0ae047d45a7f3d98e601e30ed (patch)
tree178eefa29cd9ac5ba88efd989364e1bbf591189e /inc/cache.h
parent41a6a317964c7ff09a98e9bbdb1995ac46937ff3 (diff)
Small cleanups to up a lot of inplementation details
Diffstat (limited to 'inc/cache.h')
-rw-r--r--inc/cache.h9
1 files changed, 9 insertions, 0 deletions
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.