make this parallel to the other cpu types so that resume works correctly.
--HG-- extra : convert_revision : 3c165af27ea0e6c7f2a17819c1717d8900f54cc1
This commit is contained in:
parent
049f8d53a9
commit
0a2387f38c
1 changed files with 7 additions and 4 deletions
|
@ -182,13 +182,16 @@ AtomicSimpleCPU::unserialize(Checkpoint *cp, const string §ion)
|
||||||
void
|
void
|
||||||
AtomicSimpleCPU::resume()
|
AtomicSimpleCPU::resume()
|
||||||
{
|
{
|
||||||
|
if (_status != SwitchedOut && _status != Idle) {
|
||||||
|
assert(system->getMemoryMode() == System::Atomic);
|
||||||
|
|
||||||
changeState(SimObject::Running);
|
changeState(SimObject::Running);
|
||||||
if (thread->status() == ThreadContext::Active) {
|
if (thread->status() == ThreadContext::Active) {
|
||||||
assert(system->getMemoryMode() == System::Atomic);
|
|
||||||
if (!tickEvent.scheduled())
|
if (!tickEvent.scheduled())
|
||||||
tickEvent.schedule(curTick);
|
tickEvent.schedule(curTick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
AtomicSimpleCPU::switchOut()
|
AtomicSimpleCPU::switchOut()
|
||||||
|
|
Loading…
Reference in a new issue