diff options
author | bd <bdunahu@operationnull.com> | 2025-03-28 18:10:14 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-28 18:10:14 -0400 |
commit | 136417edd709f0e2d30931d222b658ff7dd9a5a8 (patch) | |
tree | 7ecf0837278e46146360134bb43252357acfe494 /src/storage/cache.cc | |
parent | ab6d02361b04a18b7823aef0ff1cb0ff2a215ec2 (diff) |
add get_instr_fields func to parse instruction fields from raw bits
Diffstat (limited to 'src/storage/cache.cc')
-rw-r--r-- | src/storage/cache.cc | 4 |
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); |