From f1b6d1913c8816d4817a437176621dd066d9a47e Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 14 Oct 2015 00:29:39 -0500 Subject: ruby: remove unused functionalRead() function. Not required since functional reads cannot rely on messages that are inflight. --- src/mem/ruby/network/MessageBuffer.cc | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/mem/ruby/network/MessageBuffer.cc') diff --git a/src/mem/ruby/network/MessageBuffer.cc b/src/mem/ruby/network/MessageBuffer.cc index 72c03457a..3f1586916 100644 --- a/src/mem/ruby/network/MessageBuffer.cc +++ b/src/mem/ruby/network/MessageBuffer.cc @@ -350,32 +350,6 @@ MessageBuffer::isReady(Tick current_time) const (m_prio_heap.front()->getLastEnqueueTime() <= current_time)); } -bool -MessageBuffer::functionalRead(Packet *pkt) -{ - // Check the priority heap and read any messages that may - // correspond to the address in the packet. - for (unsigned int i = 0; i < m_prio_heap.size(); ++i) { - Message *msg = m_prio_heap[i].get(); - if (msg->functionalRead(pkt)) return true; - } - - // Read the messages in the stall queue that correspond - // to the address in the packet. - for (StallMsgMapType::iterator map_iter = m_stall_msg_map.begin(); - map_iter != m_stall_msg_map.end(); - ++map_iter) { - - for (std::list::iterator it = (map_iter->second).begin(); - it != (map_iter->second).end(); ++it) { - - Message *msg = (*it).get(); - if (msg->functionalRead(pkt)) return true; - } - } - return false; -} - uint32_t MessageBuffer::functionalWrite(Packet *pkt) { -- cgit v1.2.3