Go to the documentation of this file.
36 #ifndef __MEM_CACHE_PREFETCH_BOP_HH__
37 #define __MEM_CACHE_PREFETCH_BOP_HH__
44 struct BOPPrefetcherParams;
150 BOP(
const BOPPrefetcherParams *
p);
void delayQueueEventWrapper()
Event to handle the delay queue processing.
Addr tag(Addr addr) const
Generate the tag for the specified address based on the tag bits and the block size.
std::vector< OffsetListEntry > offsetsList
Addr bestOffset
Current best offset to issue prefetches.
const unsigned int roundMax
EventFunctionWrapper delayQueueEvent
const unsigned int delayQueueSize
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
unsigned int hash(Addr addr, unsigned int way) const
Generate a hash for the specified address to index the RR table.
uint64_t Tick
Tick count type.
const unsigned int delayTicks
bool issuePrefetchRequests
Hardware prefetcher enabled.
void insertIntoRR(Addr addr, unsigned int way)
Insert the specified address into the RR table.
const unsigned int tagMask
bool testRR(Addr) const
Test if @X-O is hitting in the RR table to update the offset score.
std::pair< int16_t, uint8_t > OffsetListEntry
Structure to save the offset and the score.
std::vector< Addr > rrRight
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
unsigned int round
Current round.
void bestOffsetLearning(Addr)
Learning phase of the BOP.
const unsigned int scoreMax
Learning phase parameters.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
In a first implementation of the BO prefetcher, both banks of the RR were written simultaneously when...
const unsigned int badScore
void notifyFill(const PacketPtr &pkt) override
Update the RR right table after a prefetch fill.
std::vector< OffsetListEntry >::iterator offsetsListIterator
Current test offset index.
unsigned int bestScore
Max score found so far.
const unsigned int rrEntries
Recent requests table parameteres.
Addr phaseBestOffset
Current best offset found in the learning phase.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Class containing the information needed by the prefetch to train and generate new prefetch requests.
std::deque< DelayQueueEntry > delayQueue
const bool delayQueueEnabled
Delay queue parameters.
DelayQueueEntry(Addr x, Tick t)
void resetScores()
Reset all the scores from the offset list.
BOP(const BOPPrefetcherParams *p)
std::vector< Addr > rrLeft
void insertIntoDelayQueue(Addr addr)
Insert the specified address into the delay queue.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17