only do this assert after you know you're not switched out or idle.
authorLisa Hsu <hsul@eecs.umich.edu>
Wed, 18 Oct 2006 21:59:11 +0000 (17:59 -0400)
committerLisa Hsu <hsul@eecs.umich.edu>
Wed, 18 Oct 2006 21:59:11 +0000 (17:59 -0400)
--HG--
extra : convert_revision : 0cd0d31db44fe7e8e44bde90e1756873faca422f

src/cpu/o3/cpu.cc

index 4c9a8e91f5e8c4f49cf358aea31adc1604071468..36750828852e3a1fb3a7d1aff3fe1296b6d47e94 100644 (file)
@@ -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;