summaryrefslogtreecommitdiff
path: root/inc/storage.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/storage.h
parent56c92e4785fa6952e390fd249cd654f0e5b2d83e (diff)
Move do_write to dram.h, is_blocked flag
Diffstat (limited to 'inc/storage.h')
-rw-r--r--inc/storage.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/inc/storage.h b/inc/storage.h
index 1fb41b0..9707041 100644
--- a/inc/storage.h
+++ b/inc/storage.h
@@ -32,7 +32,10 @@ class Storage
* @return a status code reflecting the state of the request, and the
* data being returned.
*/
- virtual Response read(Accessor accessor, int address, std::array<signed int, LINE_SIZE>& data) = 0;
+ virtual Response read(
+ Accessor accessor,
+ int address,
+ std::array<signed int, LINE_SIZE> &data) = 0;
/**
* Sidedoor view of `lines` of memory starting at `base`.
* @param The base line to start getting memory from.
@@ -48,10 +51,6 @@ class Storage
protected:
/**
- * Helper for `write`.
- */
- void do_write(signed int, int);
- /**
* The data currently stored in this level of storage.
*/
std::vector<std::array<signed int, LINE_SIZE>> *data;
@@ -73,6 +72,11 @@ class Storage
* The number of cycles until the current request is completed.
*/
int wait_time;
+ /**
+ * A flag indicating whether this level of storage is currently blocked by a
+ * lower level.
+ */
+ int is_blocked;
};
#endif /* STORAGE_H_INCLUDED */