Caches return a new functional port whenever asked for one.

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
This commit is contained in:
Kevin Lim 2006-11-02 15:17:45 -05:00
parent dd5e2cd959
commit 8d53f298a6

View 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")
{