diff options
author | Akash Bagdia <akash.bagdia@ARM.com> | 2014-11-18 14:00:48 +0000 |
---|---|---|
committer | Akash Bagdia <akash.bagdia@ARM.com> | 2014-11-18 14:00:48 +0000 |
commit | 3ee4957b4930a252c0185a6bc71bdf1c6ebc5ed9 (patch) | |
tree | 6a7e1807397f002f51fddb34568b89250fca45c8 /src/mem/snoop_filter.cc | |
parent | 65ecd954861aa76532ca79453afcf66a837e1fa6 (diff) | |
download | gem5-3ee4957b4930a252c0185a6bc71bdf1c6ebc5ed9.tar.xz |
power: Add power states to ClockedObject
Add 4 power states to the ClockedObject, provides necessary access functions
to check and update the power state. Default power state is UNDEFINED, it is
responsibility of the respective simulation model to provide the startup state
and any other logic for state change.
Add number of transition stat.
Add distribution of time spent in clock gated state.
Add power state residency stat.
Add dump call back function to allow stats update of distribution and residency
stats.
Diffstat (limited to 'src/mem/snoop_filter.cc')
-rwxr-xr-x | src/mem/snoop_filter.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/snoop_filter.cc b/src/mem/snoop_filter.cc index 9d02ed249..9e8f8afb8 100755 --- a/src/mem/snoop_filter.cc +++ b/src/mem/snoop_filter.cc @@ -351,6 +351,8 @@ SnoopFilter::updateResponse(const Packet* cpkt, const SlavePort& slave_port) void SnoopFilter::regStats() { + SimObject::regStats(); + totRequests .name(name() + ".tot_requests") .desc("Total number of requests made to the snoop filter."); |