summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-09 18:28:08 -0400
committerbd <bdunahu@operationnull.com>2025-03-09 18:28:08 -0400
commit6bfae0ef7c7583cfd8a9771332db74ee6eb77a68 (patch)
treef79d3f7c3edde913dadb739fe3d88ffba5e76641 /inc/cache.h
parent56c92e4785fa6952e390fd249cd654f0e5b2d83e (diff)
Move do_write to dram.h, is_blocked flag
Diffstat (limited to 'inc/cache.h')
-rw-r--r--inc/cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 4e4b48d..a317f5d 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -28,6 +28,13 @@ class Cache : public Storage
private:
/**
+ * 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.
+ * @param the address that must be present in cache.
+ */
+ void fetch_resource(int address);
+ /**
* An array of paired bits.
* If the least significant bit of an element is set, the corresponding
* element in `data` is invalid. If the most significant bit of an element