summaryrefslogtreecommitdiff
path: root/src/sim/system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/system.cc')
-rw-r--r--src/sim/system.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc
index 14c44d063..83610a102 100644
--- a/src/sim/system.cc
+++ b/src/sim/system.cc
@@ -218,8 +218,8 @@ System::numRunningContexts()
void
System::initState()
{
+ int i;
if (FullSystem) {
- int i;
for (i = 0; i < threadContexts.size(); i++)
TheISA::startupCPU(threadContexts[i], i);
// Moved from the constructor to here since it relies on the
@@ -271,11 +271,11 @@ System::initState()
activeCpus.clear();
- if (FullSystem) {
- int i;
- for (i = 0; i < threadContexts.size(); i++)
- TheISA::startupCPU(threadContexts[i], i);
- }
+ if (!FullSystem)
+ return;
+
+ for (i = 0; i < threadContexts.size(); i++)
+ TheISA::startupCPU(threadContexts[i], i);
}
void