gem5  v22.1.0.0
slim_ampm.cc
Go to the documentation of this file.
1 
30 
31 #include "params/SlimAMPMPrefetcher.hh"
32 
33 namespace gem5
34 {
35 
37 namespace prefetch
38 {
39 
40 SlimAMPM::SlimAMPM(const SlimAMPMPrefetcherParams &p)
41  : Queued(p), ampm(*p.ampm), dcpt(*p.dcpt)
42 {
43 }
44 
45 void
47  std::vector<AddrPriority> &addresses)
48 {
49  dcpt.calculatePrefetch(pfi, addresses);
50  if (addresses.empty()) {
51  ampm.calculatePrefetch(pfi, addresses);
52  }
53 }
54 
55 } // namespace prefetch
56 } // namespace gem5
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
Class containing the information needed by the prefetch to train and generate new prefetch requests.
Definition: base.hh:98
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
Computes the prefetch candidates given a prefetch event.
SlimAMPM(const SlimAMPMPrefetcherParams &p)
Definition: slim_ampm.cc:40
DeltaCorrelatingPredictionTables & dcpt
DCPT prefetcher object.
Definition: slim_ampm.hh:60
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Definition: slim_ampm.cc:46
AccessMapPatternMatching & ampm
AMPM prefetcher object.
Definition: slim_ampm.hh:58
STL vector class.
Definition: stl.hh:37
Bitfield< 54 > p
Definition: pagetable.hh:70
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)

Generated on Wed Dec 21 2022 10:22:36 for gem5 by doxygen 1.9.1