diff options
-rw-r--r-- | cpu/ozone/cpu.hh | 2 | ||||
-rw-r--r-- | cpu/ozone/cpu_impl.hh | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/cpu/ozone/cpu.hh b/cpu/ozone/cpu.hh index d37d3360c..56b6571a2 100644 --- a/cpu/ozone/cpu.hh +++ b/cpu/ozone/cpu.hh @@ -613,6 +613,8 @@ class OzoneCPU : public BaseCPU TimeBuffer<CommStruct> comm; bool lockFlag; + + Stats::Scalar<> quiesceCycles; }; #endif // __CPU_OZONE_CPU_HH__ diff --git a/cpu/ozone/cpu_impl.hh b/cpu/ozone/cpu_impl.hh index a7bc61603..17d944e7c 100644 --- a/cpu/ozone/cpu_impl.hh +++ b/cpu/ozone/cpu_impl.hh @@ -413,6 +413,11 @@ OzoneCPU<Impl>::regStats() .desc("Percentage of idle cycles") ; + quiesceCycles + .name(name() + ".quiesce_cycles") + .desc("Number of cycles spent in quiesce") + ; + idleFraction = constant(1.0) - notIdleFraction; frontEnd->regStats(); @@ -609,7 +614,8 @@ OzoneCPU<Impl>::post_interrupt(int int_num, int index) { BaseCPU::post_interrupt(int_num, index); - if (thread._status == ExecContext::Suspended) { +// if (thread._status == ExecContext::Suspended) { + if (_status == Idle) { DPRINTF(IPI,"Suspended Processor awoke\n"); // thread.activate(); // Hack for now. Otherwise might have to go through the xcProxy, or |