From 349d86c0e4afb02962c9899bd5a3887ff2c55626 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Sun, 31 Jan 2010 18:29:06 -0500 Subject: [PATCH] inorder-stats: add prereq to basic stat only show requests processed when the resource is actually in use --- src/cpu/inorder/resource.cc | 3 ++- src/cpu/inorder/resources/inst_buffer.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpu/inorder/resource.cc b/src/cpu/inorder/resource.cc index 47a9a4b9a..1fd28c939 100644 --- a/src/cpu/inorder/resource.cc +++ b/src/cpu/inorder/resource.cc @@ -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 diff --git a/src/cpu/inorder/resources/inst_buffer.cc b/src/cpu/inorder/resources/inst_buffer.cc index bb308b0ea..17b308db0 100644 --- a/src/cpu/inorder/resources/inst_buffer.cc +++ b/src/cpu/inorder/resources/inst_buffer.cc @@ -52,7 +52,8 @@ InstBuffer::regStats() { instsBypassed .name(name() + ".instsBypassed") - .desc("Number of Instructions Bypassed."); + .desc("Number of Instructions Bypassed.") + .prereq(instsBypassed); Resource::regStats(); } -- 2.30.2