only do this assert after you know you're not switched out or idle.
--HG-- extra : convert_revision : 0cd0d31db44fe7e8e44bde90e1756873faca422f
This commit is contained in:
parent
0e2561710b
commit
c2c48645c9
|
@ -850,9 +850,6 @@ template <class Impl>
|
|||
void
|
||||
FullO3CPU<Impl>::resume()
|
||||
{
|
||||
#if FULL_SYSTEM
|
||||
assert(system->getMemoryMode() == System::Timing);
|
||||
#endif
|
||||
fetch.resume();
|
||||
decode.resume();
|
||||
rename.resume();
|
||||
|
@ -864,6 +861,10 @@ FullO3CPU<Impl>::resume()
|
|||
if (_status == SwitchedOut || _status == Idle)
|
||||
return;
|
||||
|
||||
#if FULL_SYSTEM
|
||||
assert(system->getMemoryMode() == System::Timing);
|
||||
#endif
|
||||
|
||||
if (!tickEvent.scheduled())
|
||||
tickEvent.schedule(curTick);
|
||||
_status = Running;
|
||||
|
|
Loading…
Reference in a new issue