From: Nilay Vaish Date: Wed, 16 Sep 2015 16:59:55 +0000 (-0500) Subject: ruby: remove unused function removeRequest() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78a1245b4115373856514eacf2264141e6cd4aca;p=gem5.git ruby: remove unused function removeRequest() --- 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);