projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7c94f6
)
mem: Include WriteLineReq in cache demand stats
author
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 21 Apr 2016 08:48:20 +0000
(
04:48
-0400)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/src/mem/cache/base.cc
b/src/mem/cache/base.cc
index 22e05e165e375bbc0f413bef18a5b5ebdc0e72c5..4d7d462fbb5c282f24a526a81e0443f70292eedd 100644
(file)
--- 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...