From 967cfa939afca4a5752ce9c1d64d5c51092e7f1a Mon Sep 17 00:00:00 2001 From: David Hashe Date: Mon, 20 Jul 2015 09:15:18 -0500 Subject: [PATCH] ruby: adds size and empty apis to the msg buffer stallmap --- src/mem/protocol/RubySlicc_Types.sm | 2 ++ src/mem/ruby/network/MessageBuffer.hh | 2 ++ 2 files changed, 4 insertions(+) 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) -- 2.30.2