gem5  v22.1.0.0
delta_correlating_prediction_tables.hh
Go to the documentation of this file.
1 
29 #ifndef __MEM_CACHE_PREFETCH_DELTA_CORRELATING_PREDICTION_TABLES_HH_
30 #define __MEM_CACHE_PREFETCH_DELTA_CORRELATING_PREDICTION_TABLES_HH_
31 
32 #include "base/circular_queue.hh"
35 
36 namespace gem5
37 {
38 
39 struct DeltaCorrelatingPredictionTablesParams;
40 struct DCPTPrefetcherParams;
41 
43 namespace prefetch
44 {
45 
62 {
64  const unsigned int deltaBits;
66  const unsigned int deltaMaskBits;
67 
69  struct DCPTEntry : public TaggedEntry
70  {
75 
80  DCPTEntry(unsigned int num_deltas)
81  : TaggedEntry(), lastAddress(0), deltas(num_deltas)
82  {
83  }
84 
85  void invalidate() override;
86 
93  void addAddress(Addr address, unsigned int delta_num_bits);
94 
103  unsigned int mask_bits) const;
104 
105  };
108 
109  public:
111  const DeltaCorrelatingPredictionTablesParams &p);
113 
119  void calculatePrefetch(const Base::PrefetchInfo &pfi,
121 
122 };
123 
125 class DCPT : public Queued
126 {
129  public:
130  DCPT(const DCPTPrefetcherParams &p);
131  ~DCPT() = default;
132 
133  void calculatePrefetch(const PrefetchInfo &pfi,
134  std::vector<AddrPriority> &addresses) override;
135 };
136 
137 } // namespace prefetch
138 } // namespace gem5
139 
140 #endif//__MEM_CACHE_PREFETCH_DELTA_CORRELATING_PREDICTION_TABLES_HH_
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
Abstract superclass for simulation objects.
Definition: sim_object.hh:148
A tagged entry is an entry containing a tag.
Definition: tagged_entry.hh:47
Class containing the information needed by the prefetch to train and generate new prefetch requests.
Definition: base.hh:98
The prefetcher object using the DCPT.
DCPT(const DCPTPrefetcherParams &p)
DeltaCorrelatingPredictionTables & dcpt
DCPT object.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Delta Correlating Prediction Tables Prefetcher References: Multi-level hardware prefetching using low...
DeltaCorrelatingPredictionTables(const DeltaCorrelatingPredictionTablesParams &p)
const unsigned int deltaBits
Number of bits of each delta.
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
Computes the prefetch candidates given a prefetch event.
const unsigned int deltaMaskBits
Number of lower bits to ignore from the deltas.
STL vector class.
Definition: stl.hh:37
unsigned int mask_bits
Definition: helpers.cc:291
Bitfield< 54 > p
Definition: pagetable.hh:70
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:147
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)
void addAddress(Addr address, unsigned int delta_num_bits)
Adds an address to the entry, if the entry already existed, a delta will be generated.
void getCandidates(std::vector< Queued::AddrPriority > &pfs, unsigned int mask_bits) const
Attempt to generate prefetch candidates using the two most recent deltas.

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