diff options
author | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
---|---|---|
committer | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
commit | 967cfa939afca4a5752ce9c1d64d5c51092e7f1a (patch) | |
tree | c9c177853775aeb9ddb4829e2fab63530e70e29c | |
parent | 21aa5734a0f2c03263e26c66e5cd95ad64c70697 (diff) | |
download | gem5-967cfa939afca4a5752ce9c1d64d5c51092e7f1a.tar.xz |
ruby: adds size and empty apis to the msg buffer stallmap
-rw-r--r-- | src/mem/protocol/RubySlicc_Types.sm | 2 | ||||
-rw-r--r-- | src/mem/ruby/network/MessageBuffer.hh | 2 |
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) |