Quiesce stuff.
authorKevin Lim <ktlim@umich.edu>
Mon, 24 Apr 2006 21:40:00 +0000 (17:40 -0400)
committerKevin Lim <ktlim@umich.edu>
Mon, 24 Apr 2006 21:40:00 +0000 (17:40 -0400)
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

cpu/ozone/cpu.hh
cpu/ozone/cpu_impl.hh

index d37d3360ce2157b2b5eb58283b07574950d5c98e..56b6571a26bc26c40579c1429ec76a7a7c6c9e9f 100644 (file)
@@ -613,6 +613,8 @@ class OzoneCPU : public BaseCPU
     TimeBuffer<CommStruct> comm;
 
     bool lockFlag;
+
+    Stats::Scalar<> quiesceCycles;
 };
 
 #endif // __CPU_OZONE_CPU_HH__
index a7bc61603f9faf467c67c0a4eb0e8d55f70a5b3b..17d944e7ca2f58c1b2c13036e56f2147ecfe3b2b 100644 (file)
@@ -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