gem5 v24.0.0.0
Loading...
Searching...
No Matches
slim_ampm.cc
Go to the documentation of this file.
1
30
31#include "params/SlimAMPMPrefetcher.hh"
32
33namespace gem5
34{
35
36namespace prefetch
37{
38
39SlimAMPM::SlimAMPM(const SlimAMPMPrefetcherParams &p)
40 : Queued(p), ampm(*p.ampm), dcpt(*p.dcpt)
41{
42}
43
44void
47 const CacheAccessor &cache)
48{
49 dcpt.calculatePrefetch(pfi, addresses, cache);
50 if (addresses.empty()) {
51 ampm.calculatePrefetch(pfi, addresses, cache);
52 }
53}
54
55} // namespace prefetch
56} // namespace gem5
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses, const CacheAccessor &cache)
Class containing the information needed by the prefetch to train and generate new prefetch requests.
Definition base.hh:111
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses, const CacheAccessor &cache)
Computes the prefetch candidates given a prefetch event.
SlimAMPM(const SlimAMPMPrefetcherParams &p)
Definition slim_ampm.cc:39
DeltaCorrelatingPredictionTables & dcpt
DCPT prefetcher object.
Definition slim_ampm.hh:59
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses, const CacheAccessor &cache) override
Definition slim_ampm.cc:45
AccessMapPatternMatching & ampm
AMPM prefetcher object.
Definition slim_ampm.hh:57
STL vector class.
Definition stl.hh:37
Bitfield< 0 > p
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36
Provides generic cache lookup functions.

Generated on Tue Jun 18 2024 16:24:05 for gem5 by doxygen 1.11.0