Switch out fixes for CPUs.
authorKevin Lim <ktlim@umich.edu>
Fri, 7 Jul 2006 19:38:15 +0000 (15:38 -0400)
committerKevin Lim <ktlim@umich.edu>
Fri, 7 Jul 2006 19:38:15 +0000 (15:38 -0400)
commit018ba50f2c05e07c7bd1c951db8ba33402c323dc
treedf754aff776ffe6cb9ac6347bd463e4c5b253541
parent55e59e26c1a7acd8715262999451c451fc50b480
Switch out fixes for CPUs.

src/cpu/o3/cpu.cc:
    Fix up keeping proper state when switched out and drained.
src/cpu/simple/timing.cc:
src/cpu/simple/timing.hh:
    Keep track of the event we use to schedule fetch initially and upon resume.  We may have to cancel the event if the CPU is switched out.

--HG--
extra : convert_revision : 60a2a1bd2cdc67bd53ca4a67aa77166c826a4c8c
src/cpu/o3/cpu.cc
src/cpu/simple/timing.cc
src/cpu/simple/timing.hh