gem5  v20.1.0.0
slim_ampm.cc
Go to the documentation of this file.
1 
30 
31 #include "params/SlimAMPMPrefetcher.hh"
32 
33 namespace Prefetcher {
34 
35 SlimAMPM::SlimAMPM(const SlimAMPMPrefetcherParams* p)
36  : Queued(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 
50 } // namespace Prefetcher
51 
53 SlimAMPMPrefetcherParams::create()
54 {
55  return new Prefetcher::SlimAMPM(this);
56 }
Prefetcher::AccessMapPatternMatching::calculatePrefetch
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
Definition: access_map_pattern_matching.cc:154
Prefetcher::SlimAMPM::dcpt
DeltaCorrelatingPredictionTables & dcpt
DCPT prefetcher object.
Definition: slim_ampm.hh:55
std::vector
STL vector class.
Definition: stl.hh:37
slim_ampm.hh
Prefetcher::SlimAMPM::ampm
AccessMapPatternMatching & ampm
AMPM prefetcher object.
Definition: slim_ampm.hh:53
Prefetcher
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Definition: base.hh:78
Prefetcher::SlimAMPM::SlimAMPM
SlimAMPM(const SlimAMPMPrefetcherParams *p)
Definition: slim_ampm.cc:35
Prefetcher::Queued
Definition: queued.hh:54
Prefetcher::DeltaCorrelatingPredictionTables::calculatePrefetch
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
Computes the prefetch candidates given a prefetch event.
Definition: delta_correlating_prediction_tables.cc:122
Prefetcher::Base::PrefetchInfo
Class containing the information needed by the prefetch to train and generate new prefetch requests.
Definition: base.hh:90
Prefetcher::SlimAMPM::calculatePrefetch
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Definition: slim_ampm.cc:41
Prefetcher::SlimAMPM
Definition: slim_ampm.hh:50
MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:323

Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17