cpu: Fix timing CPU drain check
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 19 Aug 2013 07:52:30 +0000 (03:52 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 19 Aug 2013 07:52:30 +0000 (03:52 -0400)
commit7a61f667f072bace1efb38e7c0d5fc49e4e0b420
tree1281cab9ddd3f4c919180491c6b68715628606ab
parentf7d44590cb5455c2b70c2b26005bbbcdd771de18
cpu: Fix timing CPU drain check

This patch modifies the SimpleTimingCPU drain check to also consider
the fetch event. Previously, there was an assumption that there is
never a fetch event scheduled if the CPU is not executing
microcode. However, when a context is activated, a fetch even is
scheduled, and microPC() is zero.
src/cpu/simple/timing.cc
src/cpu/simple/timing.hh