summaryrefslogtreecommitdiff
path: root/src/storage/cache.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-11 16:39:47 -0400
committerbd <bdunahu@operationnull.com>2025-03-11 16:39:47 -0400
commitd534555fbb9562a819d34ea874a711d737d051ae (patch)
tree0574ee516499001244d33785a5fc380801c557c9 /src/storage/cache.cc
parent12a822e68b2e82d4b86888304f94b60752465a0a (diff)
Rename read/write to read_line and write_word
Diffstat (limited to 'src/storage/cache.cc')
-rw-r--r--src/storage/cache.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/cache.cc b/src/storage/cache.cc
index 5e071ac..533d0ec 100644
--- a/src/storage/cache.cc
+++ b/src/storage/cache.cc
@@ -25,7 +25,7 @@ Cache::~Cache()
delete this->data;
}
-Response Cache::write(Accessor accessor, signed int data, int address)
+Response Cache::write_word(Accessor accessor, signed int data, int address)
{
Response r = WAIT;
@@ -75,7 +75,7 @@ Response Cache::write_line(
}
// TODO: tests for multi level cache
-Response Cache::read(
+Response Cache::read_line(
Accessor accessor,
int address,
std::array<signed int, LINE_SIZE> &data_line)
@@ -140,7 +140,7 @@ void Cache::fetch_resource(int expected)
meta->at(1) = -1;
}
} else {
- r = this->lower->read(L1CACHE, expected, actual);
+ r = this->lower->read_line(L1CACHE, expected, actual);
if (r == OK) {
meta->at(0) = tag;
}