Caches return a new functional port whenever asked for one.
authorKevin Lim <ktlim@umich.edu>
Thu, 2 Nov 2006 20:17:45 +0000 (15:17 -0500)
committerKevin Lim <ktlim@umich.edu>
Thu, 2 Nov 2006 20:17:45 +0000 (15:17 -0500)
src/mem/cache/base_cache.cc:
    Have caches return a new functional port whenever asked for them.  I'm pretty sure this is desired behavior.  Ron can correct me if it's not.

--HG--
extra : convert_revision : e1fadf895a7d714968128ff900d10e86fde53387

src/mem/cache/base_cache.cc

index 47d40a49075d8b3a94c765c3b4fbdb4db463fa75..1c519fb86dcf8cc28ad4af0466542767148f4940 100644 (file)
@@ -357,9 +357,7 @@ BaseCache::getPort(const std::string &if_name, int idx)
     }
     else if (if_name == "functional")
     {
-        if(cpuSidePort == NULL)
-            cpuSidePort = new CachePort(name() + "-cpu_side_port", this, true);
-        return cpuSidePort;
+        return new CachePort(name() + "-cpu_side_port", this, true);
     }
     else if (if_name == "cpu_side")
     {