diff options
author | Dam Sunwoo <dam.sunwoo@arm.com> | 2012-02-12 16:07:39 -0600 |
---|---|---|
committer | Dam Sunwoo <dam.sunwoo@arm.com> | 2012-02-12 16:07:39 -0600 |
commit | 230540e655efd09ad057e7fde2ac257f355c06d1 (patch) | |
tree | 4555eeff33db9ac5c2f3a1b210627cef4b81d4ad /src/mem/cache/blk.hh | |
parent | 8aaa39e93dfe000ad423b585e78a4c2ee7418363 (diff) | |
download | gem5-230540e655efd09ad057e7fde2ac257f355c06d1.tar.xz |
mem: fix cache stats to use request ids correctly
This patch fixes the cache stats to use the new request ids.
Cache stats also display the requestor names in the vector subnames.
Most cache stats now include "nozero" and "nonan" flags to reduce the
amount of excessive cache stat dump. Also, simplified
incMissCount()/incHitCount() functions.
Diffstat (limited to 'src/mem/cache/blk.hh')
-rw-r--r-- | src/mem/cache/blk.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mem/cache/blk.hh b/src/mem/cache/blk.hh index e70760edd..91970e09b 100644 --- a/src/mem/cache/blk.hh +++ b/src/mem/cache/blk.hh @@ -103,8 +103,8 @@ class CacheBlk /** Number of references to this block since it was brought in. */ int refCount; - /** holds the context source ID of the requestor for this block. */ - int contextSrc; + /** holds the source requestor ID for this block. */ + int srcMasterId; protected: /** @@ -135,7 +135,8 @@ class CacheBlk CacheBlk() : asid(-1), tag(0), data(0) ,size(0), status(0), whenReady(0), - set(-1), isTouched(false), refCount(0), contextSrc(-1) + set(-1), isTouched(false), refCount(0), + srcMasterId(Request::invldMasterId) {} /** |