39c39
< : QueuedPrefetcher(p), maxCounterValue(p->max_counter_value),
---
> : QueuedPrefetcher(p),
50c50,51
< AddressMappingEntry(prefetchCandidatesPerEntry)),
---
> AddressMappingEntry(prefetchCandidatesPerEntry,
> p->num_counter_bits)),
55c56,57
< AddressMappingEntry(prefetchCandidatesPerEntry)),
---
> AddressMappingEntry(prefetchCandidatesPerEntry,
> p->num_counter_bits)),
103,105c105
< if (mapping_B.counter < maxCounterValue) {
< mapping_B.counter += 1;
< }
---
> mapping_B.counter++;
108,109c108,109
< // counter would hit 0, reassign address
< mapping_B.counter = 1;
---
> // Counter would hit 0, reassign address while keeping
> // counter at 1
114c114
< mapping_B.counter -= 1;
---
> mapping_B.counter--;
120c120
< mapping_A.counter = 1;
---
> mapping_A.counter++;
126c126,127
< mapping_B.counter = 1;
---
> mapping_B.counter.reset();
> mapping_B.counter++;
206c207,208
< mapping.counter = 1;
---
> mapping.counter.reset();
> mapping.counter++;