diff options
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/inorder/resource.cc | 16 | ||||
-rw-r--r-- | src/cpu/inorder/resource.hh | 13 |
2 files changed, 1 insertions, 28 deletions
diff --git a/src/cpu/inorder/resource.cc b/src/cpu/inorder/resource.cc index e32554963..01301de5a 100644 --- a/src/cpu/inorder/resource.cc +++ b/src/cpu/inorder/resource.cc @@ -76,18 +76,6 @@ Resource::name() return cpu->name() + "." + resName; } -void -Resource::regStats() -{ -#ifdef DEBUG - instReqsProcessed - .name(name() + ".instReqsProcessed") - .desc("Number of Instructions Requests that completed in " - "this resource.") - .prereq(instReqsProcessed); -#endif -} - int Resource::slotsAvail() { @@ -480,10 +468,6 @@ ResourceRequest::done(bool completed) // change slot # to -1, since we check slotNum to see if request is // still valid slotNum = -1; - -#ifdef DEBUG - res->instReqsProcessed++; -#endif } ResourceEvent::ResourceEvent() diff --git a/src/cpu/inorder/resource.hh b/src/cpu/inorder/resource.hh index 3e42593c2..f0c3354b2 100644 --- a/src/cpu/inorder/resource.hh +++ b/src/cpu/inorder/resource.hh @@ -83,7 +83,7 @@ class Resource { virtual void initSlots(); /** Register Stats for this resource */ - virtual void regStats(); + virtual void regStats() { } /** Resources that care about thread activation override this. */ virtual void activateThread(ThreadID tid) { } @@ -246,17 +246,6 @@ class Resource { /** Default denied resource request pointer*/ ResReqPtr deniedReq; - - public: - ///////////////////////////////////////////////////////////////// - // - // DEFAULT RESOURCE STATISTICS - // - ///////////////////////////////////////////////////////////////// -#ifdef DEBUG - /** Number of Instruction Requests the Resource Processes */ - Stats::Scalar instReqsProcessed; -#endif }; class ResourceEvent : public Event |