From 2fadd8f68dc8d3a439c69db2a37e4339fdfdbf47 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 9 Mar 2025 16:25:20 -0400 Subject: Improve documentation in definitions.h --- src/utils/utils.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/utils.cc b/src/utils/utils.cc index 52be177..dfeb2b3 100644 --- a/src/utils/utils.cc +++ b/src/utils/utils.cc @@ -4,8 +4,8 @@ void get_bit_fields(int address, int *tag, int *index, int *offset) { *tag = - MID(address, LINE_SPEC + L1_CACHE_SPEC, + GET_MID_BITS(address, LINE_SPEC + L1_CACHE_SPEC, MEM_SPEC + LINE_SPEC + L1_CACHE_SPEC); - *index = MID(address, LINE_SPEC, L1_CACHE_SPEC + LINE_SPEC); - *offset = LAST(address, LINE_SPEC); + *index = GET_MID_BITS(address, LINE_SPEC, L1_CACHE_SPEC + LINE_SPEC); + *offset = GET_LS_BITS(address, LINE_SPEC); } -- cgit v1.2.3