summaryrefslogtreecommitdiff
path: root/src/mem/ruby
diff options
context:
space:
mode:
authorJoel Hestness <jthestness@gmail.com>2015-09-29 09:25:29 -0500
committerJoel Hestness <jthestness@gmail.com>2015-09-29 09:25:29 -0500
commit501705eaf0612ead7a1f4216d10158dd09eca017 (patch)
tree8c115bf5df613d149c764ac6061940f7f0cee9b2 /src/mem/ruby
parent395b31f518f6d5f4be3c57ae47762ad4597b0247 (diff)
downloadgem5-501705eaf0612ead7a1f4216d10158dd09eca017.tar.xz
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.
Diffstat (limited to 'src/mem/ruby')
-rw-r--r--src/mem/ruby/structures/RubyMemoryControl.cc2
1 files changed, 2 insertions, 0 deletions
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