From: Kevin Lim Date: Mon, 24 Apr 2006 21:40:00 +0000 (-0400) Subject: Quiesce stuff. X-Git-Tag: m5_2.0_beta1~36^2~108^2~38 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d363d5aad72b34769c753752a779a13e11532fd8;p=gem5.git Quiesce stuff. cpu/ozone/cpu.hh: Add quiesce stat (not clear how it should be used yet). cpu/ozone/cpu_impl.hh: Fix for quiesce. --HG-- extra : convert_revision : a1998818e241374ae3f4c3cabbef885dda55c884 --- 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 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::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::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