From: Steve Reinhardt Date: Wed, 2 Jan 2008 22:42:42 +0000 (-0800) Subject: Don't DPRINTF in the middle of a PrintReq. X-Git-Tag: m5_2.0_beta5~40 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=538da9e24d5797c6931c0214036c0156a1144c0e;p=gem5.git Don't DPRINTF in the middle of a PrintReq. --HG-- extra : convert_revision : 6358c014d14a19a34111c39827b05987507544bb --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index 257b3ef33..130a909cc 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); }