ruby: Fix initial weight in weighted LRU
Initial weight was using the timestamp instead of the weight. Change-Id: I61d3c8424f85fd6856957087c477afda111f8ca7 Reviewed-on: https://gem5-review.googlesource.com/10801 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
f54020eb81
commit
8de76e0f14
@@ -92,7 +92,7 @@ WeightedLRUPolicy::getVictim(int64_t set) const
|
||||
|
||||
smallest_index = 0;
|
||||
smallest_time = m_last_ref_ptr[set][0];
|
||||
int smallest_weight = m_last_ref_ptr[set][0];
|
||||
int smallest_weight = m_last_occ_ptr[set][0];
|
||||
|
||||
for (unsigned i = 1; i < m_assoc; i++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user