summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2016-04-21 04:48:20 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2016-04-21 04:48:20 -0400
commit5a1dea51d2d4e2798eade7bbe3362098fc5f7f91 (patch)
tree4de55f675907488e5209bd15a08e2f8fb2a05f99
parenta7c94f6e69d329aeca53610a3ee2d573b02ff59d (diff)
downloadgem5-5a1dea51d2d4e2798eade7bbe3362098fc5f7f91.tar.xz
mem: Include WriteLineReq in cache demand stats
Somehow the WriteLineReq were never added to the list of commands considered demand.
-rw-r--r--src/mem/cache/base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc
index 22e05e165..4d7d462fb 100644
--- a/src/mem/cache/base.cc
+++ b/src/mem/cache/base.cc
@@ -197,7 +197,7 @@ BaseCache::regStats()
// to change the subset of commands that are considered "demand" vs
// "non-demand"
#define SUM_DEMAND(s) \
- (s[MemCmd::ReadReq] + s[MemCmd::WriteReq] + \
+ (s[MemCmd::ReadReq] + s[MemCmd::WriteReq] + s[MemCmd::WriteLineReq] + \
s[MemCmd::ReadExReq] + s[MemCmd::ReadCleanReq] + s[MemCmd::ReadSharedReq])
// should writebacks be included here? prior code was inconsistent...