diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-01-28 06:14:18 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-01-28 06:14:18 -0600 |
commit | a8eb5b18e06c1304ac0bc7e5929c57a1cfaacda1 (patch) | |
tree | dc3ed04d39c3a64ec8cd13cf6f6a0cab795b5af4 /src/mem/protocol/MOESI_CMP_token-L1cache.sm | |
parent | 31659e83fbf6fa2b9024908cdba428145ef1fade (diff) | |
download | gem5-a8eb5b18e06c1304ac0bc7e5929c57a1cfaacda1.tar.xz |
ruby: remove get_time()
This patch replaces get_time() in *.sm files with curCycle() which
is now possible since controllers are clocked objects.
Diffstat (limited to 'src/mem/protocol/MOESI_CMP_token-L1cache.sm')
-rw-r--r-- | src/mem/protocol/MOESI_CMP_token-L1cache.sm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/protocol/MOESI_CMP_token-L1cache.sm b/src/mem/protocol/MOESI_CMP_token-L1cache.sm index a5de5e832..5533a34dc 100644 --- a/src/mem/protocol/MOESI_CMP_token-L1cache.sm +++ b/src/mem/protocol/MOESI_CMP_token-L1cache.sm @@ -179,6 +179,7 @@ machine(L1Cache, "Token protocol") void unset_tbe(); void wakeUpAllBuffers(); void wakeUpBuffers(Address a); + Time curCycle(); TBETable L1_TBEs, template="<L1Cache_TBE>", constructor="m_number_of_TBEs"; @@ -1344,7 +1345,7 @@ machine(L1Cache, "Token protocol") tbe.Prefetch := in_msg.Prefetch; tbe.AccessMode := in_msg.AccessMode; } - tbe.IssueTime := get_time(); + tbe.IssueTime := curCycle(); } action(ta_traceStalledAddress, "ta", desc="Trace Stalled Address") { @@ -1447,7 +1448,7 @@ machine(L1Cache, "Token protocol") // Update average latency if (tbe.IssueCount <= 1) { if (tbe.ExternalResponse == true) { - updateAverageLatencyEstimate(time_to_int(get_time()) - time_to_int(tbe.IssueTime)); + updateAverageLatencyEstimate(time_to_int(curCycle()) - time_to_int(tbe.IssueTime)); } } |