Pouya Fotouhi has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/19890 )
Change subject: mem-ruby: Use check_on_cache_probe on MOESI
......................................................................
mem-ruby: Use check_on_cache_probe on MOESI
This change uses check_on_cache_probe statement to check if the cacheline
subject to eviction is locked in MOESI.
Change-Id: Ie650ccdc15bb41b4088e534975b662408aaccf24
---
M src/mem/protocol/MOESI_AMD_Base-CorePair.sm
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mem/protocol/MOESI_AMD_Base-CorePair.sm
b/src/mem/protocol/MOESI_AMD_Base-CorePair.sm
index e1504de..140bbc4 100644
--- a/src/mem/protocol/MOESI_AMD_Base-CorePair.sm
+++ b/src/mem/protocol/MOESI_AMD_Base-CorePair.sm
@@ -543,7 +543,9 @@
tbe);
}
} else {
+ // Check if the line we want to evict is not locked
Addr victim := L1Icache.cacheProbe(in_msg.LineAddress);
+ check_on_cache_probe(mandatoryQueue_in, victim);
trigger(Event:L1I_Repl, victim,
getCacheEntry(victim), TBEs.lookup(victim));
}
@@ -582,7 +584,9 @@
cache_entry, tbe);
}
} else {
+ // Check if the line we want to evict is not locked
Addr victim := L1D1cache.cacheProbe(in_msg.LineAddress);
+ check_on_cache_probe(mandatoryQueue_in, victim);
trigger(Event:L1D1_Repl, victim,
getCacheEntry(victim), TBEs.lookup(victim));
}
@@ -618,7 +622,9 @@
cache_entry, tbe);
}
} else {
+ // Check if the line we want to evict is not locked
Addr victim := L1D0cache.cacheProbe(in_msg.LineAddress);
+ check_on_cache_probe(mandatoryQueue_in, victim);
trigger(Event:L1D0_Repl, victim, getCacheEntry(victim),
TBEs.lookup(victim));
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/19890
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: Ie650ccdc15bb41b4088e534975b662408aaccf24
Gerrit-Change-Number: 19890
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