gem5
|
#include <pagetable_walker.hh>
Public Member Functions | |
WalkerState (Walker *_walker, BaseTLB::Translation *_translation, 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) |
bool | isRetrying () |
bool | wasStarted () |
bool | isTiming () |
void | retry () |
std::string | name () const |
Protected Attributes | |
Walker * | walker |
ThreadContext * | tc |
RequestPtr | req |
State | state |
State | nextState |
int | dataSize |
bool | enableNX |
unsigned | inflight |
TlbEntry | entry |
PacketPtr | read |
std::vector< PacketPtr > | writes |
Fault | timingFault |
TLB::Translation * | translation |
BaseTLB::Mode | mode |
bool | functional |
bool | timing |
bool | retrying |
bool | started |
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 |
Definition at line 80 of file pagetable_walker.hh.
|
private |
Enumerator | |
---|---|
Ready | |
Waiting | |
LongPML4 | |
LongPDP | |
LongPD | |
LongPTE | |
PAEPDP | |
PAEPD | |
PAEPTE | |
PSEPD | |
PD | |
PTE |
Definition at line 84 of file pagetable_walker.hh.
|
inline |
Definition at line 115 of file pagetable_walker.hh.
|
private |
Definition at line 537 of file pagetable_walker.cc.
void X86ISA::Walker::WalkerState::initState | ( | ThreadContext * | _tc, |
BaseTLB::Mode | _mode, | ||
bool | _isTiming = false |
||
) |
Definition at line 180 of file pagetable_walker.cc.
References ArmISA::mode.
Referenced by X86ISA::Walker::start(), and X86ISA::Walker::startFunctional().
bool X86ISA::Walker::WalkerState::isRetrying | ( | ) |
Definition at line 682 of file pagetable_walker.cc.
Referenced by X86ISA::Walker::recvReqRetry().
bool X86ISA::Walker::WalkerState::isTiming | ( | ) |
Definition at line 688 of file pagetable_walker.cc.
Referenced by X86ISA::Walker::start().
|
inline |
Definition at line 133 of file pagetable_walker.hh.
References SimObject::name(), and walker.
|
private |
Definition at line 707 of file pagetable_walker.cc.
References DPRINTF, BaseTLB::Execute, X86ISA::MISCREG_M5_REG, ArmISA::mode, X86ISA::present, and BaseTLB::Read.
bool X86ISA::Walker::WalkerState::recvPacket | ( | PacketPtr | pkt | ) |
Definition at line 594 of file pagetable_walker.cc.
References Packet::headerDelay, Packet::isRead(), Packet::isResponse(), ArmISA::mode, NoFault, and Packet::payloadDelay.
Referenced by X86ISA::Walker::recvTimingResp().
void X86ISA::Walker::WalkerState::retry | ( | ) |
Definition at line 700 of file pagetable_walker.cc.
Referenced by X86ISA::Walker::recvReqRetry().
|
private |
Definition at line 649 of file pagetable_walker.cc.
|
private |
Definition at line 546 of file pagetable_walker.cc.
References X86ISA::addr, if(), X86ISA::MISCREG_CR3, X86ISA::MISCREG_CR4, X86ISA::MISCREG_EFER, Request::PHYSICAL, MemCmd::ReadReq, Flags< T >::set(), Request::UNCACHEABLE, and X86ISA::vaddr.
Definition at line 251 of file pagetable_walker.cc.
References NoFault.
Referenced by X86ISA::Walker::startFunctional().
Fault X86ISA::Walker::WalkerState::startWalk | ( | ) |
Definition at line 222 of file pagetable_walker.cc.
References NoFault.
Referenced by X86ISA::Walker::start(), and X86ISA::Walker::startWalkWrapper().
Definition at line 275 of file pagetable_walker.cc.
References bits(), Packet::cmd, DPRINTF, BaseTLB::Execute, Packet::get(), Request::getFlags(), Packet::getSize(), X86ISA::mask, ArmISA::mode, NoFault, panic, MemCmd::ReadReq, Packet::req, Flags< T >::set(), Packet::set(), Request::UNCACHEABLE, X86ISA::uncacheable, X86ISA::vaddr, and MemCmd::WriteReq.
bool X86ISA::Walker::WalkerState::wasStarted | ( | ) |
Definition at line 694 of file pagetable_walker.cc.
Referenced by X86ISA::Walker::startWalkWrapper().
|
friend |
Definition at line 82 of file pagetable_walker.hh.
|
protected |
Definition at line 101 of file pagetable_walker.hh.
|
protected |
Definition at line 102 of file pagetable_walker.hh.
|
protected |
Definition at line 104 of file pagetable_walker.hh.
|
protected |
Definition at line 110 of file pagetable_walker.hh.
|
protected |
Definition at line 103 of file pagetable_walker.hh.
|
protected |
Definition at line 109 of file pagetable_walker.hh.
Referenced by X86ISA::Walker::startWalkWrapper().
|
protected |
Definition at line 100 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.
Referenced by X86ISA::Walker::startWalkWrapper().
|
protected |
Definition at line 112 of file pagetable_walker.hh.
|
protected |
Definition at line 113 of file pagetable_walker.hh.
|
protected |
Definition at line 99 of file pagetable_walker.hh.
|
protected |
Definition at line 97 of file pagetable_walker.hh.
Referenced by X86ISA::Walker::startWalkWrapper().
|
protected |
Definition at line 111 of file pagetable_walker.hh.
|
protected |
Definition at line 107 of file pagetable_walker.hh.
|
protected |
Definition at line 108 of file pagetable_walker.hh.
Referenced by X86ISA::Walker::startWalkWrapper().
|
protected |
Definition at line 96 of file pagetable_walker.hh.
Referenced by name().
|
protected |
Definition at line 106 of file pagetable_walker.hh.