gem5  v20.1.0.0
Public Member Functions | Protected Attributes | Private Types | Private Member Functions | Friends | List of all members
X86ISA::Walker::WalkerState Class Reference

#include <pagetable_walker.hh>

Public Member Functions

 WalkerState (Walker *_walker, BaseTLB::Translation *_translation, const RequestPtr &_req, bool _isFunctional=false)
 
void initState (ThreadContext *_tc, BaseTLB::Mode _mode, bool _isTiming=false)
 
Fault startWalk ()
 
Fault startFunctional (Addr &addr, unsigned &logBytes)
 
bool recvPacket (PacketPtr pkt)
 
unsigned numInflight () const
 
bool isRetrying ()
 
bool wasStarted ()
 
bool isTiming ()
 
void retry ()
 
void squash ()
 
std::string name () const
 

Protected Attributes

Walkerwalker
 
ThreadContexttc
 
RequestPtr req
 
State state
 
State nextState
 
int dataSize
 
bool enableNX
 
unsigned inflight
 
TlbEntry entry
 
PacketPtr read
 
std::vector< PacketPtrwrites
 
Fault timingFault
 
TLB::Translationtranslation
 
BaseTLB::Mode mode
 
bool functional
 
bool timing
 
bool retrying
 
bool started
 
bool squashed
 

Private Types

enum  State {
  Ready, Waiting, LongPML4, LongPDP,
  LongPD, LongPTE, PAEPDP, PAEPD,
  PAEPTE, PSEPD, PD, PTE
}
 

Private Member Functions

void setupWalk (Addr vaddr)
 
Fault stepWalk (PacketPtr &write)
 
void sendPackets ()
 
void endWalk ()
 
Fault pageFault (bool present)
 

Friends

class Walker
 

Detailed Description

Definition at line 78 of file pagetable_walker.hh.

Member Enumeration Documentation

◆ State

Enumerator
Ready 
Waiting 
LongPML4 
LongPDP 
LongPD 
LongPTE 
PAEPDP 
PAEPD 
PAEPTE 
PSEPD 
PD 
PTE 

Definition at line 82 of file pagetable_walker.hh.

Constructor & Destructor Documentation

◆ WalkerState()

X86ISA::Walker::WalkerState::WalkerState ( Walker _walker,
BaseTLB::Translation _translation,
const RequestPtr _req,
bool  _isFunctional = false 
)
inline

Definition at line 114 of file pagetable_walker.hh.

Member Function Documentation

◆ endWalk()

void X86ISA::Walker::WalkerState::endWalk ( )
private

Definition at line 540 of file pagetable_walker.cc.

◆ initState()

void X86ISA::Walker::WalkerState::initState ( ThreadContext _tc,
BaseTLB::Mode  _mode,
bool  _isTiming = false 
)

Definition at line 178 of file pagetable_walker.cc.

References ArmISA::mode.

Referenced by X86ISA::Walker::start(), and X86ISA::Walker::startFunctional().

◆ isRetrying()

bool X86ISA::Walker::WalkerState::isRetrying ( )

Definition at line 697 of file pagetable_walker.cc.

Referenced by X86ISA::Walker::recvReqRetry().

◆ isTiming()

bool X86ISA::Walker::WalkerState::isTiming ( )

Definition at line 703 of file pagetable_walker.cc.

Referenced by X86ISA::Walker::start().

◆ name()

std::string X86ISA::Walker::WalkerState::name ( ) const
inline

Definition at line 134 of file pagetable_walker.hh.

References SimObject::name(), and walker.

◆ numInflight()

unsigned X86ISA::Walker::WalkerState::numInflight ( ) const

Definition at line 691 of file pagetable_walker.cc.

Referenced by X86ISA::Walker::startWalkWrapper().

◆ pageFault()

Fault X86ISA::Walker::WalkerState::pageFault ( bool  present)
private

◆ recvPacket()

bool X86ISA::Walker::WalkerState::recvPacket ( PacketPtr  pkt)

◆ retry()

void X86ISA::Walker::WalkerState::retry ( )

Definition at line 721 of file pagetable_walker.cc.

Referenced by X86ISA::Walker::recvReqRetry().

◆ sendPackets()

void X86ISA::Walker::WalkerState::sendPackets ( )
private

Definition at line 658 of file pagetable_walker.cc.

◆ setupWalk()

void X86ISA::Walker::WalkerState::setupWalk ( Addr  vaddr)
private

◆ squash()

void X86ISA::Walker::WalkerState::squash ( )

Definition at line 715 of file pagetable_walker.cc.

Referenced by X86ISA::Walker::startWalkWrapper().

◆ startFunctional()

Fault X86ISA::Walker::WalkerState::startFunctional ( Addr addr,
unsigned &  logBytes 
)

Definition at line 255 of file pagetable_walker.cc.

References X86ISA::addr, and NoFault.

Referenced by X86ISA::Walker::startFunctional().

◆ startWalk()

Fault X86ISA::Walker::WalkerState::startWalk ( )

Definition at line 226 of file pagetable_walker.cc.

References NoFault.

Referenced by X86ISA::Walker::start(), and X86ISA::Walker::startWalkWrapper().

◆ stepWalk()

Fault X86ISA::Walker::WalkerState::stepWalk ( PacketPtr write)
private

◆ wasStarted()

bool X86ISA::Walker::WalkerState::wasStarted ( )

Definition at line 709 of file pagetable_walker.cc.

Referenced by X86ISA::Walker::startWalkWrapper().

Friends And Related Function Documentation

◆ Walker

friend class Walker
friend

Definition at line 80 of file pagetable_walker.hh.

Member Data Documentation

◆ dataSize

int X86ISA::Walker::WalkerState::dataSize
protected

Definition at line 99 of file pagetable_walker.hh.

◆ enableNX

bool X86ISA::Walker::WalkerState::enableNX
protected

Definition at line 100 of file pagetable_walker.hh.

◆ entry

TlbEntry X86ISA::Walker::WalkerState::entry
protected

Definition at line 102 of file pagetable_walker.hh.

◆ functional

bool X86ISA::Walker::WalkerState::functional
protected

Definition at line 108 of file pagetable_walker.hh.

◆ inflight

unsigned X86ISA::Walker::WalkerState::inflight
protected

Definition at line 101 of file pagetable_walker.hh.

◆ mode

BaseTLB::Mode X86ISA::Walker::WalkerState::mode
protected

Definition at line 107 of file pagetable_walker.hh.

Referenced by X86ISA::Walker::startWalkWrapper().

◆ nextState

State X86ISA::Walker::WalkerState::nextState
protected

Definition at line 98 of file pagetable_walker.hh.

◆ read

PacketPtr X86ISA::Walker::WalkerState::read
protected

Definition at line 103 of file pagetable_walker.hh.

◆ req

RequestPtr X86ISA::Walker::WalkerState::req
protected

Definition at line 96 of file pagetable_walker.hh.

Referenced by X86ISA::Walker::startWalkWrapper().

◆ retrying

bool X86ISA::Walker::WalkerState::retrying
protected

Definition at line 110 of file pagetable_walker.hh.

◆ squashed

bool X86ISA::Walker::WalkerState::squashed
protected

Definition at line 112 of file pagetable_walker.hh.

◆ started

bool X86ISA::Walker::WalkerState::started
protected

Definition at line 111 of file pagetable_walker.hh.

◆ state

State X86ISA::Walker::WalkerState::state
protected

Definition at line 97 of file pagetable_walker.hh.

◆ tc

ThreadContext* X86ISA::Walker::WalkerState::tc
protected

Definition at line 95 of file pagetable_walker.hh.

Referenced by X86ISA::Walker::startWalkWrapper().

◆ timing

bool X86ISA::Walker::WalkerState::timing
protected

Definition at line 109 of file pagetable_walker.hh.

◆ timingFault

Fault X86ISA::Walker::WalkerState::timingFault
protected

Definition at line 105 of file pagetable_walker.hh.

◆ translation

TLB::Translation* X86ISA::Walker::WalkerState::translation
protected

Definition at line 106 of file pagetable_walker.hh.

Referenced by X86ISA::Walker::startWalkWrapper().

◆ walker

Walker* X86ISA::Walker::WalkerState::walker
protected

Definition at line 94 of file pagetable_walker.hh.

Referenced by name().

◆ writes

std::vector<PacketPtr> X86ISA::Walker::WalkerState::writes
protected

Definition at line 104 of file pagetable_walker.hh.


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

Generated on Wed Sep 30 2020 14:03:15 for gem5 by doxygen 1.8.17