From 28a2788e2c59357d9269e558b0bd45db3241c42d Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 12 Apr 2025 00:44:29 -0400 Subject: Rewrite utils functions as macros --- src/cache.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cache.cc') diff --git a/src/cache.cc b/src/cache.cc index bbb90b4..acbabcf 100644 --- a/src/cache.cc +++ b/src/cache.cc @@ -1,6 +1,5 @@ #include "cache.h" #include "definitions.h" -#include "utils.h" #include #include @@ -60,7 +59,7 @@ Cache::process(void *id, int address, std::function r = this->is_access_cleared(id, address); if (r) { int tag, index, offset; - get_cache_fields(address, &tag, &index, &offset); + GET_FIELDS(address, &tag, &index, &offset); request_handler(index, offset); } return r; @@ -95,7 +94,7 @@ Cache::is_address_missing(int expected) std::array *actual; std::array *meta; - get_cache_fields(expected, &tag, &index, &offset); + GET_FIELDS(expected, &tag, &index, &offset); r = 0; meta = &this->meta.at(index); actual = &this->data->at(index); -- cgit v1.2.3