diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-11-02 15:17:45 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-11-02 15:17:45 -0500 |
commit | 8d53f298a6efd3312cc1096b13b6be9e6a7fe02f (patch) | |
tree | 95d524f0cfc27d3fab880b6055ae4baa66e3f195 | |
parent | dd5e2cd959e61b8af094137f337e999048317ec3 (diff) | |
download | gem5-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
-rw-r--r-- | src/mem/cache/base_cache.cc | 4 |
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") { |