misc: Delete the now unnecessary create methods.
Most create() methods are no longer necessary. This change deletes them, and occasionally moves some code from them into the constructors they call. Change-Id: Icbab29ba280144b892f9b12fac9e29a0839477e5 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36536 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -264,15 +264,3 @@ AMPM::calculatePrefetch(const PrefetchInfo &pfi,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::AccessMapPatternMatching*
|
||||
AccessMapPatternMatchingParams::create() const
|
||||
{
|
||||
return new Prefetcher::AccessMapPatternMatching(*this);
|
||||
}
|
||||
|
||||
Prefetcher::AMPM*
|
||||
AMPMPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::AMPM(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/bop.cc
vendored
6
src/mem/cache/prefetch/bop.cc
vendored
@@ -261,9 +261,3 @@ BOP::notifyFill(const PacketPtr& pkt)
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::BOP*
|
||||
BOPPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::BOP(*this);
|
||||
}
|
||||
|
||||
@@ -158,15 +158,3 @@ DCPT::calculatePrefetch(const PrefetchInfo &pfi,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::DeltaCorrelatingPredictionTables*
|
||||
DeltaCorrelatingPredictionTablesParams::create() const
|
||||
{
|
||||
return new Prefetcher::DeltaCorrelatingPredictionTables(*this);
|
||||
}
|
||||
|
||||
Prefetcher::DCPT*
|
||||
DCPTPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::DCPT(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/indirect_memory.cc
vendored
6
src/mem/cache/prefetch/indirect_memory.cc
vendored
@@ -255,9 +255,3 @@ IndirectMemory::checkAccessMatchOnActiveEntries(Addr addr)
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::IndirectMemory*
|
||||
IndirectMemoryPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::IndirectMemory(*this);
|
||||
}
|
||||
|
||||
@@ -209,9 +209,3 @@ IrregularStreamBuffer::addStructuralToPhysicalEntry(
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::IrregularStreamBuffer*
|
||||
IrregularStreamBufferPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::IrregularStreamBuffer(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/multi.cc
vendored
6
src/mem/cache/prefetch/multi.cc
vendored
@@ -80,9 +80,3 @@ Multi::getPacket()
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::Multi*
|
||||
MultiPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::Multi(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/pif.cc
vendored
6
src/mem/cache/prefetch/pif.cc
vendored
@@ -244,9 +244,3 @@ PIF::addEventProbeRetiredInsts(SimObject *obj, const char *name)
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::PIF*
|
||||
PIFPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::PIF(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/sbooe.cc
vendored
6
src/mem/cache/prefetch/sbooe.cc
vendored
@@ -133,9 +133,3 @@ SBOOE::calculatePrefetch(const PrefetchInfo &pfi,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::SBOOE*
|
||||
SBOOEPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::SBOOE(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/signature_path.cc
vendored
6
src/mem/cache/prefetch/signature_path.cc
vendored
@@ -317,9 +317,3 @@ SignaturePath::auxiliaryPrefetcher(Addr ppn, stride_t current_block,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::SignaturePath*
|
||||
SignaturePathPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::SignaturePath(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/signature_path_v2.cc
vendored
6
src/mem/cache/prefetch/signature_path_v2.cc
vendored
@@ -129,9 +129,3 @@ SignaturePathV2::handlePageCrossingLookahead(signature_t signature,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::SignaturePathV2*
|
||||
SignaturePathPrefetcherV2Params::create() const
|
||||
{
|
||||
return new Prefetcher::SignaturePathV2(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/slim_ampm.cc
vendored
6
src/mem/cache/prefetch/slim_ampm.cc
vendored
@@ -48,9 +48,3 @@ SlimAMPM::calculatePrefetch(const PrefetchInfo &pfi,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::SlimAMPM*
|
||||
SlimAMPMPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::SlimAMPM(*this);
|
||||
}
|
||||
|
||||
@@ -247,9 +247,3 @@ STeMS::reconstructSequence(
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::STeMS*
|
||||
STeMSPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::STeMS(*this);
|
||||
}
|
||||
|
||||
12
src/mem/cache/prefetch/stride.cc
vendored
12
src/mem/cache/prefetch/stride.cc
vendored
@@ -202,15 +202,3 @@ StridePrefetcherHashedSetAssociative::extractTag(const Addr addr) const
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::StridePrefetcherHashedSetAssociative*
|
||||
StridePrefetcherHashedSetAssociativeParams::create() const
|
||||
{
|
||||
return new Prefetcher::StridePrefetcherHashedSetAssociative(*this);
|
||||
}
|
||||
|
||||
Prefetcher::Stride*
|
||||
StridePrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::Stride(*this);
|
||||
}
|
||||
|
||||
6
src/mem/cache/prefetch/tagged.cc
vendored
6
src/mem/cache/prefetch/tagged.cc
vendored
@@ -56,9 +56,3 @@ Tagged::calculatePrefetch(const PrefetchInfo &pfi,
|
||||
}
|
||||
|
||||
} // namespace Prefetcher
|
||||
|
||||
Prefetcher::Tagged*
|
||||
TaggedPrefetcherParams::create() const
|
||||
{
|
||||
return new Prefetcher::Tagged(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user