summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2018-05-31 14:05:42 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2018-05-31 12:53:56 +0000
commit07820f323704cf943ff2fae14ba5b7ac04e607b3 (patch)
tree04a8ec7d26d3e7e35e5953aee3565bafef41a1c3
parentb9f8a548a1cbf07a72ddc42c98961755f203f583 (diff)
downloadgem5-07820f323704cf943ff2fae14ba5b7ac04e607b3.tar.xz
mem-cache: Fix RandomReplData
Random replacement policy's data was being instantiated with the incorrect class. Change-Id: Ib573a6b5a63868d6069997c6279bec3b10c6b9b9 Reviewed-on: https://gem5-review.googlesource.com/10623 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
-rw-r--r--src/mem/cache/replacement_policies/random_rp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/replacement_policies/random_rp.cc b/src/mem/cache/replacement_policies/random_rp.cc
index 24e64fc90..6a0f353b7 100644
--- a/src/mem/cache/replacement_policies/random_rp.cc
+++ b/src/mem/cache/replacement_policies/random_rp.cc
@@ -86,7 +86,7 @@ RandomRP::getVictim(const ReplacementCandidates& candidates) const
std::shared_ptr<ReplacementData>
RandomRP::instantiateEntry()
{
- return std::shared_ptr<ReplacementData>(new ReplacementData());
+ return std::shared_ptr<ReplacementData>(new RandomReplData());
}
RandomRP*