Searched hist:10949 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/cpu/minor/
H A Dcpu.cc10949:7fc527ab626a Fri Jul 31 12:04:00 EDT 2015 Andreas Sandberg <andreas.sandberg@arm.com> cpu: Fix Minor drain issues when switched out

The Minor CPU currently doesn't drain properly when it is switched
out. This happens because Fetch 1 expects to be in the FetchHalted
state when it is drained. However, because the CPU is switched out, it
is stuck in the FetchWaitingForPC state. Fix this by ignoring drain
requests and returning DrainState::Drained from MinorCPU::drain() if
the CPU is switched out. This is always safe since a switched out CPU,
by definition, doesn't have any instructions in flight.

Completed in 9 milliseconds