inorder-stats: add prereq to basic stat
authorKorey Sewell <ksewell@umich.edu>
Sun, 31 Jan 2010 23:29:06 +0000 (18:29 -0500)
committerKorey Sewell <ksewell@umich.edu>
Sun, 31 Jan 2010 23:29:06 +0000 (18:29 -0500)
only show requests processed when the resource is actually in use

src/cpu/inorder/resource.cc
src/cpu/inorder/resources/inst_buffer.cc

index 47a9a4b9af297036fa8ffcea408e6066326f9f72..1fd28c939250875ede238a749f374a22b4f2fc8f 100644 (file)
@@ -81,7 +81,8 @@ Resource::regStats()
     instReqsProcessed
         .name(name() + ".instReqsProcessed")
         .desc("Number of Instructions Requests that completed in "
-              "this resource.");
+              "this resource.")
+        .prereq(instReqsProcessed);
 }
 
 int
index bb308b0ea2f6ba9357454d2513a925f7de1dfc08..17b308db09e5800622b1cee60fb612a0dbc58f68 100644 (file)
@@ -52,7 +52,8 @@ InstBuffer::regStats()
 {
     instsBypassed
         .name(name() + ".instsBypassed")
-        .desc("Number of Instructions Bypassed.");
+        .desc("Number of Instructions Bypassed.")
+        .prereq(instsBypassed);    
 
     Resource::regStats();
 }