mem-cache: Fix RandomReplData
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 31 May 2018 12:05:42 +0000 (14:05 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 31 May 2018 12:53:56 +0000 (12:53 +0000)
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>

src/mem/cache/replacement_policies/random_rp.cc

index 24e64fc9031a77a81ef9c75d7e7925d4a18d1921..6a0f353b724fce40716726dae1e08361a7b84646 100644 (file)
@@ -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*