From: Joel Hestness Date: Tue, 29 Sep 2015 14:25:29 +0000 (-0500) Subject: ruby: RubyMemoryControl delete requests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=501705eaf0612ead7a1f4216d10158dd09eca017;p=gem5.git ruby: RubyMemoryControl delete requests Changes to the RubyMemoryControl removed the dequeue function, which deleted MemoryNode instances. This results in leaked MemoryNode instances. Correctly delete these instances. --- diff --git a/src/mem/ruby/structures/RubyMemoryControl.cc b/src/mem/ruby/structures/RubyMemoryControl.cc index 452606451..5feb9348b 100644 --- a/src/mem/ruby/structures/RubyMemoryControl.cc +++ b/src/mem/ruby/structures/RubyMemoryControl.cc @@ -527,6 +527,8 @@ RubyMemoryControl::issueRequest(int bank) m_busBusyCounter_Write = m_basic_bus_busy_time; m_busBusyCounter_ReadNewRank = m_basic_bus_busy_time; } + + delete req; } // executeCycle: This function is called once per memory clock cycle