gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::minor::Fetch1::FetchRequest Class Reference

Memory access queuing. More...

#include <fetch1.hh>

Inheritance diagram for gem5::minor::Fetch1::FetchRequest:
gem5::BaseMMU::Translation gem5::Packet::SenderState

Public Types

enum  FetchRequestState {
  NotIssued , InTranslation , Translated , RequestIssuing ,
  Complete
}
 Progress of this request through address translation and memory. More...
 

Public Member Functions

void makePacket ()
 Make a packet to use with the memory transaction.
 
void reportData (std::ostream &os) const
 Report interface.
 
bool isDiscardable () const
 Is this line out of date with the current stream/prediction sequence and can it be discarded without orphaning in flight TLB lookups/memory accesses?
 
bool isComplete () const
 Is this a complete read line or fault.
 
 FetchRequest (Fetch1 &fetch_, InstId id_, Addr pc_)
 
 ~FetchRequest ()
 
- 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 Member Functions inherited from gem5::Packet::SenderState
 SenderState ()
 
virtual ~SenderState ()
 

Public Attributes

FetchRequestState state
 
InstId id
 Identity of the line that this request will generate.
 
PacketPtr packet
 FetchRequests carry packets while they're in the requests and transfers responses queues.
 
RequestPtr request
 The underlying request that this fetch represents.
 
Addr pc
 PC to fixup with line address.
 
Fault fault
 Fill in a fault if one happens during fetch, check this by picking apart the response packet.
 
- Public Attributes inherited from gem5::Packet::SenderState
SenderStatepredecessor
 

Protected Member Functions

void markDelayed ()
 BaseMMU::Translation interface.
 
void finish (const Fault &fault_, const RequestPtr &request_, ThreadContext *tc, BaseMMU::Mode mode)
 Interface for ITLB responses.
 

Protected Attributes

Fetch1fetch
 Owning fetch unit.
 

Detailed Description

Memory access queuing.

A request can be submitted by pushing it onto the requests queue after issuing an ITLB lookup (state becomes InTranslation) with a FetchSenderState senderState containing the current lineSeqNum and stream/predictionSeqNum.

Translated packets (state becomes Translation) are then passed to the memory system and the transfers queue (state becomes RequestIssuing). Retries are handled by leaving the packet on the requests queue and changing the state to IcacheNeedsRetry).

Responses from the memory system alter the request object (state become Complete). Responses can be picked up from the head of the transfers queue to pass on to Fetch2. Structure to hold SenderState info through translation and memory accesses.

Definition at line 106 of file fetch1.hh.

Member Enumeration Documentation

◆ FetchRequestState

Progress of this request through address translation and memory.

Enumerator
NotIssued 
InTranslation 
Translated 
RequestIssuing 
Complete 

Definition at line 117 of file fetch1.hh.

Constructor & Destructor Documentation

◆ FetchRequest()

gem5::minor::Fetch1::FetchRequest::FetchRequest ( Fetch1 & fetch_,
InstId id_,
Addr pc_ )
inline

Definition at line 175 of file fetch1.hh.

References request.

◆ ~FetchRequest()

gem5::minor::Fetch1::FetchRequest::~FetchRequest ( )

Definition at line 276 of file fetch1.cc.

Member Function Documentation

◆ finish()

void gem5::minor::Fetch1::FetchRequest::finish ( const Fault & fault_,
const RequestPtr & request_,
ThreadContext * tc,
BaseMMU::Mode mode )
protectedvirtual

Interface for ITLB responses.

Populates self and then passes the request on to the ports' handleTLBResponse member function

Implements gem5::BaseMMU::Translation.

Definition at line 240 of file fetch1.cc.

References gem5::minor::Pipeline::Fetch1StageId, and state.

◆ isComplete()

bool gem5::minor::Fetch1::FetchRequest::isComplete ( ) const
inline

Is this a complete read line or fault.

Definition at line 159 of file fetch1.hh.

References Complete, and state.

Referenced by gem5::minor::Fetch1::evaluate().

◆ isDiscardable()

bool gem5::minor::Fetch1::FetchRequest::isDiscardable ( ) const

Is this line out of date with the current stream/prediction sequence and can it be discarded without orphaning in flight TLB lookups/memory accesses?

Definition at line 754 of file fetch1.cc.

References gem5::minor::Fetch1::Fetch1ThreadInfo::predictionSeqNum, state, and gem5::minor::Fetch1::Fetch1ThreadInfo::streamSeqNum.

Referenced by gem5::minor::Fetch1::evaluate(), and gem5::minor::Fetch1::tryToSendToTransfers().

◆ makePacket()

void gem5::minor::Fetch1::FetchRequest::makePacket ( )

Make a packet to use with the memory transaction.

Definition at line 228 of file fetch1.cc.

References gem5::Packet::allocate(), packet, gem5::Packet::pushSenderState(), gem5::MemCmd::ReadReq, and request.

Referenced by gem5::minor::Fetch1::tryToSendToTransfers().

◆ markDelayed()

void gem5::minor::Fetch1::FetchRequest::markDelayed ( )
inlineprotectedvirtual

BaseMMU::Translation interface.

Interface for ITLB responses. We can handle delay, so don't do anything

Implements gem5::BaseMMU::Translation.

Definition at line 166 of file fetch1.hh.

◆ reportData()

void gem5::minor::Fetch1::FetchRequest::reportData ( std::ostream & os) const

Report interface.

Definition at line 749 of file fetch1.cc.

References gem5::ArmISA::id, and gem5::X86ISA::os.

Member Data Documentation

◆ fault

Fault gem5::minor::Fetch1::FetchRequest::fault

Fill in a fault if one happens during fetch, check this by picking apart the response packet.

Definition at line 145 of file fetch1.hh.

Referenced by gem5::minor::Fetch1::handleTLBResponse(), gem5::minor::Fetch1::minorTraceResponseLine(), gem5::minor::Fetch1::processResponse(), and gem5::minor::Fetch1::tryToSendToTransfers().

◆ fetch

Fetch1& gem5::minor::Fetch1::FetchRequest::fetch
protected

Owning fetch unit.

Definition at line 112 of file fetch1.hh.

◆ id

◆ packet

PacketPtr gem5::minor::Fetch1::FetchRequest::packet

FetchRequests carry packets while they're in the requests and transfers responses queues.

When a Packet returns from the memory system, its request needs to have its packet updated as this may have changed in flight

Definition at line 135 of file fetch1.hh.

Referenced by makePacket(), gem5::minor::Fetch1::minorTraceResponseLine(), gem5::minor::Fetch1::processResponse(), gem5::minor::Fetch1::recvTimingResp(), gem5::minor::Fetch1::tryToSend(), and gem5::minor::Fetch1::tryToSendToTransfers().

◆ pc

Addr gem5::minor::Fetch1::FetchRequest::pc

PC to fixup with line address.

Definition at line 141 of file fetch1.hh.

Referenced by gem5::minor::Fetch1::processResponse().

◆ request

RequestPtr gem5::minor::Fetch1::FetchRequest::request

◆ state


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

Generated on Tue Jun 18 2024 16:24:20 for gem5 by doxygen 1.11.0