summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorSiddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com>2025-03-11 20:34:40 -0400
committerGitHub <noreply@github.com>2025-03-11 20:34:40 -0400
commit89b9d1e4592d11cd6146b1bc3b3c12e241e574d3 (patch)
tree30947c7018653ca18d4a69de20936b3615768f9e /inc/cache.h
parentf208e63ce553c6144a672cd35da23425fa7f86d1 (diff)
parent7c828204a091330eca7dd6495f02f54c2c0a3091 (diff)
Merge pull request #26 from bdunahu/bdunahu
clarify macro names, implement load in CLI, fix many display issues
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 17abcdd..31602ca 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -38,7 +38,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:
/**
@@ -54,7 +54,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);