gem5  v20.1.0.0
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ARMArchTLB Class Reference

#include <smmu_v3_caches.hh>

Inheritance diagram for ARMArchTLB:
SMMUv3BaseCache

Classes

struct  Entry
 

Public Member Functions

 ARMArchTLB (unsigned numEntries, unsigned _associativity, const std::string &policy)
 
virtual ~ARMArchTLB ()
 
const Entrylookup (Addr va, uint16_t asid, uint16_t vmid, bool updStats=true)
 
void store (const Entry &incoming)
 
void invalidateVA (Addr va, uint16_t asid, uint16_t vmid)
 
void invalidateVAA (Addr va, uint16_t vmid)
 
void invalidateASID (uint16_t asid, uint16_t vmid)
 
void invalidateVMID (uint16_t vmid)
 
void invalidateAll ()
 
- Public Member Functions inherited from SMMUv3BaseCache
 SMMUv3BaseCache (const std::string &policy_name, uint32_t seed)
 
virtual ~SMMUv3BaseCache ()
 
virtual void regStats (const std::string &name)
 

Private Types

typedef std::vector< EntrySet
 

Private Member Functions

size_t pickSetIdx (Addr va, uint16_t asid, uint16_t vmid) const
 
size_t pickEntryIdxToReplace (const Set &set)
 

Private Attributes

std::vector< Setsets
 
size_t associativity
 

Additional Inherited Members

- Static Protected Member Functions inherited from SMMUv3BaseCache
static int decodePolicyName (const std::string &policy_name)
 
- Protected Attributes inherited from SMMUv3BaseCache
int replacementPolicy
 
size_t nextToReplace
 
Random random
 
uint32_t useStamp
 
Stats::Formula averageLookups
 
Stats::Scalar totalLookups
 
Stats::Formula averageMisses
 
Stats::Scalar totalMisses
 
Stats::Formula averageUpdates
 
Stats::Scalar totalUpdates
 
Stats::Formula averageHitRate
 
Stats::Scalar insertions
 

Detailed Description

Definition at line 150 of file smmu_v3_caches.hh.

Member Typedef Documentation

◆ Set

typedef std::vector<Entry> ARMArchTLB::Set
private

Definition at line 185 of file smmu_v3_caches.hh.

Constructor & Destructor Documentation

◆ ARMArchTLB()

ARMArchTLB::ARMArchTLB ( unsigned  numEntries,
unsigned  _associativity,
const std::string &  policy 
)

Definition at line 426 of file smmu_v3_caches.cc.

References associativity, ArmISA::e, fatal, and sets.

◆ ~ARMArchTLB()

virtual ARMArchTLB::~ARMArchTLB ( )
inlinevirtual

Definition at line 171 of file smmu_v3_caches.hh.

Member Function Documentation

◆ invalidateAll()

void ARMArchTLB::invalidateAll ( )

Definition at line 571 of file smmu_v3_caches.cc.

References ArmISA::i, ArmISA::s, and sets.

Referenced by SMMUv3::processCommand().

◆ invalidateASID()

void ARMArchTLB::invalidateASID ( uint16_t  asid,
uint16_t  vmid 
)

Definition at line 541 of file smmu_v3_caches.cc.

References ArmISA::asid, ArmISA::e, ArmISA::i, ArmISA::s, and sets.

Referenced by SMMUv3::processCommand().

◆ invalidateVA()

void ARMArchTLB::invalidateVA ( Addr  va,
uint16_t  asid,
uint16_t  vmid 
)

Definition at line 510 of file smmu_v3_caches.cc.

References ArmISA::asid, ArmISA::e, ArmISA::i, pickSetIdx(), sets, and ArmISA::va.

Referenced by SMMUv3::processCommand().

◆ invalidateVAA()

void ARMArchTLB::invalidateVAA ( Addr  va,
uint16_t  vmid 
)

Definition at line 526 of file smmu_v3_caches.cc.

References ArmISA::e, ArmISA::i, ArmISA::s, sets, and ArmISA::va.

Referenced by SMMUv3::processCommand().

◆ invalidateVMID()

void ARMArchTLB::invalidateVMID ( uint16_t  vmid)

Definition at line 556 of file smmu_v3_caches.cc.

References ArmISA::e, ArmISA::i, ArmISA::s, and sets.

Referenced by SMMUv3::processCommand().

◆ lookup()

const ARMArchTLB::Entry * ARMArchTLB::lookup ( Addr  va,
uint16_t  asid,
uint16_t  vmid,
bool  updStats = true 
)

◆ pickEntryIdxToReplace()

size_t ARMArchTLB::pickEntryIdxToReplace ( const Set set)
private

◆ pickSetIdx()

size_t ARMArchTLB::pickSetIdx ( Addr  va,
uint16_t  asid,
uint16_t  vmid 
) const
private

Definition at line 582 of file smmu_v3_caches.cc.

References ArmISA::asid, sets, and ArmISA::va.

Referenced by invalidateVA(), lookup(), and store().

◆ store()

void ARMArchTLB::store ( const Entry incoming)

Member Data Documentation

◆ associativity

size_t ARMArchTLB::associativity
private

Definition at line 188 of file smmu_v3_caches.hh.

Referenced by ARMArchTLB(), and pickEntryIdxToReplace().

◆ sets

std::vector<Set> ARMArchTLB::sets
private

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

Generated on Wed Sep 30 2020 14:02:20 for gem5 by doxygen 1.8.17