gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
slim_ampm.cc
Go to the documentation of this file.
1 
32 
33 #include "params/SlimAMPMPrefetcher.hh"
34 
35 SlimAMPMPrefetcher::SlimAMPMPrefetcher(const SlimAMPMPrefetcherParams* p)
36  : QueuedPrefetcher(p), ampm(*p->ampm), dcpt(*p->dcpt)
37 {
38 }
39 
40 void
42  std::vector<AddrPriority> &addresses)
43 {
44  dcpt.calculatePrefetch(pfi, addresses);
45  if (addresses.empty()) {
46  ampm.calculatePrefetch(pfi, addresses);
47  }
48 }
49 
51 SlimAMPMPrefetcherParams::create()
52 {
53  return new SlimAMPMPrefetcher(this);
54 }
void calculatePrefetch(const BasePrefetcher::PrefetchInfo &pfi, std::vector< QueuedPrefetcher::AddrPriority > &addresses)
Computes the prefetch candidates given a prefetch event.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Definition: slim_ampm.cc:41
STL vector class.
Definition: stl.hh:40
SlimAMPMPrefetcher(const SlimAMPMPrefetcherParams *p)
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Definition: slim_ampm.cc:35
void calculatePrefetch(const BasePrefetcher::PrefetchInfo &pfi, std::vector< QueuedPrefetcher::AddrPriority > &addresses)
AccessMapPatternMatching & ampm
AMPM prefetcher object.
Definition: slim_ampm.hh:53
Class containing the information needed by the prefetch to train and generate new prefetch requests...
Definition: base.hh:92
DeltaCorrelatingPredictionTables & dcpt
DCPT prefetcher object.
Definition: slim_ampm.hh:55
Bitfield< 0 > p

Generated on Fri Feb 28 2020 16:27:01 for gem5 by doxygen 1.8.13