Don't DPRINTF in the middle of a PrintReq.
authorSteve Reinhardt <stever@gmail.com>
Wed, 2 Jan 2008 22:42:42 +0000 (14:42 -0800)
committerSteve Reinhardt <stever@gmail.com>
Wed, 2 Jan 2008 22:42:42 +0000 (14:42 -0800)
--HG--
extra : convert_revision : 6358c014d14a19a34111c39827b05987507544bb

src/mem/cache/cache_impl.hh

index 257b3ef33ec8ba2c12284138d8e9ad99129329b2..130a909cc4aec81ea629b38b282ee4bd1996bad9 100644 (file)
@@ -92,9 +92,12 @@ Cache<TagStore>::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<Range<Addr> >());
+        CpuSidePort *funcPort =
+            new CpuSidePort(name() + "-cpu_side_funcport", this,
+                            "CpuSideFuncPort",
+                            std::vector<Range<Addr> >());
+        funcPort->setOtherPort(memSidePort);
+        return funcPort;
     } else {
         panic("Port name %s unrecognized\n", if_name);
     }