changeset 2f2e4582014f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2f2e4582014f
description:
        System: Remove redundant call to startupCPU

diffstat:

 src/sim/system.cc |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r ae88ecf37145 -r 2f2e4582014f src/sim/system.cc
--- a/src/sim/system.cc Mon Aug 27 01:00:55 2012 -0500
+++ b/src/sim/system.cc Mon Aug 27 01:14:46 2012 -0500
@@ -257,9 +257,8 @@
 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 @@
     }
 
     activeCpus.clear();
-
-    if (!FullSystem)
-        return;
-
-    for (i = 0; i < threadContexts.size(); i++)
-        TheISA::startupCPU(threadContexts[i], i);
 }
 
 void
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to