Daniel Carvalho has uploaded this change for review. ( https://gem5-review.googlesource.com/10801

Change subject: ruby: Fix initial weight in weighted LRU
......................................................................

ruby: Fix initial weight in weighted LRU

Initial weight was using the timestamp instead of the weight.

Change-Id: I61d3c8424f85fd6856957087c477afda111f8ca7
---
M src/mem/ruby/system/WeightedLRUPolicy.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/mem/ruby/system/WeightedLRUPolicy.cc b/src/mem/ruby/system/WeightedLRUPolicy.cc
index 20ae5ad..2899f73 100644
--- a/src/mem/ruby/system/WeightedLRUPolicy.cc
+++ b/src/mem/ruby/system/WeightedLRUPolicy.cc
@@ -92,7 +92,7 @@

     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++) {


--
To view, visit https://gem5-review.googlesource.com/10801
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I61d3c8424f85fd6856957087c477afda111f8ca7
Gerrit-Change-Number: 10801
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to