diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2011-03-18 14:12:03 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2011-03-18 14:12:03 -0500 |
commit | 3f27ccbb5488a6904f8bffc7e2ecc58c39a09119 (patch) | |
tree | f206d3d898a181d1ce94ec5e02e562fe4fea71ad /src/mem/protocol | |
parent | 847ba941ea345f01b2f5176432b6541902a41d2b (diff) | |
download | gem5-3f27ccbb5488a6904f8bffc7e2ecc58c39a09119.tar.xz |
SLICC: Remove the keyword wake_up_dependents
In order to add stall and wait facility for protocols, a keyword
wake_up_dependents was introduced. This patch removes the keyword,
instead this functionality is now implemented as function call.
Diffstat (limited to 'src/mem/protocol')
-rw-r--r-- | src/mem/protocol/MOESI_CMP_token-L1cache.sm | 3 | ||||
-rw-r--r-- | src/mem/protocol/MOESI_hammer-cache.sm | 3 | ||||
-rw-r--r-- | src/mem/protocol/MOESI_hammer-dir.sm | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/mem/protocol/MOESI_CMP_token-L1cache.sm b/src/mem/protocol/MOESI_CMP_token-L1cache.sm index 5735fe203..edaf5f8ae 100644 --- a/src/mem/protocol/MOESI_CMP_token-L1cache.sm +++ b/src/mem/protocol/MOESI_CMP_token-L1cache.sm @@ -177,6 +177,7 @@ machine(L1Cache, "Token protocol") void set_tbe(TBE b); void unset_tbe(); void wakeUpAllBuffers(); + void wakeUpBuffers(Address a); TBETable L1_TBEs, template_hack="<L1Cache_TBE>"; @@ -1522,7 +1523,7 @@ machine(L1Cache, "Token protocol") } action(kd_wakeUpDependents, "kd", desc="wake-up dependents") { - wake_up_dependents(address); + wakeUpBuffers(address); } action(ka_wakeUpAllDependents, "ka", desc="wake-up all dependents") { diff --git a/src/mem/protocol/MOESI_hammer-cache.sm b/src/mem/protocol/MOESI_hammer-cache.sm index 94fd25f56..4bbf3bde1 100644 --- a/src/mem/protocol/MOESI_hammer-cache.sm +++ b/src/mem/protocol/MOESI_hammer-cache.sm @@ -159,6 +159,7 @@ machine(L1Cache, "AMD Hammer-like protocol") void set_tbe(TBE b); void unset_tbe(); void wakeUpAllBuffers(); + void wakeUpBuffers(Address a); Entry getCacheEntry(Address address), return_by_pointer="yes" { Entry L2cache_entry := static_cast(Entry, "pointer", L2cacheMemory.lookup(address)); @@ -1013,7 +1014,7 @@ machine(L1Cache, "AMD Hammer-like protocol") } action(kd_wakeUpDependents, "kd", desc="wake-up dependents") { - wake_up_dependents(address); + wakeUpBuffers(address); } action(ka_wakeUpAllDependents, "ka", desc="wake-up all dependents") { diff --git a/src/mem/protocol/MOESI_hammer-dir.sm b/src/mem/protocol/MOESI_hammer-dir.sm index 8f6cb14b7..439723d68 100644 --- a/src/mem/protocol/MOESI_hammer-dir.sm +++ b/src/mem/protocol/MOESI_hammer-dir.sm @@ -173,6 +173,7 @@ machine(Directory, "AMD Hammer-like protocol") void unset_cache_entry(); void set_tbe(TBE a); void unset_tbe(); + void wakeUpBuffers(Address a); // ** OBJECTS ** @@ -1013,7 +1014,7 @@ machine(Directory, "AMD Hammer-like protocol") } action(k_wakeUpDependents, "k", desc="wake-up dependents") { - wake_up_dependents(address); + wakeUpBuffers(address); } action(l_popMemQueue, "q", desc="Pop off-chip request queue") { |