summaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-28 18:10:14 -0400
committerbd <bdunahu@operationnull.com>2025-03-28 18:10:14 -0400
commit9cd1f287f0c86b36788cd8ede812b847c584f711 (patch)
tree749bb48cd49f1e9e4fb7ca3dfa7001c27403231e /src/storage
parent043c2566c112f0d913c52aa80c9fcc4da5fb11ae (diff)
add get_instr_fields func to parse instruction fields from raw bits
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/cache.cc b/src/storage/cache.cc
index dccab47..80f59ef 100644
--- a/src/storage/cache.cc
+++ b/src/storage/cache.cc
@@ -69,7 +69,7 @@ Response Cache::process(
Response r = this->is_access_cleared(accessor, address);
if (r == OK) {
int tag, index, offset;
- get_bit_fields(address, &tag, &index, &offset);
+ get_cache_fields(address, &tag, &index, &offset);
request_handler(index, offset);
}
return r;
@@ -104,7 +104,7 @@ void Cache::handle_miss(int expected)
std::array<signed int, LINE_SIZE> *actual;
std::array<int, 2> *meta;
- get_bit_fields(expected, &tag, &index, &offset);
+ get_cache_fields(expected, &tag, &index, &offset);
r = OK;
meta = &this->meta.at(index);
actual = &this->data->at(index);