From 5a1dea51d2d4e2798eade7bbe3362098fc5f7f91 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 21 Apr 2016 04:48:20 -0400 Subject: [PATCH] mem: Include WriteLineReq in cache demand stats Somehow the WriteLineReq were never added to the list of commands considered demand. --- src/mem/cache/base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...