gem5  v19.0.0.0
Public Member Functions | Public Attributes | List of all members
ArmISA::TableWalker::WalkerState Class Reference

#include <table_walker.hh>

Public Member Functions

void doL1Descriptor ()
 
void doL2Descriptor ()
 
void doLongDescriptor ()
 
 WalkerState ()
 
std::string name () const
 

Public Attributes

ThreadContexttc
 Thread context that we're doing the walk for. More...
 
bool aarch64
 If the access is performed in AArch64 state. More...
 
ExceptionLevel el
 Current exception level. More...
 
int physAddrRange
 Current physical address range in bits. More...
 
RequestPtr req
 Request that is currently being serviced. More...
 
uint16_t asid
 ASID that we're servicing the request under. More...
 
uint8_t vmid
 
bool isHyp
 
TLB::TranslationtransState
 Translation state for delayed requests. More...
 
Fault fault
 The fault that we are going to return. More...
 
Addr vaddr
 The virtual address that is being translated with tagging removed. More...
 
Addr vaddr_tainted
 The virtual address that is being translated. More...
 
SCTLR sctlr
 Cached copy of the sctlr as it existed when translation began. More...
 
SCR scr
 Cached copy of the scr as it existed when translation began. More...
 
CPSR cpsr
 Cached copy of the cpsr as it existed when translation began. More...
 
union {
   TTBCR   ttbcr
 
   TCR   tcr
 
}; 
 Cached copy of ttbcr/tcr as it existed when translation began. More...
 
HTCR htcr
 Cached copy of the htcr as it existed when translation began. More...
 
HCR hcr
 Cached copy of the htcr as it existed when translation began. More...
 
VTCR_t vtcr
 Cached copy of the vtcr as it existed when translation began. More...
 
bool isWrite
 If the access is a write. More...
 
bool isFetch
 If the access is a fetch (for execution, and no-exec) must be checked? More...
 
bool isSecure
 If the access comes from the secure state. More...
 
bool isUncacheable
 True if table walks are uncacheable (for table descriptors) More...
 
bool secureLookup
 Helper variables used to implement hierarchical access permissions when the long-desc. More...
 
bool rwTable
 
bool userTable
 
bool xnTable
 
bool pxnTable
 
bool hpd
 Hierarchical access permission disable. More...
 
bool stage2Req
 Flag indicating if a second stage of lookup is required. More...
 
TLB::Translationstage2Tran
 A pointer to the stage 2 translation that's in progress. More...
 
bool timing
 If the mode is timing or atomic. More...
 
bool functional
 If the atomic mode should be functional. More...
 
BaseTLB::Mode mode
 Save mode for use in delayed response. More...
 
TLB::ArmTranslationType tranType
 The translation type that has been requested. More...
 
L1Descriptor l1Desc
 Short-format descriptors. More...
 
L2Descriptor l2Desc
 
LongDescriptor longDesc
 Long-format descriptor (LPAE and AArch64) More...
 
bool delayed
 Whether the response is delayed in timing mode due to additional lookups. More...
 
TableWalkertableWalker
 
Tick startTime
 Timestamp for calculating elapsed time in service (for stats) More...
 
unsigned levels
 Page entries walked during service (for stats) More...
 

Detailed Description

Definition at line 691 of file table_walker.hh.

Constructor & Destructor Documentation

◆ WalkerState()

TableWalker::WalkerState::WalkerState ( )

Definition at line 130 of file table_walker.cc.

Referenced by ArmISA::TableWalker::walk().

Member Function Documentation

◆ doL1Descriptor()

void ArmISA::TableWalker::WalkerState::doL1Descriptor ( )

◆ doL2Descriptor()

void ArmISA::TableWalker::WalkerState::doL2Descriptor ( )

◆ doLongDescriptor()

void ArmISA::TableWalker::WalkerState::doLongDescriptor ( )

◆ name()

std::string ArmISA::TableWalker::WalkerState::name ( ) const
inline

Definition at line 817 of file table_walker.hh.

References SimObject::name().

Referenced by ArmISA::TableWalker::regStats().

Member Data Documentation

◆ @9

union { ... }

Cached copy of ttbcr/tcr as it existed when translation began.

◆ aarch64

bool ArmISA::TableWalker::WalkerState::aarch64

◆ asid

uint16_t ArmISA::TableWalker::WalkerState::asid

ASID that we're servicing the request under.

Definition at line 710 of file table_walker.hh.

Referenced by ArmISA::TableWalker::insertTableEntry(), ArmISA::TableWalker::processWalkWrapper(), and ArmISA::TableWalker::walk().

◆ cpsr

CPSR ArmISA::TableWalker::WalkerState::cpsr

Cached copy of the cpsr as it existed when translation began.

Definition at line 733 of file table_walker.hh.

◆ delayed

bool ArmISA::TableWalker::WalkerState::delayed

◆ el

ExceptionLevel ArmISA::TableWalker::WalkerState::el

◆ fault

Fault ArmISA::TableWalker::WalkerState::fault

◆ functional

bool ArmISA::TableWalker::WalkerState::functional

If the atomic mode should be functional.

Definition at line 783 of file table_walker.hh.

Referenced by ArmISA::TableWalker::fetchDescriptor(), and ArmISA::TableWalker::walk().

◆ hcr

HCR ArmISA::TableWalker::WalkerState::hcr

Cached copy of the htcr as it existed when translation began.

Definition at line 745 of file table_walker.hh.

Referenced by ArmISA::TableWalker::processWalkAArch64(), and ArmISA::TableWalker::walk().

◆ hpd

bool ArmISA::TableWalker::WalkerState::hpd

Hierarchical access permission disable.

Definition at line 771 of file table_walker.hh.

Referenced by ArmISA::TableWalker::doLongDescriptor(), and ArmISA::TableWalker::processWalkAArch64().

◆ htcr

HTCR ArmISA::TableWalker::WalkerState::htcr

Cached copy of the htcr as it existed when translation began.

Definition at line 742 of file table_walker.hh.

Referenced by ArmISA::TableWalker::processWalkLPAE(), and ArmISA::TableWalker::walk().

◆ isFetch

bool ArmISA::TableWalker::WalkerState::isFetch

◆ isHyp

bool ArmISA::TableWalker::WalkerState::isHyp

◆ isSecure

bool ArmISA::TableWalker::WalkerState::isSecure

◆ isUncacheable

bool ArmISA::TableWalker::WalkerState::isUncacheable

◆ isWrite

bool ArmISA::TableWalker::WalkerState::isWrite

◆ l1Desc

L1Descriptor ArmISA::TableWalker::WalkerState::l1Desc

◆ l2Desc

L2Descriptor ArmISA::TableWalker::WalkerState::l2Desc

◆ levels

unsigned ArmISA::TableWalker::WalkerState::levels

Page entries walked during service (for stats)

Definition at line 808 of file table_walker.hh.

◆ longDesc

LongDescriptor ArmISA::TableWalker::WalkerState::longDesc

◆ mode

BaseTLB::Mode ArmISA::TableWalker::WalkerState::mode

◆ physAddrRange

int ArmISA::TableWalker::WalkerState::physAddrRange

Current physical address range in bits.

Definition at line 704 of file table_walker.hh.

Referenced by ArmISA::TableWalker::doLongDescriptor(), ArmISA::TableWalker::processWalkAArch64(), and ArmISA::TableWalker::walk().

◆ pxnTable

bool ArmISA::TableWalker::WalkerState::pxnTable

◆ req

RequestPtr ArmISA::TableWalker::WalkerState::req

◆ rwTable

bool ArmISA::TableWalker::WalkerState::rwTable

◆ scr

SCR ArmISA::TableWalker::WalkerState::scr

Cached copy of the scr as it existed when translation began.

Definition at line 730 of file table_walker.hh.

◆ sctlr

SCTLR ArmISA::TableWalker::WalkerState::sctlr

◆ secureLookup

bool ArmISA::TableWalker::WalkerState::secureLookup

Helper variables used to implement hierarchical access permissions when the long-desc.

format is used (LPAE only)

Definition at line 764 of file table_walker.hh.

Referenced by ArmISA::TableWalker::doLongDescriptor(), ArmISA::TableWalker::LongDescriptor::global(), ArmISA::TableWalker::LongDescriptor::secure(), and ArmISA::TableWalker::walk().

◆ stage2Req

bool ArmISA::TableWalker::WalkerState::stage2Req

Flag indicating if a second stage of lookup is required.

Definition at line 774 of file table_walker.hh.

Referenced by ArmISA::TableWalker::fetchDescriptor(), and ArmISA::TableWalker::walk().

◆ stage2Tran

TLB::Translation* ArmISA::TableWalker::WalkerState::stage2Tran

◆ startTime

Tick ArmISA::TableWalker::WalkerState::startTime

◆ tableWalker

TableWalker* ArmISA::TableWalker::WalkerState::tableWalker

Definition at line 802 of file table_walker.hh.

Referenced by ArmISA::TableWalker::walk().

◆ tc

ThreadContext* ArmISA::TableWalker::WalkerState::tc

◆ tcr

TCR ArmISA::TableWalker::WalkerState::tcr

◆ timing

bool ArmISA::TableWalker::WalkerState::timing

◆ transState

TLB::Translation* ArmISA::TableWalker::WalkerState::transState

◆ tranType

TLB::ArmTranslationType ArmISA::TableWalker::WalkerState::tranType

The translation type that has been requested.

Definition at line 789 of file table_walker.hh.

Referenced by ArmISA::TableWalker::walk().

◆ ttbcr

TTBCR ArmISA::TableWalker::WalkerState::ttbcr

◆ userTable

bool ArmISA::TableWalker::WalkerState::userTable

◆ vaddr

Addr ArmISA::TableWalker::WalkerState::vaddr

◆ vaddr_tainted

Addr ArmISA::TableWalker::WalkerState::vaddr_tainted

◆ vmid

uint8_t ArmISA::TableWalker::WalkerState::vmid

◆ vtcr

VTCR_t ArmISA::TableWalker::WalkerState::vtcr

Cached copy of the vtcr as it existed when translation began.

Definition at line 748 of file table_walker.hh.

Referenced by ArmISA::TableWalker::processWalkAArch64(), ArmISA::TableWalker::processWalkLPAE(), and ArmISA::TableWalker::walk().

◆ xnTable

bool ArmISA::TableWalker::WalkerState::xnTable

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

Generated on Fri Feb 28 2020 16:27:20 for gem5 by doxygen 1.8.13