|
gem5 [DEVELOP-FOR-25.0]
|
#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 | |
| Walker * | walker |
| ThreadContext * | tc |
| RequestPtr | req |
| State | state |
| State | nextState |
| int | level |
| unsigned | inflight |
| TlbEntry | entry |
| PacketPtr | read |
| std::vector< PacketPtr > | writes |
| Fault | timingFault |
| BaseMMU::Translation * | translation |
| BaseMMU::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 86 of file pagetable_walker.hh.
|
private |
| Enumerator | |
|---|---|
| Ready | |
| Waiting | |
| Translate | |
Definition at line 90 of file pagetable_walker.hh.
|
inline |
|
private |
Definition at line 510 of file pagetable_walker.cc.
References nextState, read, and Ready.
Referenced by stepWalk().
| void gem5::RiscvISA::Walker::WalkerState::initState | ( | ThreadContext * | _tc, |
| BaseMMU::Mode | _mode, | ||
| bool | _isTiming = false ) |
Definition at line 183 of file pagetable_walker.cc.
References gem5::RiscvISA::MISCREG_SATP, gem5::RiscvISA::MISCREG_STATUS, mode, pmode, Ready, satp, started, state, status, tc, timing, and walker.
Referenced by gem5::RiscvISA::Walker::start().
| bool gem5::RiscvISA::Walker::WalkerState::isRetrying | ( | ) |
Definition at line 656 of file pagetable_walker.cc.
References retrying.
Referenced by gem5::RiscvISA::Walker::recvReqRetry().
| bool gem5::RiscvISA::Walker::WalkerState::isTiming | ( | ) |
Definition at line 662 of file pagetable_walker.cc.
References timing.
Referenced by gem5::RiscvISA::Walker::start().
|
inline |
Definition at line 140 of file pagetable_walker.hh.
References walker.
| unsigned gem5::RiscvISA::Walker::WalkerState::numInflight | ( | ) | const |
Definition at line 650 of file pagetable_walker.cc.
References inflight.
Referenced by gem5::RiscvISA::Walker::startWalkWrapper().
|
private |
Definition at line 687 of file pagetable_walker.cc.
References DPRINTF, entry, mode, gem5::X86ISA::present, and walker.
Referenced by stepWalk().
| bool gem5::RiscvISA::Walker::WalkerState::recvPacket | ( | PacketPtr | pkt | ) |
Definition at line 544 of file pagetable_walker.cc.
References gem5::Packet::headerDelay, inflight, gem5::Packet::isRead(), gem5::Packet::isResponse(), mode, nextState, gem5::NoFault, gem5::Packet::payloadDelay, pmode, read, Ready, req, satp, sendPackets(), gem5::sext(), squashed, state, stepWalk(), tc, timingFault, translation, gem5::RiscvISA::vaddr, Waiting, walker, and writes.
Referenced by gem5::RiscvISA::Walker::recvTimingResp().
| void gem5::RiscvISA::Walker::WalkerState::retry | ( | ) |
Definition at line 680 of file pagetable_walker.cc.
References retrying, and sendPackets().
Referenced by gem5::RiscvISA::Walker::recvReqRetry().
|
private |
Definition at line 617 of file pagetable_walker.cc.
References inflight, read, retrying, walker, and writes.
Referenced by recvPacket(), retry(), and startWalk().
|
private |
Definition at line 518 of file pagetable_walker.cc.
References DPRINTF, entry, level, gem5::RiscvISA::LEVEL_BITS, gem5::RiscvISA::LEVEL_MASK, nextState, gem5::RiscvISA::PageShift, gem5::Request::PHYSICAL, read, gem5::MemCmd::ReadReq, Ready, satp, gem5::sext(), gem5::ArmISA::shift, state, Translate, gem5::RiscvISA::vaddr, and walker.
Referenced by startFunctional(), and startWalk().
| void gem5::RiscvISA::Walker::WalkerState::squash | ( | ) |
Definition at line 674 of file pagetable_walker.cc.
References squashed.
Referenced by gem5::RiscvISA::Walker::startWalkWrapper().
Definition at line 296 of file pagetable_walker.cc.
References gem5::X86ISA::addr, entry, nextState, gem5::NoFault, gem5::RiscvISA::PageShift, read, Ready, setupWalk(), started, state, stepWalk(), and walker.
| Fault gem5::RiscvISA::Walker::WalkerState::startWalk | ( | ) |
Definition at line 267 of file pagetable_walker.cc.
References nextState, gem5::NoFault, read, Ready, req, sendPackets(), setupWalk(), started, state, stepWalk(), timing, timingFault, Waiting, and walker.
Referenced by gem5::RiscvISA::Walker::start(), and gem5::RiscvISA::Walker::startWalkWrapper().
Definition at line 320 of file pagetable_walker.cc.
References gem5::Packet::cmd, DPRINTF, endWalk(), entry, functional, gem5::Packet::getAddr(), gem5::Packet::getSize(), gem5::RiscvISA::getVPNFromVAddr(), level, gem5::RiscvISA::LEVEL_BITS, gem5::RiscvISA::LEVEL_MASK, gem5::RiscvISA::mask, mode, gem5::RiscvISA::NapotShift, nextState, gem5::NoFault, pageFault(), gem5::RiscvISA::PageShift, pmode, gem5::RiscvISA::PRV_S, gem5::BaseMMU::Read, read, gem5::MemCmd::ReadReq, Ready, gem5::Packet::req, satp, gem5::Packet::setLE(), gem5::ArmISA::shift, state, status, tc, Translate, Waiting, walker, gem5::BaseMMU::Write, and gem5::MemCmd::WriteReq.
Referenced by recvPacket(), startFunctional(), and startWalk().
| bool gem5::RiscvISA::Walker::WalkerState::wasStarted | ( | ) |
Definition at line 668 of file pagetable_walker.cc.
References started.
Referenced by gem5::RiscvISA::Walker::startWalkWrapper().
|
friend |
Definition at line 88 of file pagetable_walker.hh.
References Walker.
Referenced by Walker, and WalkerState().
|
protected |
Definition at line 105 of file pagetable_walker.hh.
Referenced by pageFault(), setupWalk(), startFunctional(), and stepWalk().
|
protected |
Definition at line 114 of file pagetable_walker.hh.
Referenced by stepWalk(), and WalkerState().
|
protected |
Definition at line 104 of file pagetable_walker.hh.
Referenced by numInflight(), recvPacket(), sendPackets(), and WalkerState().
|
protected |
Definition at line 103 of file pagetable_walker.hh.
Referenced by setupWalk(), stepWalk(), and WalkerState().
|
protected |
Definition at line 110 of file pagetable_walker.hh.
Referenced by initState(), pageFault(), recvPacket(), gem5::RiscvISA::Walker::startWalkWrapper(), and stepWalk().
|
protected |
Definition at line 102 of file pagetable_walker.hh.
Referenced by endWalk(), recvPacket(), setupWalk(), startFunctional(), startWalk(), stepWalk(), and WalkerState().
|
protected |
Definition at line 113 of file pagetable_walker.hh.
Referenced by initState(), recvPacket(), gem5::RiscvISA::Walker::startWalkWrapper(), and stepWalk().
|
protected |
Definition at line 106 of file pagetable_walker.hh.
Referenced by endWalk(), recvPacket(), sendPackets(), setupWalk(), startFunctional(), startWalk(), and stepWalk().
|
protected |
Definition at line 100 of file pagetable_walker.hh.
Referenced by recvPacket(), startWalk(), gem5::RiscvISA::Walker::startWalkWrapper(), and WalkerState().
|
protected |
Definition at line 116 of file pagetable_walker.hh.
Referenced by isRetrying(), retry(), sendPackets(), and WalkerState().
|
protected |
Definition at line 111 of file pagetable_walker.hh.
Referenced by initState(), recvPacket(), setupWalk(), gem5::RiscvISA::Walker::startWalkWrapper(), and stepWalk().
|
protected |
Definition at line 118 of file pagetable_walker.hh.
Referenced by recvPacket(), squash(), and WalkerState().
|
protected |
Definition at line 117 of file pagetable_walker.hh.
Referenced by initState(), startFunctional(), startWalk(), WalkerState(), and wasStarted().
|
protected |
Definition at line 101 of file pagetable_walker.hh.
Referenced by initState(), recvPacket(), setupWalk(), startFunctional(), startWalk(), stepWalk(), and WalkerState().
|
protected |
Definition at line 112 of file pagetable_walker.hh.
Referenced by initState(), gem5::RiscvISA::Walker::startWalkWrapper(), and stepWalk().
|
protected |
Definition at line 99 of file pagetable_walker.hh.
Referenced by initState(), recvPacket(), gem5::RiscvISA::Walker::startWalkWrapper(), and stepWalk().
|
protected |
Definition at line 115 of file pagetable_walker.hh.
Referenced by initState(), isTiming(), startWalk(), and WalkerState().
|
protected |
Definition at line 108 of file pagetable_walker.hh.
Referenced by recvPacket(), and startWalk().
|
protected |
Definition at line 109 of file pagetable_walker.hh.
Referenced by recvPacket(), gem5::RiscvISA::Walker::startWalkWrapper(), and WalkerState().
|
protected |
Definition at line 98 of file pagetable_walker.hh.
Referenced by initState(), name(), pageFault(), recvPacket(), sendPackets(), setupWalk(), startFunctional(), startWalk(), stepWalk(), and WalkerState().
|
protected |
Definition at line 107 of file pagetable_walker.hh.
Referenced by recvPacket(), and sendPackets().