From: Daniel R. Carvalho Date: Thu, 31 May 2018 12:05:42 +0000 (+0200) Subject: mem-cache: Fix RandomReplData X-Git-Tag: v19.0.0.0~2101 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07820f323704cf943ff2fae14ba5b7ac04e607b3;p=gem5.git 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 Maintainer: Nikos Nikoleris --- 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 RandomRP::instantiateEntry() { - return std::shared_ptr(new ReplacementData()); + return std::shared_ptr(new RandomReplData()); } RandomRP*