gem5
v20.1.0.0
|
#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 | |
Walker * | walker |
ThreadContext * | tc |
RequestPtr | req |
State | state |
State | nextState |
int | level |
unsigned | inflight |
TlbEntry | entry |
PacketPtr | read |
std::vector< PacketPtr > | writes |
Fault | timingFault |
TLB::Translation * | translation |
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 |
Definition at line 79 of file pagetable_walker.hh.
|
private |
Enumerator | |
---|---|
Ready | |
Waiting | |
Translate |
Definition at line 83 of file pagetable_walker.hh.
|
inline |
Definition at line 112 of file pagetable_walker.hh.
|
private |
Definition at line 411 of file pagetable_walker.cc.
void RiscvISA::Walker::WalkerState::initState | ( | ThreadContext * | _tc, |
BaseTLB::Mode | _mode, | ||
bool | _isTiming = false |
||
) |
Definition at line 179 of file pagetable_walker.cc.
References RiscvISA::MISCREG_SATP, RiscvISA::MISCREG_STATUS, RiscvISA::mode, and ArmISA::status.
Referenced by RiscvISA::Walker::start(), and RiscvISA::Walker::startFunctional().
bool RiscvISA::Walker::WalkerState::isRetrying | ( | ) |
Definition at line 544 of file pagetable_walker.cc.
Referenced by RiscvISA::Walker::recvReqRetry().
bool RiscvISA::Walker::WalkerState::isTiming | ( | ) |
Definition at line 550 of file pagetable_walker.cc.
Referenced by RiscvISA::Walker::start().
|
inline |
Definition at line 132 of file pagetable_walker.hh.
References SimObject::name(), and walker.
unsigned RiscvISA::Walker::WalkerState::numInflight | ( | ) | const |
Definition at line 538 of file pagetable_walker.cc.
Referenced by RiscvISA::Walker::startWalkWrapper().
|
private |
Definition at line 575 of file pagetable_walker.cc.
References DPRINTF, and RiscvISA::mode.
bool RiscvISA::Walker::WalkerState::recvPacket | ( | PacketPtr | pkt | ) |
Definition at line 445 of file pagetable_walker.cc.
References Packet::headerDelay, Packet::isRead(), Packet::isResponse(), RiscvISA::mode, NoFault, Packet::payloadDelay, RiscvISA::vaddr, and RiscvISA::VADDR_BITS.
Referenced by RiscvISA::Walker::recvTimingResp().
void RiscvISA::Walker::WalkerState::retry | ( | ) |
Definition at line 568 of file pagetable_walker.cc.
Referenced by RiscvISA::Walker::recvReqRetry().
|
private |
Definition at line 505 of file pagetable_walker.cc.
|
private |
Definition at line 419 of file pagetable_walker.cc.
References DPRINTF, X86ISA::level, RiscvISA::LEVEL_BITS, RiscvISA::LEVEL_MASK, RiscvISA::PageShift, Request::PHYSICAL, MemCmd::ReadReq, ArmISA::shift, RiscvISA::vaddr, and RiscvISA::VADDR_BITS.
void RiscvISA::Walker::WalkerState::squash | ( | ) |
Definition at line 562 of file pagetable_walker.cc.
Referenced by RiscvISA::Walker::startWalkWrapper().
Definition at line 261 of file pagetable_walker.cc.
References addr, NoFault, and RiscvISA::PageShift.
Referenced by RiscvISA::Walker::startFunctional().
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().
Definition at line 285 of file pagetable_walker.cc.
References Packet::cmd, DPRINTF, Packet::getAddr(), Packet::getLE(), Packet::getSize(), X86ISA::level, RiscvISA::LEVEL_BITS, RiscvISA::LEVEL_MASK, RiscvISA::mask, RiscvISA::mode, NoFault, RiscvISA::PageShift, MemCmd::ReadReq, Packet::req, Packet::setLE(), ArmISA::shift, ArmISA::status, BaseTLB::Write, and MemCmd::WriteReq.
bool RiscvISA::Walker::WalkerState::wasStarted | ( | ) |
Definition at line 556 of file pagetable_walker.cc.
Referenced by RiscvISA::Walker::startWalkWrapper().
|
friend |
Definition at line 81 of file pagetable_walker.hh.
|
protected |
Definition at line 97 of file pagetable_walker.hh.
|
protected |
Definition at line 106 of file pagetable_walker.hh.
|
protected |
Definition at line 96 of file pagetable_walker.hh.
|
protected |
Definition at line 95 of file pagetable_walker.hh.
|
protected |
Definition at line 102 of file pagetable_walker.hh.
Referenced by RiscvISA::Walker::startWalkWrapper().
|
protected |
Definition at line 94 of file pagetable_walker.hh.
|
protected |
Definition at line 105 of file pagetable_walker.hh.
|
protected |
Definition at line 98 of file pagetable_walker.hh.
|
protected |
Definition at line 92 of file pagetable_walker.hh.
Referenced by RiscvISA::Walker::startWalkWrapper().
|
protected |
Definition at line 108 of file pagetable_walker.hh.
|
protected |
Definition at line 103 of file pagetable_walker.hh.
|
protected |
Definition at line 110 of file pagetable_walker.hh.
|
protected |
Definition at line 109 of file pagetable_walker.hh.
|
protected |
Definition at line 93 of file pagetable_walker.hh.
|
protected |
Definition at line 104 of file pagetable_walker.hh.
|
protected |
Definition at line 91 of file pagetable_walker.hh.
Referenced by RiscvISA::Walker::startWalkWrapper().
|
protected |
Definition at line 107 of file pagetable_walker.hh.
|
protected |
Definition at line 100 of file pagetable_walker.hh.
|
protected |
Definition at line 101 of file pagetable_walker.hh.
Referenced by RiscvISA::Walker::startWalkWrapper().
|
protected |
Definition at line 90 of file pagetable_walker.hh.
Referenced by name().
|
protected |
Definition at line 99 of file pagetable_walker.hh.