summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch/stride.hh
diff options
context:
space:
mode:
authorMitch Hayenga <mitch.hayenga+gem5@gmail.com>2014-01-29 23:21:26 -0600
committerMitch Hayenga <mitch.hayenga+gem5@gmail.com>2014-01-29 23:21:26 -0600
commit96317d466ea26955ce26f658f162755b39d3352e (patch)
tree2ac30c0120148197f833244b090de6f044f7d43c /src/mem/cache/prefetch/stride.hh
parent771c864bf407b57bf91896f38e989e8a36cd9cd1 (diff)
downloadgem5-96317d466ea26955ce26f658f162755b39d3352e.tar.xz
mem: Add additional tolerance to stride prefetcher
Forces the prefetcher to mispredict twice in a row before resetting the confidence of prefetching. This helps cases where a load PC strides by a constant factor, however it may operate on different arrays at times. Avoids the cost of retraining. Primarily helps with small iteration loops. Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/mem/cache/prefetch/stride.hh')
-rw-r--r--src/mem/cache/prefetch/stride.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/cache/prefetch/stride.hh b/src/mem/cache/prefetch/stride.hh
index 0e31984f9..a491eb687 100644
--- a/src/mem/cache/prefetch/stride.hh
+++ b/src/mem/cache/prefetch/stride.hh
@@ -72,6 +72,7 @@ class StridePrefetcher : public BasePrefetcher
bool isSecure;
int stride;
int confidence;
+ bool tolerance;
};
std::list<StrideEntry*> table[Max_Contexts];