summaryrefslogtreecommitdiff
path: root/sim/prog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/prog.cc')
-rw-r--r--sim/prog.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sim/prog.cc b/sim/prog.cc
index 599a0ca9a..fca4b4505 100644
--- a/sim/prog.cc
+++ b/sim/prog.cc
@@ -148,10 +148,7 @@ Process::registerExecContext(ExecContext *xc)
xc->regs = *init_regs;
// mark this context as active
- xc->initStatus(ExecContext::Active);
- }
- else {
- xc->initStatus(ExecContext::Unallocated);
+ xc->setStatus(ExecContext::Active);
}
// return CPU number to caller and increment available CPU count