135c135
< if (_status == SwitchedOut)
---
> if (switchedOut())
153a154
> assert(!tickEvent.scheduled());
155c156
< if (_status == Idle || _status == SwitchedOut)
---
> if (switchedOut())
164,165c165,169
< assert(!tickEvent.scheduled());
< if (thread->status() == ThreadContext::Active)
---
> assert(!threadContexts.empty());
> if (threadContexts.size() > 1)
> fatal("The atomic CPU only supports one thread.\n");
>
> if (thread->status() == ThreadContext::Active) {
166a171,174
> _status = BaseSimpleCPU::Running;
> } else {
> _status = BaseSimpleCPU::Idle;
> }
197,198d204
<
< _status = SwitchedOut;
210,219d215
< assert(!threadContexts.empty());
< if (threadContexts.size() > 1)
< fatal("The atomic CPU only supports one thread.\n");
<
< // If the ThreadContext is active, mark the CPU as running.
< if (thread->status() == ThreadContext::Active)
< _status = BaseSimpleCPU::Running;
< else
< _status = Idle;
<