summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hashe <david.hashe@amd.com>2015-07-20 09:15:18 -0500
committerDavid Hashe <david.hashe@amd.com>2015-07-20 09:15:18 -0500
commit967cfa939afca4a5752ce9c1d64d5c51092e7f1a (patch)
treec9c177853775aeb9ddb4829e2fab63530e70e29c
parent21aa5734a0f2c03263e26c66e5cd95ad64c70697 (diff)
downloadgem5-967cfa939afca4a5752ce9c1d64d5c51092e7f1a.tar.xz
ruby: adds size and empty apis to the msg buffer stallmap
-rw-r--r--src/mem/protocol/RubySlicc_Types.sm2
-rw-r--r--src/mem/ruby/network/MessageBuffer.hh2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/protocol/RubySlicc_Types.sm b/src/mem/protocol/RubySlicc_Types.sm
index 11159fd6c..aaae7d2be 100644
--- a/src/mem/protocol/RubySlicc_Types.sm
+++ b/src/mem/protocol/RubySlicc_Types.sm
@@ -45,6 +45,8 @@ structure(InPort, external = "yes", primitive="yes") {
Cycles dequeue();
void recycle();
bool isEmpty();
+ bool isStallMapEmpty();
+ int getStallMapSize();
}
external_type(NodeID, default="0", primitive="yes");
diff --git a/src/mem/ruby/network/MessageBuffer.hh b/src/mem/ruby/network/MessageBuffer.hh
index 604d7bc7d..3ced44250 100644
--- a/src/mem/ruby/network/MessageBuffer.hh
+++ b/src/mem/ruby/network/MessageBuffer.hh
@@ -123,6 +123,8 @@ class MessageBuffer
void recycle();
bool isEmpty() const { return m_prio_heap.size() == 0; }
+ bool isStallMapEmpty() { return m_stall_msg_map.size() == 0; }
+ unsigned int getStallMapSize() { return m_stall_msg_map.size(); }
void
setOrdering(bool order)