fix segfault when peer owner attempts to use functional port
authorAli Saidi <saidi@eecs.umich.edu>
Tue, 13 Mar 2007 21:34:52 +0000 (17:34 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Tue, 13 Mar 2007 21:34:52 +0000 (17:34 -0400)
--HG--
extra : convert_revision : 3702b4bd038a59bff823c3b428fdfbaabc9715df

src/cpu/o3/thread_context_impl.hh
src/cpu/ozone/cpu_impl.hh
src/cpu/simple_thread.cc

index d2acc6232969d93b3b35cff8fb0da488b546b1e1..a145e046e1036adc96885b661c8aea281bc3a48a 100755 (executable)
@@ -103,7 +103,7 @@ void
 O3ThreadContext<Impl>::delVirtPort(VirtualPort *vp)
 {
     if (vp != thread->getVirtPort()) {
-        delete vp->getPeer();
+        vp->removeConn();
         delete vp;
     }
 }
index 4a76ae11074206209bf01eee99ebf7f1da1eccdc..d78162243c31d6cdf0b906f56e4d2c1743b710ef 100644 (file)
@@ -748,7 +748,7 @@ template <class Impl>
 void
 OzoneCPU<Impl>::OzoneTC::delVirtPort(VirtualPort *vp)
 {
-    delete vp->getPeer();
+    vp->removeConn();
     delete vp;
 }
 #endif
index 13d0e2e291ace750531303b190244444257eb617..39f31782b09520aec5639e044d258a5e97480d55 100644 (file)
@@ -305,7 +305,7 @@ void
 SimpleThread::delVirtPort(VirtualPort *vp)
 {
     if (vp != virtPort) {
-        delete vp->getPeer();
+        vp->removeConn();
         delete vp;
     }
 }