gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::X86ISA::Walker::WalkerState Class Reference

#include <pagetable_walker.hh>

Public Member Functions

 WalkerState (Walker *_walker, BaseMMU::Translation *_translation, const RequestPtr &_req, bool _isFunctional=false)
 
void initState (ThreadContext *_tc, BaseMMU::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
 
BaseMMU::Translationtranslation
 
BaseMMU::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 82 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 86 of file pagetable_walker.hh.

Constructor & Destructor Documentation

◆ WalkerState()

gem5::X86ISA::Walker::WalkerState::WalkerState ( Walker * _walker,
BaseMMU::Translation * _translation,
const RequestPtr & _req,
bool _isFunctional = false )
inline

Definition at line 119 of file pagetable_walker.hh.

Member Function Documentation

◆ endWalk()

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

Definition at line 551 of file pagetable_walker.cc.

◆ initState()

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

◆ isRetrying()

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

Definition at line 711 of file pagetable_walker.cc.

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

◆ isTiming()

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

Definition at line 717 of file pagetable_walker.cc.

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

◆ name()

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

Definition at line 139 of file pagetable_walker.hh.

References gem5::Named::name(), and walker.

◆ numInflight()

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

Definition at line 705 of file pagetable_walker.cc.

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

◆ pageFault()

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

◆ recvPacket()

◆ retry()

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

Definition at line 735 of file pagetable_walker.cc.

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

◆ sendPackets()

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

Definition at line 672 of file pagetable_walker.cc.

◆ setupWalk()

◆ squash()

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

Definition at line 729 of file pagetable_walker.cc.

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

◆ startFunctional()

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

Definition at line 259 of file pagetable_walker.cc.

References gem5::X86ISA::addr, gem5::NoFault, and state.

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

◆ startWalk()

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

◆ stepWalk()

◆ wasStarted()

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

Definition at line 723 of file pagetable_walker.cc.

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

Friends And Related Symbol Documentation

◆ Walker

friend class Walker
friend

Definition at line 84 of file pagetable_walker.hh.

Member Data Documentation

◆ dataSize

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

Definition at line 104 of file pagetable_walker.hh.

◆ enableNX

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

Definition at line 105 of file pagetable_walker.hh.

◆ entry

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

Definition at line 107 of file pagetable_walker.hh.

◆ functional

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

Definition at line 113 of file pagetable_walker.hh.

◆ inflight

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

Definition at line 106 of file pagetable_walker.hh.

◆ mode

BaseMMU::Mode gem5::X86ISA::Walker::WalkerState::mode
protected

Definition at line 112 of file pagetable_walker.hh.

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

◆ nextState

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

Definition at line 103 of file pagetable_walker.hh.

◆ read

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

Definition at line 108 of file pagetable_walker.hh.

◆ req

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

Definition at line 101 of file pagetable_walker.hh.

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

◆ retrying

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

Definition at line 115 of file pagetable_walker.hh.

◆ squashed

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

Definition at line 117 of file pagetable_walker.hh.

◆ started

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

Definition at line 116 of file pagetable_walker.hh.

◆ state

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

Definition at line 102 of file pagetable_walker.hh.

◆ tc

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

Definition at line 100 of file pagetable_walker.hh.

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

◆ timing

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

Definition at line 114 of file pagetable_walker.hh.

◆ timingFault

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

Definition at line 110 of file pagetable_walker.hh.

◆ translation

BaseMMU::Translation* gem5::X86ISA::Walker::WalkerState::translation
protected

Definition at line 111 of file pagetable_walker.hh.

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

◆ walker

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

Definition at line 99 of file pagetable_walker.hh.

Referenced by name().

◆ writes

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

Definition at line 109 of file pagetable_walker.hh.


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

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