gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::X86ISA::GpuTLB::TranslationState Struct Reference

TLB TranslationState: this currently is a somewhat bastardization of the usage of SenderState, whereby the receiver of a packet is not usually supposed to need to look at the contents of the senderState, you're really only supposed to look at what you pushed on, pop it off, and send it back. More...

#include <gpu_tlb.hh>

Inheritance diagram for gem5::X86ISA::GpuTLB::TranslationState:
gem5::Packet::SenderState

Public Member Functions

 TranslationState (Mode tlb_mode, ThreadContext *_tc, bool is_prefetch=false, Packet::SenderState *_saved=nullptr)
 
- Public Member Functions inherited from gem5::Packet::SenderState
 SenderState ()
 
virtual ~SenderState ()
 

Public Attributes

Mode tlbMode
 
ThreadContexttc
 
TlbEntrytlbEntry
 
bool isPrefetch
 
uint64_t issueTime
 
std::vector< ResponsePort * > ports
 
std::vector< int > reqCnt
 
int hitLevel
 
Packet::SenderStatesaved
 
- Public Attributes inherited from gem5::Packet::SenderState
SenderStatepredecessor
 

Detailed Description

TLB TranslationState: this currently is a somewhat bastardization of the usage of SenderState, whereby the receiver of a packet is not usually supposed to need to look at the contents of the senderState, you're really only supposed to look at what you pushed on, pop it off, and send it back.

However, since there is state that we want to pass to the TLBs using the send/recv Timing/Functional/etc. APIs, which don't allow for new arguments, we need a common TLB senderState to pass between TLBs, both "forwards" and "backwards."

So, basically, the rule is that any packet received by a TLB port (cpuside OR memside) must be safely castable to a TranslationState.

Definition at line 285 of file gpu_tlb.hh.

Constructor & Destructor Documentation

◆ TranslationState()

gem5::X86ISA::GpuTLB::TranslationState::TranslationState ( Mode  tlb_mode,
ThreadContext _tc,
bool  is_prefetch = false,
Packet::SenderState _saved = nullptr 
)
inline

Definition at line 312 of file gpu_tlb.hh.

Member Data Documentation

◆ hitLevel

int gem5::X86ISA::GpuTLB::TranslationState::hitLevel

◆ isPrefetch

bool gem5::X86ISA::GpuTLB::TranslationState::isPrefetch

◆ issueTime

uint64_t gem5::X86ISA::GpuTLB::TranslationState::issueTime

Definition at line 301 of file gpu_tlb.hh.

◆ ports

std::vector<ResponsePort*> gem5::X86ISA::GpuTLB::TranslationState::ports

◆ reqCnt

std::vector<int> gem5::X86ISA::GpuTLB::TranslationState::reqCnt

◆ saved

Packet::SenderState* gem5::X86ISA::GpuTLB::TranslationState::saved

◆ tc

ThreadContext* gem5::X86ISA::GpuTLB::TranslationState::tc

◆ tlbEntry

TlbEntry* gem5::X86ISA::GpuTLB::TranslationState::tlbEntry

◆ tlbMode

Mode gem5::X86ISA::GpuTLB::TranslationState::tlbMode

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

Generated on Tue Sep 21 2021 12:34:57 for gem5 by doxygen 1.8.17