O3: Make numThreads error message more helpful.
authorSteve Reinhardt <stever@gmail.com>
Wed, 4 Mar 2009 14:25:53 +0000 (09:25 -0500)
committerSteve Reinhardt <stever@gmail.com>
Wed, 4 Mar 2009 14:25:53 +0000 (09:25 -0500)
src/cpu/o3/fetch_impl.hh

index 06df46c2bc8b9a4ed1b951f6756f4631b7385da3..79a4f2b7a9503ca490926db0a4c6d9c4f77bf885 100644 (file)
@@ -132,7 +132,9 @@ DefaultFetch<Impl>::DefaultFetch(O3CPU *_cpu, DerivO3CPUParams *params)
       switchedOut(false)
 {
     if (numThreads > Impl::MaxThreads)
-        fatal("numThreads is not a valid value\n");
+        fatal("numThreads (%d) is larger than compiled limit (%d),\n"
+              "\tincrease MaxThreads in src/cpu/o3/impl.hh\n",
+              numThreads, static_cast<int>(Impl::MaxThreads));
 
     // Set fetch stage's status to inactive.
     _status = Inactive;