From 6bfae0ef7c7583cfd8a9771332db74ee6eb77a68 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 9 Mar 2025 18:28:08 -0400 Subject: Move do_write to dram.h, is_blocked flag --- inc/cache.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inc/cache.h') diff --git a/inc/cache.h b/inc/cache.h index 4e4b48d..a317f5d 100644 --- a/inc/cache.h +++ b/inc/cache.h @@ -27,6 +27,13 @@ class Cache : public Storage std::array &data) override; 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 -- cgit v1.2.3