From 78a1245b4115373856514eacf2264141e6cd4aca Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 16 Sep 2015 11:59:55 -0500 Subject: ruby: remove unused function removeRequest() --- src/mem/ruby/system/Sequencer.cc | 22 ---------------------- src/mem/ruby/system/Sequencer.hh | 1 - 2 files changed, 23 deletions(-) (limited to 'src/mem') diff --git a/src/mem/ruby/system/Sequencer.cc b/src/mem/ruby/system/Sequencer.cc index 48e6c5163..186e62d55 100644 --- a/src/mem/ruby/system/Sequencer.cc +++ b/src/mem/ruby/system/Sequencer.cc @@ -241,28 +241,6 @@ Sequencer::markRemoved() m_writeRequestTable.size() + m_readRequestTable.size()); } -void -Sequencer::removeRequest(SequencerRequest* srequest) -{ - assert(m_outstanding_count == - m_writeRequestTable.size() + m_readRequestTable.size()); - - Addr line_addr = makeLineAddress(srequest->pkt->getAddr()); - if ((srequest->m_type == RubyRequestType_ST) || - (srequest->m_type == RubyRequestType_RMW_Read) || - (srequest->m_type == RubyRequestType_RMW_Write) || - (srequest->m_type == RubyRequestType_Load_Linked) || - (srequest->m_type == RubyRequestType_Store_Conditional) || - (srequest->m_type == RubyRequestType_Locked_RMW_Read) || - (srequest->m_type == RubyRequestType_Locked_RMW_Write)) { - m_writeRequestTable.erase(line_addr); - } else { - m_readRequestTable.erase(line_addr); - } - - markRemoved(); -} - void Sequencer::invalidateSC(Addr address) { diff --git a/src/mem/ruby/system/Sequencer.hh b/src/mem/ruby/system/Sequencer.hh index 319c5cf21..4716aa653 100644 --- a/src/mem/ruby/system/Sequencer.hh +++ b/src/mem/ruby/system/Sequencer.hh @@ -97,7 +97,6 @@ class Sequencer : public RubyPort void checkCoherence(Addr address); void markRemoved(); - void removeRequest(SequencerRequest* request); void evictionCallback(Addr address); void invalidateSC(Addr address); -- cgit v1.2.3