inorder: ctxt switch stats
[gem5.git] / src / mem / mem_object.hh
index a91ea5ac4accd71b93704fe45687b7494a6cf31e..b8bf4b939052b847b3064270cbbe69ce265e9fc4 100644 (file)
@@ -48,29 +48,18 @@ class MemObject : public SimObject
 {
   public:
     typedef MemObjectParams Params;
-    MemObject(const Params *params);
-
-    const Params *
-    params() const
-    {
-        return dynamic_cast<const Params *>(_params);
-    }
+    const Params *params() const
+    { return dynamic_cast<const Params *>(_params); }
 
-  protected:
-    // static: support for old-style constructors (call manually)
-    static Params *makeParams(const std::string &name);
+    MemObject(const Params *params);
 
   public:
     /** 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__