summaryrefslogtreecommitdiff
path: root/src/utils/utils.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-09 16:25:20 -0400
committerbd <bdunahu@operationnull.com>2025-03-09 16:25:20 -0400
commitfcf0358b0597b733f36b0c862bf18a98efdea224 (patch)
tree7a9d27dd9196a565d25354c3b63ced54a158f889 /src/utils/utils.cc
parent2b458c01aca16e26939e169f1b545982e0f8626f (diff)
Improve documentation in definitions.h
Diffstat (limited to 'src/utils/utils.cc')
-rw-r--r--src/utils/utils.cc6
1 files changed, 3 insertions, 3 deletions
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);
}