gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::ArmISA::TableWalker Class Reference

#include <table_walker.hh>

Inheritance diagram for gem5::ArmISA::TableWalker:
gem5::ClockedObject gem5::SimObject gem5::Clocked gem5::EventManager gem5::Serializable gem5::Drainable gem5::statistics::Group gem5::Named

Classes

class  DescriptorBase
 
class  L1Descriptor
 
class  L2Descriptor
 Level 2 page table descriptor. More...
 
class  LongDescriptor
 Long-descriptor format (LPAE) More...
 
class  Port
 
class  Stage2Walk
 This translation class is used to trigger the data fetch once a timing translation returns the translated physical address. More...
 
class  TableWalkerState
 
struct  TableWalkerStats
 Statistics. More...
 
class  WalkerState
 

Public Member Functions

Fault readDataUntimed (ThreadContext *tc, Addr vaddr, Addr desc_addr, uint8_t *data, int num_bytes, Request::Flags flags, BaseMMU::Mode mode, MMU::ArmTranslationType tran_type, bool functional)
 
void readDataTimed (ThreadContext *tc, Addr desc_addr, Stage2Walk *translation, int num_bytes, Request::Flags flags)
 
 PARAMS (ArmTableWalker)
 
 TableWalker (const Params &p)
 
virtual ~TableWalker ()
 
bool haveLargeAsid64 () const
 
uint8_t physAddrRange () const
 
void completeDrain ()
 Checks if all state is cleared and if so, completes drain.
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining.
 
void drainResume () override
 Resume execution after a successful drain.
 
gem5::PortgetPort (const std::string &if_name, PortID idx=InvalidPortID) override
 Get a port with a given name and index.
 
PortgetTableWalkerPort ()
 
Fault walk (const RequestPtr &req, ThreadContext *tc, uint16_t asid, vmid_t _vmid, BaseMMU::Mode mode, BaseMMU::Translation *_trans, bool timing, bool functional, SecurityState ss, PASpace ipaspace, MMU::ArmTranslationType tran_type, bool stage2, const TlbEntry *walk_entry)
 
void setMmu (MMU *_mmu)
 
void setTlb (TLB *_tlb)
 
TLBgetTlb ()
 
void memAttrs (ThreadContext *tc, TlbEntry &te, SCTLR sctlr, uint8_t texcb, bool s)
 
void memAttrsLPAE (ThreadContext *tc, TlbEntry &te, LongDescriptor &lDescriptor)
 
void memAttrsAArch64 (ThreadContext *tc, TlbEntry &te, LongDescriptor &lDescriptor)
 
void memAttrsWalkAArch64 (TlbEntry &te)
 
bool uncacheableFromAttrs (uint8_t attrs)
 
void setTestInterface (TlbTestInterface *ti)
 
Fault testWalk (const RequestPtr &walk_req, DomainType domain, LookupLevel lookup_level)
 
- Public Member Functions inherited from gem5::ClockedObject
 ClockedObject (const ClockedObjectParams &p)
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- Public Member Functions inherited from gem5::SimObject
const Paramsparams () const
 
 SimObject (const Params &p)
 
virtual ~SimObject ()
 
virtual void init ()
 init() is called after all C++ SimObjects have been created and all ports are connected.
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint.
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint.
 
virtual void regProbePoints ()
 Register probe points for this object.
 
virtual void regProbeListeners ()
 Register probe listeners for this object.
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object.
 
virtual void startup ()
 startup() is the final initialization call before simulation.
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes.
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers.
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- Public Member Functions inherited from gem5::EventManager
EventQueueeventQueue () const
 
void schedule (Event &event, Tick when)
 
void deschedule (Event &event)
 
void reschedule (Event &event, Tick when, bool always=false)
 
void schedule (Event *event, Tick when)
 
void deschedule (Event *event)
 
void reschedule (Event *event, Tick when, bool always=false)
 
void wakeupEventQueue (Tick when=(Tick) -1)
 This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers.
 
void setCurTick (Tick newVal)
 
 EventManager (EventManager &em)
 Event manger manages events in the event queue.
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section.
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object.
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 
- Public Member Functions inherited from gem5::Drainable
DrainState drainState () const
 Return the current drain state of an object.
 
virtual void notifyFork ()
 Notify a child process of a fork.
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters.
 
virtual void resetStats ()
 Callback to reset stats.
 
virtual void preDumpStats ()
 Callback before stats are dumped.
 
void addStat (statistics::Info *info)
 Register a stat with this group.
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from gem5::Named
 Named (std::string_view name_)
 
virtual ~Named ()=default
 
virtual std::string name () const
 
- Public Member Functions inherited from gem5::Clocked
void updateClockPeriod ()
 Update the tick to the current tick.
 
Tick clockEdge (Cycles cycles=Cycles(0)) const
 Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle.
 
Cycles curCycle () const
 Determine the current cycle, corresponding to a tick aligned to a clock edge.
 
Tick nextCycle () const
 Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future.
 
uint64_t frequency () const
 
Tick clockPeriod () const
 
double voltage () const
 
Cycles ticksToCycles (Tick t) const
 
Tick cyclesToTicks (Cycles c) const
 

Static Public Member Functions

static LookupLevel toLookupLevel (uint8_t lookup_level_as_int)
 
- Static Public Member Functions inherited from gem5::SimObject
static void serializeAll (const std::string &cpt_dir)
 Create a checkpoint by serializing all SimObjects in the system.
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it.
 
static void setSimObjectResolver (SimObjectResolver *resolver)
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
static SimObjectResolvergetSimObjectResolver ()
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section.
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.
 

Public Attributes

TlbTestInterfacetest
 
- Public Attributes inherited from gem5::ClockedObject
PowerStatepowerState
 

Protected Attributes

std::list< WalkerState * > stateQueues [LookupLevel::Num_ArmLookupLevel]
 Queues of requests for all the different lookup levels.
 
std::list< WalkerState * > pendingQueue
 Queue of requests that have passed are waiting because the walker is currently busy.
 
MMUmmu
 The MMU to forward second stage look upts to.
 
RequestorID requestorId
 Requestor id assigned by the MMU.
 
Portport
 Port shared by the two table walkers.
 
const bool isStage2
 Indicates whether this table walker is part of the stage 2 mmu.
 
TLBtlb
 TLB that is initiating these table walks.
 
SCTLR sctlr
 Cached copy of the sctlr as it existed when translation began.
 
WalkerStatecurrState
 
bool pending
 If a timing translation is currently in progress.
 
unsigned numSquashable
 The number of walks belonging to squashed instructions that can be removed from the pendingQueue per cycle.
 
const ArmReleaserelease
 Cached copies of system-level properties.
 
uint8_t _physAddrRange
 
bool _haveLargeAsid64
 
gem5::ArmISA::TableWalker::TableWalkerStats stats
 
unsigned pendingReqs
 
Tick pendingChangeTick
 
- Protected Attributes inherited from gem5::SimObject
const SimObjectParams & _params
 Cached copy of the object parameters.
 
- Protected Attributes inherited from gem5::EventManager
EventQueueeventq
 A pointer to this object's event queue.
 

Static Protected Attributes

static const unsigned REQUESTED = 0
 
static const unsigned COMPLETED = 1
 

Private Types

using LookupLevel = enums::ArmLookupLevel
 

Private Member Functions

void doL1Descriptor ()
 
void doL1DescriptorWrapper ()
 
void doL2Descriptor ()
 
void doL2DescriptorWrapper ()
 
void doLongDescriptor ()
 
void doL0LongDescriptorWrapper ()
 
void doL1LongDescriptorWrapper ()
 
void doL2LongDescriptorWrapper ()
 
void doL3LongDescriptorWrapper ()
 
void doLongDescriptorWrapper (LookupLevel curr_lookup_level)
 
void fetchDescriptor (Addr desc_addr, DescriptorBase &descriptor, int num_bytes, Request::Flags flags, LookupLevel lookup_lvl, Event *event, void(TableWalker::*doDescriptor)())
 
Fault generateLongDescFault (ArmFault::FaultSource src)
 
void insertTableEntry (DescriptorBase &descriptor, bool longDescriptor)
 
void insertPartialTableEntry (LongDescriptor &descriptor)
 
std::tuple< Addr, Addr, LookupLevelwalkAddresses (Addr ttbr, GrainSize tg, int tsz, int pa_range)
 Returns a tuple made of: 1) The address of the first page table 2) The address of the first descriptor within the table 3) The page table level.
 
Fault processWalk ()
 
Fault processWalkLPAE ()
 
Addr maxTxSz (GrainSize tg) const
 
Addr s1MinTxSz (GrainSize tg) const
 
bool s1TxSzFault (GrainSize tg, int tsz) const
 
bool checkVAOutOfRange (Addr addr, int top_bit, int tsz, bool low_range)
 
bool checkAddrSizeFaultAArch64 (Addr addr, int pa_range)
 Returns true if the address exceeds the range permitted by the system-wide setting or by the TCR_ELx IPS/PS setting.
 
bool uncacheableWalk () const
 Returns true if the table walk should be uncacheable.
 
Fault processWalkAArch64 ()
 
void processWalkWrapper ()
 
void nextWalk (ThreadContext *tc)
 
void pendingChange ()
 
void stashCurrState (int queue_idx)
 Timing mode: saves the currState into the stateQueues.
 
void mpamTagTableWalk (RequestPtr &req) const
 

Static Private Member Functions

static uint8_t pageSizeNtoStatBin (uint8_t N)
 

Private Attributes

EventFunctionWrapper doL1DescEvent
 
EventFunctionWrapper doL2DescEvent
 
EventFunctionWrapper doL0LongDescEvent
 
EventFunctionWrapper doL1LongDescEvent
 
EventFunctionWrapper doL2LongDescEvent
 
EventFunctionWrapper doL3LongDescEvent
 
EventLongDescEventByLevel [4]
 
EventFunctionWrapper doProcessEvent
 

Additional Inherited Members

- Public Types inherited from gem5::ClockedObject
using Params = ClockedObjectParams
 Parameters of ClockedObject.
 
- Public Types inherited from gem5::SimObject
typedef SimObjectParams Params
 
- Protected Member Functions inherited from gem5::Drainable
 Drainable ()
 
virtual ~Drainable ()
 
void signalDrainDone () const
 Signal that an object is drained.
 
- Protected Member Functions inherited from gem5::Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters.
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (Clocked &)=delete
 
virtual ~Clocked ()
 Virtual destructor due to inheritance.
 
void resetClock () const
 Reset the object's clock using the current global tick value.
 
virtual void clockPeriodUpdated ()
 A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed.
 

Detailed Description

Definition at line 66 of file table_walker.hh.

Member Typedef Documentation

◆ LookupLevel

using gem5::ArmISA::TableWalker::LookupLevel = enums::ArmLookupLevel
private

Definition at line 68 of file table_walker.hh.

Constructor & Destructor Documentation

◆ TableWalker()

◆ ~TableWalker()

gem5::TableWalker::~TableWalker ( )
virtual

Definition at line 100 of file table_walker.cc.

Member Function Documentation

◆ checkAddrSizeFaultAArch64()

bool gem5::TableWalker::checkAddrSizeFaultAArch64 ( Addr addr,
int pa_range )
private

Returns true if the address exceeds the range permitted by the system-wide setting or by the TCR_ELx IPS/PS setting.

Definition at line 913 of file table_walker.cc.

References _physAddrRange, gem5::X86ISA::addr, and gem5::bits().

Referenced by doLongDescriptor(), and processWalkAArch64().

◆ checkVAOutOfRange()

bool gem5::TableWalker::checkVAOutOfRange ( Addr addr,
int top_bit,
int tsz,
bool low_range )
private

Definition at line 905 of file table_walker.cc.

References gem5::bits(), currState, gem5::ArmISA::mask, and gem5::MipsISA::vaddr.

Referenced by processWalkAArch64().

◆ completeDrain()

void gem5::TableWalker::completeDrain ( )

Checks if all state is cleared and if so, completes drain.

Definition at line 240 of file table_walker.cc.

References DPRINTF, gem5::Draining, gem5::Drainable::drainState(), pendingQueue, gem5::Drainable::signalDrainDone(), and stateQueues.

Referenced by nextWalk().

◆ doL0LongDescriptorWrapper()

void gem5::TableWalker::doL0LongDescriptorWrapper ( )
private

Definition at line 2098 of file table_walker.cc.

References doLongDescriptorWrapper().

◆ doL1Descriptor()

◆ doL1DescriptorWrapper()

void gem5::TableWalker::doL1DescriptorWrapper ( )
private

◆ doL1LongDescriptorWrapper()

void gem5::TableWalker::doL1LongDescriptorWrapper ( )
private

Definition at line 2104 of file table_walker.cc.

References doLongDescriptorWrapper().

◆ doL2Descriptor()

void gem5::TableWalker::doL2Descriptor ( )
private
Todo
: check sctlr.ha (bit[17]) if Hardware Access Flag is enabled if set, do l2.Desc.setAp0() instead of generating AccessFlag0

Definition at line 1936 of file table_walker.cc.

References gem5::ArmISA::ArmFault::AccessFlagLL, gem5::bits(), gem5::ArmISA::byteOrder(), currState, DPRINTF, gem5::htog(), insertTableEntry(), isStage2, gem5::ArmISA::NoAccess, gem5::NoFault, gem5::ArmISA::te, gem5::ArmISA::ArmFault::TranslationLL, and gem5::ArmISA::VmsaTran.

Referenced by doL1Descriptor(), and doL2DescriptorWrapper().

◆ doL2DescriptorWrapper()

void gem5::TableWalker::doL2DescriptorWrapper ( )
private

◆ doL2LongDescriptorWrapper()

void gem5::TableWalker::doL2LongDescriptorWrapper ( )
private

Definition at line 2110 of file table_walker.cc.

References doLongDescriptorWrapper().

◆ doL3LongDescriptorWrapper()

void gem5::TableWalker::doL3LongDescriptorWrapper ( )
private

Definition at line 2116 of file table_walker.cc.

References doLongDescriptorWrapper().

◆ doLongDescriptor()

◆ doLongDescriptorWrapper()

◆ drain()

DrainState gem5::TableWalker::drain ( )
overridevirtual

Provide a default implementation of the drain interface for objects that don't need draining.

Reimplemented from gem5::SimObject.

Definition at line 255 of file table_walker.cc.

References DPRINTF, gem5::Drained, gem5::Draining, gem5::ArmISA::i, pendingQueue, and stateQueues.

◆ drainResume()

void gem5::TableWalker::drainResume ( )
overridevirtual

Resume execution after a successful drain.

Reimplemented from gem5::Drainable.

Definition at line 276 of file table_walker.cc.

References currState, gem5::SimObject::params(), and pendingChange().

◆ fetchDescriptor()

◆ generateLongDescFault()

Fault gem5::TableWalker::generateLongDescFault ( ArmFault::FaultSource src)
private

Definition at line 1759 of file table_walker.cc.

References currState, isStage2, gem5::ArmISA::LpaeTran, and gem5::ArmISA::NoAccess.

Referenced by doLongDescriptor().

◆ getPort()

Port & gem5::TableWalker::getPort ( const std::string & if_name,
PortID idx = InvalidPortID )
overridevirtual

Get a port with a given name and index.

This is used at binding time and returns a reference to a protocol-agnostic port.

gem5 has a request and response port interface. All memory objects are connected together via ports. These ports provide a rigid interface between these memory objects. These ports implement three different memory system modes: timing, atomic, and functional. The most important mode is the timing mode and here timing mode is used for conducting cycle-level timing experiments. The other modes are only used in special circumstances and should not be used to conduct cycle-level timing experiments. The other modes are only used in special circumstances. These ports allow SimObjects to communicate with each other.

Parameters
if_namePort name
idxIndex in the case of a VectorPort
Returns
A reference to the given port

Reimplemented from gem5::SimObject.

Definition at line 112 of file table_walker.cc.

References gem5::SimObject::getPort(), and port.

Referenced by getTableWalkerPort().

◆ getTableWalkerPort()

TableWalker::Port & gem5::TableWalker::getTableWalkerPort ( )

Definition at line 106 of file table_walker.cc.

References getPort().

◆ getTlb()

TLB * gem5::ArmISA::TableWalker::getTlb ( )
inline

Definition at line 1173 of file table_walker.hh.

References tlb.

◆ haveLargeAsid64()

bool gem5::ArmISA::TableWalker::haveLargeAsid64 ( ) const
inline

Definition at line 1151 of file table_walker.hh.

References _haveLargeAsid64.

◆ insertPartialTableEntry()

◆ insertTableEntry()

◆ maxTxSz()

Addr gem5::TableWalker::maxTxSz ( GrainSize tg) const
private

◆ memAttrs()

◆ memAttrsAArch64()

◆ memAttrsLPAE()

◆ memAttrsWalkAArch64()

void gem5::TableWalker::memAttrsWalkAArch64 ( TlbEntry & te)

◆ mpamTagTableWalk()

void gem5::TableWalker::mpamTagTableWalk ( RequestPtr & req) const
private

Definition at line 2522 of file table_walker.cc.

References currState, and gem5::ArmISA::mpam::tagRequest().

Referenced by fetchDescriptor().

◆ nextWalk()

◆ pageSizeNtoStatBin()

uint8_t gem5::TableWalker::pageSizeNtoStatBin ( uint8_t N)
staticprivate

Definition at line 2459 of file table_walker.cc.

References panic.

Referenced by insertTableEntry().

◆ PARAMS()

gem5::ArmISA::TableWalker::PARAMS ( ArmTableWalker )

References gem5::MipsISA::p.

◆ pendingChange()

void gem5::TableWalker::pendingChange ( )
private

◆ physAddrRange()

uint8_t gem5::ArmISA::TableWalker::physAddrRange ( ) const
inline

Definition at line 1152 of file table_walker.hh.

References _physAddrRange.

◆ processWalk()

◆ processWalkAArch64()

◆ processWalkLPAE()

◆ processWalkWrapper()

◆ readDataTimed()

void gem5::TableWalker::readDataTimed ( ThreadContext * tc,
Addr desc_addr,
Stage2Walk * translation,
int num_bytes,
Request::Flags flags )

◆ readDataUntimed()

◆ s1MinTxSz()

Addr gem5::TableWalker::s1MinTxSz ( GrainSize tg) const
private

Definition at line 861 of file table_walker.cc.

References currState, gem5::ArmISA::Grain64KB, and gem5::ArmISA::HaveExt().

Referenced by s1TxSzFault().

◆ s1TxSzFault()

bool gem5::TableWalker::s1TxSzFault ( GrainSize tg,
int tsz ) const
private

Definition at line 896 of file table_walker.cc.

References maxTxSz(), and s1MinTxSz().

Referenced by processWalkAArch64().

◆ setMmu()

void gem5::TableWalker::setMmu ( MMU * _mmu)

Definition at line 121 of file table_walker.cc.

References mmu, and release.

◆ setTestInterface()

void gem5::TableWalker::setTestInterface ( TlbTestInterface * ti)

Definition at line 2453 of file table_walker.cc.

References test, and gem5::MipsISA::ti.

◆ setTlb()

void gem5::ArmISA::TableWalker::setTlb ( TLB * _tlb)
inline

Definition at line 1172 of file table_walker.hh.

References tlb.

◆ stashCurrState()

void gem5::TableWalker::stashCurrState ( int queue_idx)
private

Timing mode: saves the currState into the stateQueues.

Definition at line 2263 of file table_walker.cc.

References currState, DPRINTF, and stateQueues.

Referenced by doL1DescriptorWrapper(), doLongDescriptorWrapper(), processWalkWrapper(), and walk().

◆ testWalk()

Fault gem5::TableWalker::testWalk ( const RequestPtr & walk_req,
DomainType domain,
LookupLevel lookup_level )

◆ toLookupLevel()

TableWalker::LookupLevel gem5::TableWalker::toLookupLevel ( uint8_t lookup_level_as_int)
static

Definition at line 2406 of file table_walker.cc.

References panic.

◆ uncacheableFromAttrs()

bool gem5::TableWalker::uncacheableFromAttrs ( uint8_t attrs)

Definition at line 1537 of file table_walker.cc.

References gem5::bits().

Referenced by memAttrsAArch64().

◆ uncacheableWalk()

bool gem5::TableWalker::uncacheableWalk ( ) const
private

Returns true if the table walk should be uncacheable.

Definition at line 286 of file table_walker.cc.

References currState, and isStage2.

Referenced by memAttrsWalkAArch64(), processWalk(), processWalkAArch64(), and processWalkLPAE().

◆ walk()

Fault gem5::TableWalker::walk ( const RequestPtr & req,
ThreadContext * tc,
uint16_t asid,
vmid_t _vmid,
BaseMMU::Mode mode,
BaseMMU::Translation * _trans,
bool timing,
bool functional,
SecurityState ss,
PASpace ipaspace,
MMU::ArmTranslationType tran_type,
bool stage2,
const TlbEntry * walk_entry )

◆ walkAddresses()

std::tuple< Addr, Addr, TableWalker::LookupLevel > gem5::TableWalker::walkAddresses ( Addr ttbr,
GrainSize tg,
int tsz,
int pa_range )
private

Returns a tuple made of: 1) The address of the first page table 2) The address of the first descriptor within the table 3) The page table level.

Definition at line 1154 of file table_walker.cc.

References gem5::ArmISA::TlbEntry::ap, gem5::bits(), currState, DPRINTF, gem5::ArmISA::getPageTableOps(), isStage2, gem5::ArmISA::TlbEntry::lookupLevel, gem5::mbits(), panic_if, gem5::ArmISA::TlbEntry::pfn, gem5::ArmISA::TlbEntry::pxn, gem5::ArmISA::stride, gem5::ArmISA::TlbEntry::xn, and gem5::ArmISA::z.

Referenced by processWalkAArch64().

Member Data Documentation

◆ _haveLargeAsid64

bool gem5::ArmISA::TableWalker::_haveLargeAsid64
protected

Definition at line 1119 of file table_walker.hh.

Referenced by haveLargeAsid64().

◆ _physAddrRange

uint8_t gem5::ArmISA::TableWalker::_physAddrRange
protected

◆ COMPLETED

const unsigned gem5::ArmISA::TableWalker::COMPLETED = 1
staticprotected

Definition at line 1144 of file table_walker.hh.

Referenced by insertTableEntry().

◆ currState

◆ doL0LongDescEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doL0LongDescEvent
private

Definition at line 1198 of file table_walker.hh.

◆ doL1DescEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doL1DescEvent
private

Definition at line 1189 of file table_walker.hh.

Referenced by processWalk(), and TableWalker().

◆ doL1LongDescEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doL1LongDescEvent
private

Definition at line 1200 of file table_walker.hh.

◆ doL2DescEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doL2DescEvent
private

Definition at line 1193 of file table_walker.hh.

Referenced by doL1Descriptor().

◆ doL2LongDescEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doL2LongDescEvent
private

Definition at line 1202 of file table_walker.hh.

◆ doL3LongDescEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doL3LongDescEvent
private

Definition at line 1204 of file table_walker.hh.

◆ doProcessEvent

EventFunctionWrapper gem5::ArmISA::TableWalker::doProcessEvent
private

Definition at line 1245 of file table_walker.hh.

Referenced by nextWalk().

◆ isStage2

◆ LongDescEventByLevel

Event* gem5::ArmISA::TableWalker::LongDescEventByLevel[4]
private

Definition at line 1207 of file table_walker.hh.

Referenced by doLongDescriptor(), processWalkAArch64(), and processWalkLPAE().

◆ mmu

MMU* gem5::ArmISA::TableWalker::mmu
protected

◆ numSquashable

unsigned gem5::ArmISA::TableWalker::numSquashable
protected

The number of walks belonging to squashed instructions that can be removed from the pendingQueue per cycle.

Definition at line 1114 of file table_walker.hh.

Referenced by processWalkWrapper(), and TableWalker().

◆ pending

bool gem5::ArmISA::TableWalker::pending
protected

If a timing translation is currently in progress.

Definition at line 1110 of file table_walker.hh.

Referenced by doL1DescriptorWrapper(), doL2DescriptorWrapper(), doLongDescriptorWrapper(), processWalkWrapper(), TableWalker(), and walk().

◆ pendingChangeTick

Tick gem5::ArmISA::TableWalker::pendingChangeTick
mutableprotected

Definition at line 1141 of file table_walker.hh.

Referenced by pendingChange(), and TableWalker().

◆ pendingQueue

std::list<WalkerState *> gem5::ArmISA::TableWalker::pendingQueue
protected

Queue of requests that have passed are waiting because the walker is currently busy.

Definition at line 1087 of file table_walker.hh.

Referenced by completeDrain(), drain(), nextWalk(), pendingChange(), processWalkWrapper(), and walk().

◆ pendingReqs

unsigned gem5::ArmISA::TableWalker::pendingReqs
mutableprotected

Definition at line 1140 of file table_walker.hh.

Referenced by pendingChange(), and TableWalker().

◆ port

Port* gem5::ArmISA::TableWalker::port
protected

Port shared by the two table walkers.

Definition at line 1096 of file table_walker.hh.

Referenced by fetchDescriptor(), getPort(), readDataUntimed(), and TableWalker().

◆ release

const ArmRelease* gem5::ArmISA::TableWalker::release
protected

Cached copies of system-level properties.

Definition at line 1117 of file table_walker.hh.

Referenced by insertPartialTableEntry(), insertTableEntry(), memAttrsLPAE(), processWalk(), setMmu(), TableWalker(), and walk().

◆ REQUESTED

const unsigned gem5::ArmISA::TableWalker::REQUESTED = 0
staticprotected

Definition at line 1143 of file table_walker.hh.

Referenced by walk().

◆ requestorId

RequestorID gem5::ArmISA::TableWalker::requestorId
protected

Requestor id assigned by the MMU.

Definition at line 1093 of file table_walker.hh.

Referenced by fetchDescriptor(), readDataTimed(), readDataUntimed(), gem5::ArmISA::TableWalker::Stage2Walk::setVirt(), and TableWalker().

◆ sctlr

SCTLR gem5::ArmISA::TableWalker::sctlr
protected

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

Definition at line 1105 of file table_walker.hh.

Referenced by memAttrs(), and walk().

◆ stateQueues

std::list<WalkerState *> gem5::ArmISA::TableWalker::stateQueues[LookupLevel::Num_ArmLookupLevel]
protected

Queues of requests for all the different lookup levels.

Definition at line 1083 of file table_walker.hh.

Referenced by completeDrain(), doL1DescriptorWrapper(), doL2DescriptorWrapper(), doLongDescriptorWrapper(), drain(), and stashCurrState().

◆ stats

◆ test

TlbTestInterface* gem5::ArmISA::TableWalker::test

Definition at line 1259 of file table_walker.hh.

Referenced by setTestInterface(), and testWalk().

◆ tlb

TLB* gem5::ArmISA::TableWalker::tlb
protected

TLB that is initiating these table walks.

Definition at line 1102 of file table_walker.hh.

Referenced by getTlb(), insertPartialTableEntry(), insertTableEntry(), setTlb(), and TableWalker().


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

Generated on Mon May 26 2025 09:19:29 for gem5 by doxygen 1.13.2