mem: Include WriteLineReq in cache demand stats
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 21 Apr 2016 08:48:20 +0000 (04:48 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 21 Apr 2016 08:48:20 +0000 (04:48 -0400)
Somehow the WriteLineReq were never added to the list of commands
considered demand.

src/mem/cache/base.cc

index 22e05e165e375bbc0f413bef18a5b5ebdc0e72c5..4d7d462fbb5c282f24a526a81e0443f70292eedd 100644 (file)
@@ -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...