|
gem5
v21.1.0.2
|
Level 2 page table descriptor. More...
#include <table_walker.hh>
Public Member Functions | |
| L2Descriptor () | |
| Default ctor. More... | |
| L2Descriptor (L1Descriptor &parent) | |
| virtual uint64_t | getRawData () const |
| virtual std::string | dbgHeader () const |
| virtual TlbEntry::DomainType | domain () const |
| bool | secure (bool have_security, WalkerState *currState) const |
| virtual uint8_t | offsetBits () const |
| bool | invalid () const |
| Is the entry invalid. More... | |
| bool | large () const |
| What is the size of the mapping? More... | |
| bool | xn () const |
| Is execution allowed on this mapping? More... | |
| bool | global (WalkerState *currState) const |
| Is the translation global (no asid used)? More... | |
| uint8_t | ap () const |
| Three bit access protection flags. More... | |
| uint8_t | texcb () const |
| Memory region attributes: ARM DDI 0406B: B3-32. More... | |
| Addr | pfn () const |
| Return the physical frame, bits shifted right. More... | |
| Addr | paddr (Addr va) const |
| Return complete physical address given a VA. More... | |
| bool | shareable () const |
| If the section is shareable. More... | |
| void | setAp0 () |
| Set access flag that this entry has been touched. More... | |
| bool | dirty () const |
| This entry needs to be written back to memory. More... | |
Public Member Functions inherited from gem5::ArmISA::TableWalker::DescriptorBase | |
| DescriptorBase () | |
Public Attributes | |
| uint32_t | data |
| The raw bits of the entry. More... | |
| L1Descriptor * | l1Parent |
| bool | _dirty |
| This entry has been modified (access flag set) and needs to be written back to memory. More... | |
Public Attributes inherited from gem5::ArmISA::TableWalker::DescriptorBase | |
| LookupLevel | lookupLevel |
| Current lookup level for this descriptor. More... | |
Level 2 page table descriptor.
Definition at line 251 of file table_walker.hh.
|
inline |
Default ctor.
Definition at line 263 of file table_walker.hh.
References gem5::ArmISA::L2, and gem5::ArmISA::TableWalker::DescriptorBase::lookupLevel.
|
inline |
Definition at line 268 of file table_walker.hh.
References gem5::ArmISA::L2, and gem5::ArmISA::TableWalker::DescriptorBase::lookupLevel.
|
inlinevirtual |
Three bit access protection flags.
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 324 of file table_walker.hh.
References gem5::bits(), and data.
Referenced by gem5::ArmISA::TableWalker::doL2Descriptor().
|
inlinevirtual |
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 279 of file table_walker.hh.
|
inline |
This entry needs to be written back to memory.
Definition at line 368 of file table_walker.hh.
References _dirty.
|
inlinevirtual |
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 284 of file table_walker.hh.
References gem5::ArmISA::TableWalker::L1Descriptor::domain(), and l1Parent.
|
inlinevirtual |
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 274 of file table_walker.hh.
References data.
|
inlinevirtual |
Is the translation global (no asid used)?
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 318 of file table_walker.hh.
References gem5::bits(), and data.
|
inline |
Is the entry invalid.
Definition at line 300 of file table_walker.hh.
References gem5::bits(), and data.
Referenced by gem5::ArmISA::TableWalker::doL2Descriptor().
|
inline |
What is the size of the mapping?
Definition at line 306 of file table_walker.hh.
References gem5::bits(), and data.
Referenced by offsetBits(), paddr(), pfn(), texcb(), and xn().
|
inlinevirtual |
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 294 of file table_walker.hh.
References large().
Return complete physical address given a VA.
Definition at line 344 of file table_walker.hh.
References data, large(), gem5::mbits(), and gem5::ArmISA::va.
|
inlinevirtual |
Return the physical frame, bits shifted right.
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 338 of file table_walker.hh.
References gem5::bits(), data, and large().
|
inlinevirtual |
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 289 of file table_walker.hh.
References gem5::ArmISA::TableWalker::currState, l1Parent, and gem5::ArmISA::TableWalker::L1Descriptor::secure().
|
inline |
Set access flag that this entry has been touched.
Mark the entry as requiring a writeback, in the future.
Definition at line 361 of file table_walker.hh.
|
inlinevirtual |
If the section is shareable.
See texcb() comment.
Reimplemented from gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 353 of file table_walker.hh.
References gem5::bits(), and data.
|
inlinevirtual |
Memory region attributes: ARM DDI 0406B: B3-32.
Reimplemented from gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 330 of file table_walker.hh.
References gem5::bits(), data, and large().
|
inlinevirtual |
Is execution allowed on this mapping?
Implements gem5::ArmISA::TableWalker::DescriptorBase.
Definition at line 312 of file table_walker.hh.
References gem5::bits(), data, and large().
| bool gem5::ArmISA::TableWalker::L2Descriptor::_dirty |
This entry has been modified (access flag set) and needs to be written back to memory.
Definition at line 260 of file table_walker.hh.
| uint32_t gem5::ArmISA::TableWalker::L2Descriptor::data |
The raw bits of the entry.
Definition at line 255 of file table_walker.hh.
Referenced by ap(), gem5::ArmISA::TableWalker::doL1Descriptor(), gem5::ArmISA::TableWalker::doL2Descriptor(), getRawData(), global(), invalid(), large(), paddr(), pfn(), setAp0(), shareable(), texcb(), and xn().
| L1Descriptor* gem5::ArmISA::TableWalker::L2Descriptor::l1Parent |
Definition at line 256 of file table_walker.hh.