diff options
author | bd <bdunahu@operationnull.com> | 2025-03-11 11:54:21 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-11 11:54:21 -0400 |
commit | 7c226db9f04de7061596b98763dc408d601d74e1 (patch) | |
tree | c6d4ff93026441bff50de16633706ee3dd2ea196 /src/utils | |
parent | 202f9a05d449ddc1160584c4e8a87f397f248e94 (diff) |
Clarify size of mem and cache in definitions, CLI print invalid tags
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/utils.cc b/src/utils/utils.cc index 5de8e89..3a99cec 100644 --- a/src/utils/utils.cc +++ b/src/utils/utils.cc @@ -7,9 +7,9 @@ void get_bit_fields(int address, int *tag, int *index, int *offset) { *tag = GET_MID_BITS( - address, LINE_SPEC + L1_CACHE_SPEC, - MEM_SPEC + LINE_SPEC + L1_CACHE_SPEC); - *index = GET_MID_BITS(address, LINE_SPEC, L1_CACHE_SPEC + LINE_SPEC); + address, LINE_SPEC + L1_CACHE_LINE_SPEC, + MEM_LINE_SPEC + LINE_SPEC + L1_CACHE_LINE_SPEC); + *index = GET_MID_BITS(address, LINE_SPEC, L1_CACHE_LINE_SPEC + LINE_SPEC); *offset = GET_LS_BITS(address, LINE_SPEC); } |