gem5 [DEVELOP-FOR-25.1]
Loading...
Searching...
No Matches
gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest Struct Reference

The prefetch queue entry objects. More...

Inheritance diagram for gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest:
gem5::BaseMMU::Translation

Public Member Functions

 PrefetchRequest (FetchDirectedPrefetcher &_owner, uint64_t _addr, ThreadID tid, o3::FTSeqNum ftn)
bool operator== (const int &a) const
void createPkt ()
 Creates the packet that is send to the memory.
void finish (const Fault &fault, const RequestPtr &req, ThreadContext *tc, BaseMMU::Mode mode) override
void startTranslation ()
 Issues the translation request.
void markDelayed () override
 Signal that the translation has been delayed due to a hw page table walk.
void markCanceled ()
bool isCanceled () const
Public Member Functions inherited from gem5::BaseMMU::Translation
virtual ~Translation ()
virtual bool squashed () const
 This function is used by the page table walker to determine if it should translate the a pending request or if the underlying request has been squashed.

Public Attributes

FetchDirectedPrefetcherowner
 Owner of the packet.
const uint64_t addr
 The virtual address.
const o3::FTSeqNum ftn
 The fetch target number that created this request.
RequestPtr req
 The request and packet that will be sent to the cache.
PacketPtr pkt
Tick readyTime
 The time when the prefetch is ready to be sent to the cache.
bool canceled
 Marks a Prefetch Request as canceled if notifyFTQRemove was called during translation.

Detailed Description

The prefetch queue entry objects.

Definition at line 119 of file fdp.hh.

Constructor & Destructor Documentation

◆ PrefetchRequest()

gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::PrefetchRequest ( FetchDirectedPrefetcher & _owner,
uint64_t _addr,
ThreadID tid,
o3::FTSeqNum ftn )

Member Function Documentation

◆ createPkt()

void gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::createPkt ( )

Creates the packet that is send to the memory.

Definition at line 242 of file fdp.cc.

References gem5::MemCmd::HardPFReq, pkt, gem5::context_switch_task_id::Prefetcher, and req.

◆ finish()

void gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::finish ( const Fault & fault,
const RequestPtr & req,
ThreadContext * tc,
BaseMMU::Mode mode )
overridevirtual

Implements gem5::BaseMMU::Translation.

Definition at line 258 of file fdp.cc.

References gem5::ArmISA::mode, gem5::NoFault, owner, and req.

◆ isCanceled()

bool gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::isCanceled ( ) const
inline

Definition at line 171 of file fdp.hh.

References canceled.

◆ markCanceled()

void gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::markCanceled ( )
inline

Definition at line 165 of file fdp.hh.

References canceled.

◆ markDelayed()

void gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::markDelayed ( )
inlineoverridevirtual

Signal that the translation has been delayed due to a hw page table walk.

Implements gem5::BaseMMU::Translation.

Definition at line 161 of file fdp.hh.

◆ operator==()

bool gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::operator== ( const int & a) const
inline

Definition at line 146 of file fdp.hh.

References gem5::ArmISA::a.

◆ startTranslation()

void gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::startTranslation ( )

Issues the translation request.

Definition at line 250 of file fdp.cc.

References gem5::BaseMMU::Execute, owner, and req.

Member Data Documentation

◆ addr

const uint64_t gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::addr

The virtual address.

Used to scan for redundant prefetches.

Definition at line 128 of file fdp.hh.

Referenced by PrefetchRequest().

◆ canceled

bool gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::canceled

Marks a Prefetch Request as canceled if notifyFTQRemove was called during translation.

In this case the prefetch will not proceed to the prefetch queue.

Definition at line 143 of file fdp.hh.

Referenced by isCanceled(), markCanceled(), and PrefetchRequest().

◆ ftn

const o3::FTSeqNum gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::ftn

The fetch target number that created this request.

Definition at line 131 of file fdp.hh.

Referenced by PrefetchRequest().

◆ owner

FetchDirectedPrefetcher& gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::owner

Owner of the packet.

Definition at line 125 of file fdp.hh.

Referenced by finish(), PrefetchRequest(), and startTranslation().

◆ pkt

PacketPtr gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::pkt

Definition at line 135 of file fdp.hh.

Referenced by createPkt(), and PrefetchRequest().

◆ readyTime

Tick gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::readyTime

The time when the prefetch is ready to be sent to the cache.

Definition at line 138 of file fdp.hh.

Referenced by PrefetchRequest().

◆ req

RequestPtr gem5::prefetch::FetchDirectedPrefetcher::PrefetchRequest::req

The request and packet that will be sent to the cache.

Definition at line 134 of file fdp.hh.

Referenced by createPkt(), finish(), PrefetchRequest(), and startTranslation().


The documentation for this struct was generated from the following files:

Generated on Mon Oct 27 2025 04:13:21 for gem5 by doxygen 1.14.0