gem5  v20.1.0.0
Public Member Functions | Protected Attributes | Private Types | Private Member Functions | Friends | List of all members
RiscvISA::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 level
 
unsigned inflight
 
TlbEntry entry
 
PacketPtr read
 
std::vector< PacketPtrwrites
 
Fault timingFault
 
TLB::Translationtranslation
 
BaseTLB::Mode mode
 
SATP satp
 
STATUS status
 
PrivilegeMode pmode
 
bool functional
 
bool timing
 
bool retrying
 
bool started
 
bool squashed
 

Private Types

enum  State { Ready, Waiting, Translate }
 

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 79 of file pagetable_walker.hh.

Member Enumeration Documentation

◆ State

Enumerator
Ready 
Waiting 
Translate 

Definition at line 83 of file pagetable_walker.hh.

Constructor & Destructor Documentation

◆ WalkerState()

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

Definition at line 112 of file pagetable_walker.hh.

Member Function Documentation

◆ endWalk()

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

Definition at line 411 of file pagetable_walker.cc.

◆ initState()

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

◆ isRetrying()

bool RiscvISA::Walker::WalkerState::isRetrying ( )

Definition at line 544 of file pagetable_walker.cc.

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

◆ isTiming()

bool RiscvISA::Walker::WalkerState::isTiming ( )

Definition at line 550 of file pagetable_walker.cc.

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

◆ name()

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

Definition at line 132 of file pagetable_walker.hh.

References SimObject::name(), and walker.

◆ numInflight()

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

Definition at line 538 of file pagetable_walker.cc.

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

◆ pageFault()

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

Definition at line 575 of file pagetable_walker.cc.

References DPRINTF, and RiscvISA::mode.

◆ recvPacket()

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

◆ retry()

void RiscvISA::Walker::WalkerState::retry ( )

Definition at line 568 of file pagetable_walker.cc.

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

◆ sendPackets()

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

Definition at line 505 of file pagetable_walker.cc.

◆ setupWalk()

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

◆ squash()

void RiscvISA::Walker::WalkerState::squash ( )

Definition at line 562 of file pagetable_walker.cc.

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

◆ startFunctional()

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

Definition at line 261 of file pagetable_walker.cc.

References addr, NoFault, and RiscvISA::PageShift.

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

◆ startWalk()

Fault RiscvISA::Walker::WalkerState::startWalk ( )

Definition at line 232 of file pagetable_walker.cc.

References NoFault.

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

◆ stepWalk()

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

◆ wasStarted()

bool RiscvISA::Walker::WalkerState::wasStarted ( )

Definition at line 556 of file pagetable_walker.cc.

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

Friends And Related Function Documentation

◆ Walker

friend class Walker
friend

Definition at line 81 of file pagetable_walker.hh.

Member Data Documentation

◆ entry

TlbEntry RiscvISA::Walker::WalkerState::entry
protected

Definition at line 97 of file pagetable_walker.hh.

◆ functional

bool RiscvISA::Walker::WalkerState::functional
protected

Definition at line 106 of file pagetable_walker.hh.

◆ inflight

unsigned RiscvISA::Walker::WalkerState::inflight
protected

Definition at line 96 of file pagetable_walker.hh.

◆ level

int RiscvISA::Walker::WalkerState::level
protected

Definition at line 95 of file pagetable_walker.hh.

◆ mode

BaseTLB::Mode RiscvISA::Walker::WalkerState::mode
protected

Definition at line 102 of file pagetable_walker.hh.

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

◆ nextState

State RiscvISA::Walker::WalkerState::nextState
protected

Definition at line 94 of file pagetable_walker.hh.

◆ pmode

PrivilegeMode RiscvISA::Walker::WalkerState::pmode
protected

Definition at line 105 of file pagetable_walker.hh.

◆ read

PacketPtr RiscvISA::Walker::WalkerState::read
protected

Definition at line 98 of file pagetable_walker.hh.

◆ req

RequestPtr RiscvISA::Walker::WalkerState::req
protected

Definition at line 92 of file pagetable_walker.hh.

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

◆ retrying

bool RiscvISA::Walker::WalkerState::retrying
protected

Definition at line 108 of file pagetable_walker.hh.

◆ satp

SATP RiscvISA::Walker::WalkerState::satp
protected

Definition at line 103 of file pagetable_walker.hh.

◆ squashed

bool RiscvISA::Walker::WalkerState::squashed
protected

Definition at line 110 of file pagetable_walker.hh.

◆ started

bool RiscvISA::Walker::WalkerState::started
protected

Definition at line 109 of file pagetable_walker.hh.

◆ state

State RiscvISA::Walker::WalkerState::state
protected

Definition at line 93 of file pagetable_walker.hh.

◆ status

STATUS RiscvISA::Walker::WalkerState::status
protected

Definition at line 104 of file pagetable_walker.hh.

◆ tc

ThreadContext* RiscvISA::Walker::WalkerState::tc
protected

Definition at line 91 of file pagetable_walker.hh.

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

◆ timing

bool RiscvISA::Walker::WalkerState::timing
protected

Definition at line 107 of file pagetable_walker.hh.

◆ timingFault

Fault RiscvISA::Walker::WalkerState::timingFault
protected

Definition at line 100 of file pagetable_walker.hh.

◆ translation

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

Definition at line 101 of file pagetable_walker.hh.

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

◆ walker

Walker* RiscvISA::Walker::WalkerState::walker
protected

Definition at line 90 of file pagetable_walker.hh.

Referenced by name().

◆ writes

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

Definition at line 99 of file pagetable_walker.hh.


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

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