From: Lisa Hsu Date: Wed, 18 Oct 2006 21:59:11 +0000 (-0400) Subject: only do this assert after you know you're not switched out or idle. X-Git-Tag: m5_2.0_beta2~73^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2c48645c9b4f93cce8c1f653b6ef3e451829112;p=gem5.git only do this assert after you know you're not switched out or idle. --HG-- extra : convert_revision : 0cd0d31db44fe7e8e44bde90e1756873faca422f --- diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index 4c9a8e91f..367508288 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -850,9 +850,6 @@ template void FullO3CPU::resume() { -#if FULL_SYSTEM - assert(system->getMemoryMode() == System::Timing); -#endif fetch.resume(); decode.resume(); rename.resume(); @@ -864,6 +861,10 @@ FullO3CPU::resume() if (_status == SwitchedOut || _status == Idle) return; +#if FULL_SYSTEM + assert(system->getMemoryMode() == System::Timing); +#endif + if (!tickEvent.scheduled()) tickEvent.schedule(curTick); _status = Running;