Pouya Fotouhi has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/19891 )

Change subject: mem-ruby: Use check_on_cache_probe on MOESI hammer
......................................................................

mem-ruby: Use check_on_cache_probe on MOESI hammer

This change uses check_on_cache_probe statement to check if the cacheline
subject to eviction is locked in MOESI hammer.

Change-Id: I2c43f22aba5af3a57e54b1c435e5d3fbba86d1d5
---
M src/mem/protocol/MOESI_hammer-cache.sm
1 file changed, 4 insertions(+), 0 deletions(-)



diff --git a/src/mem/protocol/MOESI_hammer-cache.sm b/src/mem/protocol/MOESI_hammer-cache.sm
index 9cbd277..4086f42 100644
--- a/src/mem/protocol/MOESI_hammer-cache.sm
+++ b/src/mem/protocol/MOESI_hammer-cache.sm
@@ -468,7 +468,9 @@
               }
             } else {
               // No room in the L1, so we need to make room
+              // Check if the line we want to evict is not locked
Addr l1i_victim_addr := L1Icache.cacheProbe(in_msg.LineAddress);
+              check_on_cache_probe(mandatoryQueue_in, l1i_victim_addr);
               if (L2cache.cacheAvail(l1i_victim_addr)) {
// The L2 has room, so we move the line from the L1 to the L2
                 trigger(Event:L1_to_L2,
@@ -525,7 +527,9 @@
               }
             } else {
               // No room in the L1, so we need to make room
+              // Check if the line we want to evict is not locked
Addr l1d_victim_addr := L1Dcache.cacheProbe(in_msg.LineAddress);
+              check_on_cache_probe(mandatoryQueue_in, l1i_victim_addr);
               if (L2cache.cacheAvail(l1d_victim_addr)) {
// The L2 has room, so we move the line from the L1 to the L2
                 trigger(Event:L1_to_L2,

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/19891
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: I2c43f22aba5af3a57e54b1c435e5d3fbba86d1d5
Gerrit-Change-Number: 19891
Gerrit-PatchSet: 1
Gerrit-Owner: Pouya Fotouhi <pfoto...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to