When NUM_WAYS=1, CLOG2(NUM_WAYS)-1 becomes -1, setting the MSB of way_idx to a wrong value.
5.4 KiB
5.4 KiB
When NUM_WAYS=1, CLOG2(NUM_WAYS)-1 becomes -1, setting the MSB of way_idx to a wrong value.