diff options
-rw-r--r-- | src/mem/ruby/system/WeightedLRUPolicy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/system/WeightedLRUPolicy.cc b/src/mem/ruby/system/WeightedLRUPolicy.cc index 20ae5ad67..2899f73a7 100644 --- a/src/mem/ruby/system/WeightedLRUPolicy.cc +++ b/src/mem/ruby/system/WeightedLRUPolicy.cc @@ -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++) { |