From 07820f323704cf943ff2fae14ba5b7ac04e607b3 Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Thu, 31 May 2018 14:05:42 +0200 Subject: 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 --- src/mem/cache/replacement_policies/random_rp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/cache') 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* -- cgit v1.2.3