summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-11 11:54:21 -0400
committerbd <bdunahu@operationnull.com>2025-03-11 11:54:21 -0400
commit7c226db9f04de7061596b98763dc408d601d74e1 (patch)
treec6d4ff93026441bff50de16633706ee3dd2ea196 /inc/cache.h
parent202f9a05d449ddc1160584c4e8a87f397f248e94 (diff)
Clarify size of mem and cache in definitions, CLI print invalid tags
Diffstat (limited to 'inc/cache.h')
-rw-r--r--inc/cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 04f6181..a566f24 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -31,7 +31,7 @@ class Cache : public Storage
* TODO this doesn't seem like good object-oriented practice.
* @return this->meta
*/
- std::array<std::array<int, 2>, L1_CACHE_SIZE> get_meta() const;
+ std::array<std::array<int, 2>, L1_CACHE_LINES> get_meta() const;
private:
/**
@@ -47,7 +47,7 @@ class Cache : public Storage
* element in `data` is invalid. If the most second value of an element
* is nonzero, the corresponding element in `data` is dirty.
*/
- std::array<std::array<int, 2>, L1_CACHE_SIZE> meta;
+ std::array<std::array<int, 2>, L1_CACHE_LINES> meta;
};
std::ostream &operator<<(std::ostream &os, const Cache &c);