cpu-minor: Remove redundant thread startup call
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 8 Jun 2018 16:20:40 +0000 (17:20 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 14 Jun 2018 12:54:47 +0000 (12:54 +0000)
Don't call startup() twice on each of the threads.

Change-Id: Ibe3d1f25c4fdff291ee310abb9bcad3b184bab20
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11037

src/cpu/minor/cpu.cc

index 68c07675f46fe4f07b3cb13ee919af98ad972a5f..63efde2dce3cffd828ff1a185fd9dcaa48829af8 100644 (file)
@@ -183,9 +183,6 @@ MinorCPU::startup()
 
     BaseCPU::startup();
 
-    for (auto i = threads.begin(); i != threads.end(); i ++)
-        (*i)->startup();
-
     for (ThreadID tid = 0; tid < numThreads; tid++) {
         threads[tid]->startup();
         pipeline->wakeupFetch(tid);