summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-10 14:53:59 -0400
committerbd <bdunahu@operationnull.com>2025-03-10 14:53:59 -0400
commit486d18df5ca93e043fdd14fac1d22b5fe40fb6f6 (patch)
treefc77cc22024b719f14e03e29e2bbd94b3eb645ca /inc/cache.h
parentd0ec568e4f063fd1c85087582283f3511e0a12ec (diff)
Update cli method signatures, add some getters to cache and storage
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 e8b7030..b7b72cf 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -25,6 +25,13 @@ class Cache : public Storage
int address,
std::array<signed int, LINE_SIZE> &data) override;
+ /**
+ * Getter for the meta attribute.
+ * TODO this doesn't seem like good object-oriented practice.
+ * @return this->meta
+ */
+ std::array<std::array<int, 2>, L1_CACHE_SIZE> *get_meta();
+
private:
/**
* Fetches `address` from a lower level of storage if it is not already