diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 257b3ef33e..130a909cc4 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -92,9 +92,12 @@ Cache::getPort(const std::string &if_name, int idx) } else if (if_name == "mem_side") { return memSidePort; } else if (if_name == "functional") { - return new CpuSidePort(name() + "-cpu_side_funcport", this, - "CpuSideFuncPort", - std::vector >()); + CpuSidePort *funcPort = + new CpuSidePort(name() + "-cpu_side_funcport", this, + "CpuSideFuncPort", + std::vector >()); + funcPort->setOtherPort(memSidePort); + return funcPort; } else { panic("Port name %s unrecognized\n", if_name); }