cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / base.cc
index aaf9c9cbcd1fc6da7008e42018cd2112dd4199a4..2b1df669677ae0e8d1adbe1a955bbf0608dfe5b1 100644 (file)
@@ -230,6 +230,11 @@ BaseCPU::BaseCPU(Params *p, bool is_checker)
             profileEvent = new ProfileEvent(this, params()->profile);
     }
     tracer = params()->tracer;
+
+    if (params()->isa.size() != numThreads) {
+        fatal("Number of ISAs (%i) assigned to the CPU does not equal number "
+              "of threads (%i).\n", params()->isa.size(), numThreads);
+    }
 }
 
 void