From: Andreas Hansson Date: Thu, 21 Apr 2016 08:48:20 +0000 (-0400) Subject: mem: Include WriteLineReq in cache demand stats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a1dea51d2d4e2798eade7bbe3362098fc5f7f91;p=gem5.git mem: Include WriteLineReq in cache demand stats Somehow the WriteLineReq were never added to the list of commands considered demand. --- 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...