gem5  v20.1.0.0
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 struct SignaturePathPrefetcherV2Params;
49 
50 namespace Prefetcher {
51 
53 {
56  {
58  double confidence;
62  delta(0) {}
63  };
66 
68  PatternStrideEntry const &lookahead) const override;
69 
70  double calculatePrefetchConfidence(PatternEntry const &sig,
71  PatternStrideEntry const &lookahead) const override;
72 
73  void increasePatternEntryCounter(PatternEntry &pattern_entry,
74  PatternStrideEntry &pstride_entry) override;
75 
76  void handleSignatureTableMiss(stride_t current_block,
77  signature_t &new_signature, double &new_conf,
78  stride_t &new_stride) override;
79 
84  void auxiliaryPrefetcher(Addr ppn, stride_t current_block, bool is_secure,
85  std::vector<AddrPriority> &addresses) override
86  {}
87 
88  virtual void handlePageCrossingLookahead(signature_t signature,
89  stride_t last_offset, stride_t delta, double path_confidence)
90  override;
91 
92  public:
93  SignaturePathV2(const SignaturePathPrefetcherV2Params* p);
94  ~SignaturePathV2() = default;
95 };
96 
97 } // namespace Prefetcher
98 
99 #endif//__MEM_CACHE_PREFETCH_SIGNATURE_PATH_V2_HH__
Prefetcher::SignaturePathV2::GlobalHistoryEntry::signature
signature_t signature
Definition: signature_path_v2.hh:57
Prefetcher::SignaturePath::PatternStrideEntry
A stride entry with its counter.
Definition: signature_path.hh:85
TaggedEntry
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Definition: associative_set.hh:39
RiscvISA::ppn
Bitfield< 43, 0 > ppn
Definition: pagetable.hh:44
AssociativeSet
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
Definition: associative_set.hh:117
Prefetcher::SignaturePathV2::GlobalHistoryEntry::lastBlock
stride_t lastBlock
Definition: signature_path_v2.hh:59
std::vector
STL vector class.
Definition: stl.hh:37
Prefetcher::SignaturePathV2::GlobalHistoryEntry::delta
stride_t delta
Definition: signature_path_v2.hh:60
packet.hh
Prefetcher::SignaturePathV2::GlobalHistoryEntry
Global History Register entry datatype.
Definition: signature_path_v2.hh:55
Prefetcher::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:87
Prefetcher::SignaturePathV2::~SignaturePathV2
~SignaturePathV2()=default
Prefetcher::SignaturePath::stride_t
int16_t stride_t
Stride type.
Definition: signature_path.hh:58
Prefetcher::SignaturePath::PatternEntry
Pattern entry data type, a set of stride and counter entries.
Definition: signature_path.hh:95
Prefetcher::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:115
Prefetcher
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Definition: base.hh:78
Prefetcher::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:84
Addr
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:142
Prefetcher::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:50
Prefetcher::SignaturePathV2
Definition: signature_path_v2.hh:52
Prefetcher::SignaturePath
Definition: signature_path.hh:52
Prefetcher::SignaturePath::signature_t
uint16_t signature_t
Signature type.
Definition: signature_path.hh:56
Prefetcher::SignaturePathV2::GlobalHistoryEntry::confidence
double confidence
Definition: signature_path_v2.hh:58
Prefetcher::SignaturePathV2::globalHistoryRegister
AssociativeSet< GlobalHistoryEntry > globalHistoryRegister
Global History Register.
Definition: signature_path_v2.hh:65
associative_set.hh
MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:323
Prefetcher::SignaturePathV2::GlobalHistoryEntry::GlobalHistoryEntry
GlobalHistoryEntry()
Definition: signature_path_v2.hh:61
signature_path.hh
Prefetcher::SignaturePathV2::increasePatternEntryCounter
void increasePatternEntryCounter(PatternEntry &pattern_entry, PatternStrideEntry &pstride_entry) override
Increases the counter of a given PatternEntry/PatternStrideEntry.
Definition: signature_path_v2.cc:95
Prefetcher::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:78
Prefetcher::SignaturePathV2::SignaturePathV2
SignaturePathV2(const SignaturePathPrefetcherV2Params *p)
Definition: signature_path_v2.cc:39

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