summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network
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 /src/mem/ruby/network
parent21aa5734a0f2c03263e26c66e5cd95ad64c70697 (diff)
downloadgem5-967cfa939afca4a5752ce9c1d64d5c51092e7f1a.tar.xz
ruby: adds size and empty apis to the msg buffer stallmap
Diffstat (limited to 'src/mem/ruby/network')
-rw-r--r--src/mem/ruby/network/MessageBuffer.hh2
1 files changed, 2 insertions, 0 deletions
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)