gem5  v22.0.0.1
signature_path_v2.hh
Go to the documentation of this file.
1 
41 #ifndef __MEM_CACHE_PREFETCH_SIGNATURE_PATH_V2_HH__
42 #define __MEM_CACHE_PREFETCH_SIGNATURE_PATH_V2_HH__
43 
46 #include "mem/packet.hh"
47 
48 namespace gem5
49 {
50 
51 struct SignaturePathPrefetcherV2Params;
52 
54 namespace prefetch
55 {
56 
58 {
61  {
63  double confidence;
67  delta(0) {}
68  };
71 
73  PatternStrideEntry const &lookahead) const override;
74 
75  double calculatePrefetchConfidence(PatternEntry const &sig,
76  PatternStrideEntry const &lookahead) const override;
77 
78  void increasePatternEntryCounter(PatternEntry &pattern_entry,
79  PatternStrideEntry &pstride_entry) override;
80 
81  void handleSignatureTableMiss(stride_t current_block,
82  signature_t &new_signature, double &new_conf,
83  stride_t &new_stride) override;
84 
89  void auxiliaryPrefetcher(Addr ppn, stride_t current_block, bool is_secure,
90  std::vector<AddrPriority> &addresses) override
91  {}
92 
93  virtual void handlePageCrossingLookahead(signature_t signature,
94  stride_t last_offset, stride_t delta, double path_confidence)
95  override;
96 
97  public:
98  SignaturePathV2(const SignaturePathPrefetcherV2Params &p);
99  ~SignaturePathV2() = default;
100 };
101 
102 } // namespace prefetch
103 } // namespace gem5
104 
105 #endif//__MEM_CACHE_PREFETCH_SIGNATURE_PATH_V2_HH__
gem5::prefetch::SignaturePath
Definition: signature_path.hh:57
gem5::prefetch::SignaturePathV2
Definition: signature_path_v2.hh:57
gem5::prefetch::SignaturePathV2::GlobalHistoryEntry::GlobalHistoryEntry
GlobalHistoryEntry()
Definition: signature_path_v2.hh:66
gem5::prefetch::SignaturePathV2::GlobalHistoryEntry::delta
stride_t delta
Definition: signature_path_v2.hh:65
gem5::prefetch::SignaturePathV2::SignaturePathV2
SignaturePathV2(const SignaturePathPrefetcherV2Params &p)
Definition: signature_path_v2.cc:44
std::vector
STL vector class.
Definition: stl.hh:37
gem5::prefetch::SignaturePathV2::GlobalHistoryEntry
Global History Register entry datatype.
Definition: signature_path_v2.hh:60
gem5::prefetch::SignaturePathV2::handleSignatureTableMiss
void handleSignatureTableMiss(stride_t current_block, signature_t &new_signature, double &new_conf, stride_t &new_stride) override
Whenever a new SignatureEntry is allocated, it computes the new signature to be used with the new ent...
Definition: signature_path_v2.cc:55
packet.hh
gem5::prefetch::SignaturePathV2::increasePatternEntryCounter
void increasePatternEntryCounter(PatternEntry &pattern_entry, PatternStrideEntry &pstride_entry) override
Increases the counter of a given PatternEntry/PatternStrideEntry.
Definition: signature_path_v2.cc:100
gem5::prefetch::SignaturePath::signature_t
uint16_t signature_t
Signature type.
Definition: signature_path.hh:61
gem5::prefetch::SignaturePathV2::GlobalHistoryEntry::lastBlock
stride_t lastBlock
Definition: signature_path_v2.hh:64
gem5::TaggedEntry
A tagged entry is an entry containing a tag.
Definition: tagged_entry.hh:46
gem5::VegaISA::p
Bitfield< 54 > p
Definition: pagetable.hh:70
gem5::prefetch::SignaturePathV2::GlobalHistoryEntry::confidence
double confidence
Definition: signature_path_v2.hh:63
gem5::prefetch::SignaturePathV2::calculatePrefetchConfidence
double calculatePrefetchConfidence(PatternEntry const &sig, PatternStrideEntry const &lookahead) const override
Computes the prefetch confidence of the provided pattern entry.
Definition: signature_path_v2.cc:92
gem5::AssociativeSet
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
Definition: associative_set.hh:45
gem5::prefetch::SignaturePathV2::auxiliaryPrefetcher
void auxiliaryPrefetcher(Addr ppn, stride_t current_block, bool is_secure, std::vector< AddrPriority > &addresses) override
In this version of the Signature Path Prefetcher, there is no auxiliary prefetcher,...
Definition: signature_path_v2.hh:89
gem5::prefetch::SignaturePathV2::globalHistoryRegister
AssociativeSet< GlobalHistoryEntry > globalHistoryRegister
Global History Register.
Definition: signature_path_v2.hh:70
gem5::prefetch::SignaturePath::stride_t
int16_t stride_t
Stride type.
Definition: signature_path.hh:63
gem5::prefetch::SignaturePath::PatternStrideEntry
A stride entry with its counter.
Definition: signature_path.hh:90
gem5::prefetch::SignaturePathV2::calculateLookaheadConfidence
double calculateLookaheadConfidence(PatternEntry const &sig, PatternStrideEntry const &lookahead) const override
Computes the lookahead path confidence of the provided pattern entry.
Definition: signature_path_v2.cc:83
gem5::Addr
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:147
gem5::GEM5_DEPRECATED_NAMESPACE
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)
gem5::VegaISA::ppn
Bitfield< 47, 12 > ppn
Definition: pagetable.hh:57
gem5::prefetch::SignaturePathV2::~SignaturePathV2
~SignaturePathV2()=default
gem5::prefetch::SignaturePath::PatternEntry
Pattern entry data type, a set of stride and counter entries.
Definition: signature_path.hh:100
gem5::prefetch::SignaturePathV2::GlobalHistoryEntry::signature
signature_t signature
Definition: signature_path_v2.hh:62
associative_set.hh
gem5::context_switch_task_id::Prefetcher
@ Prefetcher
Definition: request.hh:83
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: gpu_translation_state.hh:37
gem5::prefetch::SignaturePathV2::handlePageCrossingLookahead
virtual void handlePageCrossingLookahead(signature_t signature, stride_t last_offset, stride_t delta, double path_confidence) override
Handles the situation when the lookahead process has crossed the boundaries of the current page.
Definition: signature_path_v2.cc:120
signature_path.hh

Generated on Sat Jun 18 2022 08:12:27 for gem5 by doxygen 1.8.17