Daniel Carvalho has submitted this change and it was merged. (
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
Reviewed-on: https://gem5-review.googlesource.com/10801
Reviewed-by: Nikos Nikoleris <[email protected]>
Reviewed-by: Anthony Gutierrez <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Anthony Gutierrez <[email protected]>
---
M src/mem/ruby/system/WeightedLRUPolicy.cc
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved
Nikos Nikoleris: Looks good to me, but someone else must approve
Anthony Gutierrez: Looks good to me, approved; Looks good to me, approved
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: 2
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Anthony Gutierrez <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev