O3ThreadContext: When taking over from a previous context, only assert that
authorTimothy M. Jones <tjones1@inf.ed.ac.uk>
Tue, 22 Jun 2010 23:53:17 +0000 (00:53 +0100)
committerTimothy M. Jones <tjones1@inf.ed.ac.uk>
Tue, 22 Jun 2010 23:53:17 +0000 (00:53 +0100)
the system pointers match in Full System mode.

src/cpu/o3/thread_context_impl.hh

index 940d460ced9d3801b0fba7a6a088dadf1423943f..a1a96933a896ecc83411c83a8541e8dd65178dbf 100755 (executable)
@@ -55,8 +55,9 @@ void
 O3ThreadContext<Impl>::takeOverFrom(ThreadContext *old_context)
 {
     // some things should already be set up
+#if FULL_SYSTEM
     assert(getSystemPtr() == old_context->getSystemPtr());
-#if !FULL_SYSTEM
+#else
     assert(getProcessPtr() == old_context->getProcessPtr());
 #endif