summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-08-27 01:14:46 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-08-27 01:14:46 -0500
commit0737837109570758f86a40d11d14886a0e4965ef (patch)
tree8dea8d1f5612ff6ab81630623afa442c8708e8fb /src
parent9190940511b5783811bc6288dd4f22f8d18c9d26 (diff)
downloadgem5-0737837109570758f86a40d11d14886a0e4965ef.tar.xz
System: Remove redundant call to startupCPU
Diffstat (limited to 'src')
-rw-r--r--src/sim/system.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc
index 8ff1de445..2dd4d41bd 100644
--- a/src/sim/system.cc
+++ b/src/sim/system.cc
@@ -257,9 +257,8 @@ System::numRunningContexts()
void
System::initState()
{
- int i;
if (FullSystem) {
- for (i = 0; i < threadContexts.size(); i++)
+ for (int i = 0; i < threadContexts.size(); i++)
TheISA::startupCPU(threadContexts[i], i);
// Moved from the constructor to here since it relies on the
// address map being resolved in the interconnect
@@ -278,12 +277,6 @@ System::initState()
}
activeCpus.clear();
-
- if (!FullSystem)
- return;
-
- for (i = 0; i < threadContexts.size(); i++)
- TheISA::startupCPU(threadContexts[i], i);
}
void