sim: Call regStats of base-class as well
We want to extend the stats of objects hierarchically and thus it is necessary to register the statistics of the base-class(es), as well. For now, these are empty, but generic stats will be added there. Patch originally provided by Akash Bagdia at ARM Ltd.
This commit is contained in:
@@ -397,6 +397,8 @@ BaseCPU::probeInstCommit(const StaticInstPtr &inst)
|
||||
void
|
||||
BaseCPU::regStats()
|
||||
{
|
||||
MemObject::regStats();
|
||||
|
||||
using namespace Stats;
|
||||
|
||||
numCycles
|
||||
|
||||
@@ -526,6 +526,8 @@ TrafficGen::noProgress()
|
||||
void
|
||||
TrafficGen::regStats()
|
||||
{
|
||||
ClockedObject::regStats();
|
||||
|
||||
// Initialise all the stats
|
||||
using namespace Stats;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user