diff options
-rw-r--r-- | src/cpu/minor/cpu.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/minor/cpu.cc b/src/cpu/minor/cpu.cc index b49c1ecda..51a3f3ae8 100644 --- a/src/cpu/minor/cpu.cc +++ b/src/cpu/minor/cpu.cc @@ -201,6 +201,11 @@ MinorCPU::startup() DrainState MinorCPU::drain() { + if (switchedOut()) { + DPRINTF(Drain, "Minor CPU switched out, draining not needed.\n"); + return DrainState::Drained; + } + DPRINTF(Drain, "MinorCPU drain\n"); /* Need to suspend all threads and wait for Execute to idle. |