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:
4
src/mem/cache/base_cache.cc
vendored
4
src/mem/cache/base_cache.cc
vendored
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user