summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-11-02 15:17:45 -0500
committerKevin Lim <ktlim@umich.edu>2006-11-02 15:17:45 -0500
commit8d53f298a6efd3312cc1096b13b6be9e6a7fe02f (patch)
tree95d524f0cfc27d3fab880b6055ae4baa66e3f195 /src
parentdd5e2cd959e61b8af094137f337e999048317ec3 (diff)
downloadgem5-8d53f298a6efd3312cc1096b13b6be9e6a7fe02f.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/mem/cache/base_cache.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mem/cache/base_cache.cc b/src/mem/cache/base_cache.cc
index 47d40a490..1c519fb86 100644
--- a/src/mem/cache/base_cache.cc
+++ b/src/mem/cache/base_cache.cc
@@ -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")
{