inorder: remove debugging stat
m5 doesnt do stats specific to binary and this resource request stat is probably only useful for people who really know the ins/outs of the model anyway
This commit is contained in:
parent
f2eba81f50
commit
792c18a1fc
2 changed files with 1 additions and 28 deletions
|
@ -76,18 +76,6 @@ Resource::name()
|
||||||
return cpu->name() + "." + resName;
|
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
|
int
|
||||||
Resource::slotsAvail()
|
Resource::slotsAvail()
|
||||||
{
|
{
|
||||||
|
@ -480,10 +468,6 @@ ResourceRequest::done(bool completed)
|
||||||
// change slot # to -1, since we check slotNum to see if request is
|
// change slot # to -1, since we check slotNum to see if request is
|
||||||
// still valid
|
// still valid
|
||||||
slotNum = -1;
|
slotNum = -1;
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
res->instReqsProcessed++;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ResourceEvent::ResourceEvent()
|
ResourceEvent::ResourceEvent()
|
||||||
|
|
|
@ -83,7 +83,7 @@ class Resource {
|
||||||
virtual void initSlots();
|
virtual void initSlots();
|
||||||
|
|
||||||
/** Register Stats for this resource */
|
/** Register Stats for this resource */
|
||||||
virtual void regStats();
|
virtual void regStats() { }
|
||||||
|
|
||||||
/** Resources that care about thread activation override this. */
|
/** Resources that care about thread activation override this. */
|
||||||
virtual void activateThread(ThreadID tid) { }
|
virtual void activateThread(ThreadID tid) { }
|
||||||
|
@ -246,17 +246,6 @@ class Resource {
|
||||||
|
|
||||||
/** Default denied resource request pointer*/
|
/** Default denied resource request pointer*/
|
||||||
ResReqPtr deniedReq;
|
ResReqPtr deniedReq;
|
||||||
|
|
||||||
public:
|
|
||||||
/////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// DEFAULT RESOURCE STATISTICS
|
|
||||||
//
|
|
||||||
/////////////////////////////////////////////////////////////////
|
|
||||||
#ifdef DEBUG
|
|
||||||
/** Number of Instruction Requests the Resource Processes */
|
|
||||||
Stats::Scalar instReqsProcessed;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class ResourceEvent : public Event
|
class ResourceEvent : public Event
|
||||||
|
|
Loading…
Reference in a new issue