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.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc
index 739b42278..e59c40477 100644
--- a/src/sim/system.cc
+++ b/src/sim/system.cc
@@ -349,8 +349,10 @@ void
System::initState()
{
if (FullSystem) {
- for (int i = 0; i < threadContexts.size(); i++)
- TheISA::startupCPU(threadContexts[i], i);
+ for (auto *tc: threadContexts) {
+ TheISA::initCPU(tc, tc->contextId());
+ TheISA::startupCPU(tc, tc->contextId());
+ }
// Moved from the constructor to here since it relies on the
// address map being resolved in the interconnect
/**