summaryrefslogtreecommitdiff
path: root/src/mem/mem_object.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@gmail.com>2008-06-28 13:19:38 -0400
committerSteve Reinhardt <stever@gmail.com>2008-06-28 13:19:38 -0400
commitcaaac16803db6eaf3ee20b5d062ec2211fe6584d (patch)
treed3664f74378429cc389c6e166aebaca7fbcd6963 /src/mem/mem_object.hh
parent6b45238316052f458ba9ebc9d24a91cfa9e41cf1 (diff)
downloadgem5-caaac16803db6eaf3ee20b5d062ec2211fe6584d.tar.xz
Backed out changeset 94a7bb476fca: caused memory leak.
Diffstat (limited to 'src/mem/mem_object.hh')
-rw-r--r--src/mem/mem_object.hh10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mem/mem_object.hh b/src/mem/mem_object.hh
index a91ea5ac4..33b56dfd4 100644
--- a/src/mem/mem_object.hh
+++ b/src/mem/mem_object.hh
@@ -64,13 +64,9 @@ class MemObject : public SimObject
/** Additional function to return the Port of a memory object. */
virtual Port *getPort(const std::string &if_name, int idx = -1) = 0;
- /** Tell MemObject that this port is no longer in use, so it
- * should remove it from any structures that it's keeping it in.
- * If the port was allocated dynamically for this connection, it
- * should be deleted here.
- * @return True if the port was deleted, false if it still exists.
- */
- virtual bool deletePort(Port *p);
+ /** Tell object that this port is about to disappear, so it should remove it
+ * from any structures that it's keeping it in. */
+ virtual void deletePortRefs(Port *p) ;
};
#endif //__MEM_MEM_OBJECT_HH__