gem5 v24.0.0.0
|
#include <smmu_v3_caches.hh>
Classes | |
struct | Entry |
Public Types | |
enum | AllocPolicy { ALLOC_ANY_WAY , ALLOC_ANY_BUT_LAST_WAY , ALLOC_LAST_WAY } |
Public Member Functions | |
SMMUTLB (unsigned numEntries, unsigned _associativity, const std::string &policy, statistics::Group *parent, const std::string &name) | |
SMMUTLB (const SMMUTLB &tlb)=delete | |
virtual | ~SMMUTLB () |
const Entry * | lookup (uint32_t sid, uint32_t ssid, Addr va, bool updStats=true) |
const Entry * | lookupAnyVA (uint32_t sid, uint32_t ssid, bool updStats=true) |
void | store (const Entry &incoming, AllocPolicy alloc) |
void | invalidateSSID (uint32_t sid, uint32_t ssid) |
void | invalidateSID (uint32_t sid) |
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 gem5::SMMUv3BaseCache | |
SMMUv3BaseCache (const std::string &policy_name, uint32_t seed, statistics::Group *parent, const std::string &name) | |
virtual | ~SMMUv3BaseCache () |
Private Types | |
typedef std::vector< Entry > | Set |
Private Member Functions | |
size_t | pickSetIdx (uint32_t sid, uint32_t ssid) const |
size_t | pickSetIdx (Addr va) const |
size_t | pickEntryIdxToReplace (const Set &set, AllocPolicy alloc) |
Private Attributes | |
std::vector< Set > | sets |
size_t | associativity |
Additional Inherited Members | |
Static Protected Member Functions inherited from gem5::SMMUv3BaseCache | |
static int | decodePolicyName (const std::string &policy_name) |
Protected Attributes inherited from gem5::SMMUv3BaseCache | |
int | replacementPolicy |
size_t | nextToReplace |
Random | random |
uint32_t | useStamp |
gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats | baseCacheStats |
Definition at line 99 of file smmu_v3_caches.hh.
|
private |
Definition at line 151 of file smmu_v3_caches.hh.
Enumerator | |
---|---|
ALLOC_ANY_WAY | |
ALLOC_ANY_BUT_LAST_WAY | |
ALLOC_LAST_WAY |
Definition at line 102 of file smmu_v3_caches.hh.
gem5::SMMUTLB::SMMUTLB | ( | unsigned | numEntries, |
unsigned | _associativity, | ||
const std::string & | policy, | ||
statistics::Group * | parent, | ||
const std::string & | name ) |
Definition at line 153 of file smmu_v3_caches.cc.
References associativity, gem5::ArmISA::e, fatal, gem5::ArmISA::set, sets, and gem5::SMMUTLB::Entry::valid.
|
delete |
|
inlinevirtual |
Definition at line 134 of file smmu_v3_caches.hh.
void gem5::SMMUTLB::invalidateAll | ( | ) |
Definition at line 353 of file smmu_v3_caches.cc.
References gem5::ArmISA::i, gem5::ArmISA::s, gem5::ArmISA::set, and sets.
void gem5::SMMUTLB::invalidateASID | ( | uint16_t | asid, |
uint16_t | vmid ) |
Definition at line 323 of file smmu_v3_caches.cc.
References gem5::ArmISA::asid, gem5::ArmISA::e, gem5::ArmISA::i, gem5::ArmISA::s, gem5::ArmISA::set, sets, and gem5::SMMUTLB::Entry::valid.
void gem5::SMMUTLB::invalidateSID | ( | uint32_t | sid | ) |
Definition at line 279 of file smmu_v3_caches.cc.
References gem5::ArmISA::e, gem5::ArmISA::i, gem5::ArmISA::s, gem5::ArmISA::set, sets, and gem5::SMMUTLB::Entry::valid.
void gem5::SMMUTLB::invalidateSSID | ( | uint32_t | sid, |
uint32_t | ssid ) |
Definition at line 266 of file smmu_v3_caches.cc.
References gem5::ArmISA::e, gem5::ArmISA::i, pickSetIdx(), gem5::ArmISA::set, sets, and gem5::SMMUTLB::Entry::valid.
void gem5::SMMUTLB::invalidateVA | ( | Addr | va, |
uint16_t | asid, | ||
uint16_t | vmid ) |
Definition at line 294 of file smmu_v3_caches.cc.
References gem5::ArmISA::asid, gem5::ArmISA::e, gem5::ArmISA::i, pickSetIdx(), gem5::ArmISA::set, sets, gem5::ArmISA::va, and gem5::SMMUTLB::Entry::valid.
void gem5::SMMUTLB::invalidateVAA | ( | Addr | va, |
uint16_t | vmid ) |
Definition at line 310 of file smmu_v3_caches.cc.
References gem5::ArmISA::e, gem5::ArmISA::i, pickSetIdx(), gem5::ArmISA::set, sets, gem5::ArmISA::va, and gem5::SMMUTLB::Entry::valid.
void gem5::SMMUTLB::invalidateVMID | ( | uint16_t | vmid | ) |
Definition at line 338 of file smmu_v3_caches.cc.
References gem5::ArmISA::e, gem5::ArmISA::i, gem5::ArmISA::s, gem5::ArmISA::set, sets, and gem5::SMMUTLB::Entry::valid.
const SMMUTLB::Entry * gem5::SMMUTLB::lookup | ( | uint32_t | sid, |
uint32_t | ssid, | ||
Addr | va, | ||
bool | updStats = true ) |
Definition at line 184 of file smmu_v3_caches.cc.
References gem5::SMMUv3BaseCache::baseCacheStats, gem5::ArmISA::e, gem5::ArmISA::i, gem5::SMMUTLB::Entry::lastUsed, panic, pickSetIdx(), gem5::ArmISA::set, sets, gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::totalLookups, gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::totalMisses, gem5::SMMUv3BaseCache::useStamp, and gem5::ArmISA::va.
Referenced by gem5::SMMUTranslationProcess::ifcTLBLookup(), gem5::SMMUTranslationProcess::microTLBLookup(), and store().
const SMMUTLB::Entry * gem5::SMMUTLB::lookupAnyVA | ( | uint32_t | sid, |
uint32_t | ssid, | ||
bool | updStats = true ) |
Definition at line 218 of file smmu_v3_caches.cc.
References gem5::SMMUv3BaseCache::baseCacheStats, gem5::ArmISA::e, gem5::ArmISA::i, gem5::ArmISA::s, gem5::ArmISA::set, sets, gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::totalLookups, and gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::totalMisses.
|
private |
Definition at line 376 of file smmu_v3_caches.cc.
References ALLOC_ANY_BUT_LAST_WAY, ALLOC_ANY_WAY, ALLOC_LAST_WAY, associativity, gem5::SMMUv3BaseCache::baseCacheStats, gem5::ArmISA::i, gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::insertions, gem5::SMMUv3BaseCache::nextToReplace, panic, gem5::Random::random(), gem5::SMMUv3BaseCache::random, gem5::SMMUv3BaseCache::replacementPolicy, gem5::ArmISA::set, gem5::SMMU_CACHE_REPL_LRU, gem5::SMMU_CACHE_REPL_RANDOM, and gem5::SMMU_CACHE_REPL_ROUND_ROBIN.
Referenced by store().
|
private |
Definition at line 364 of file smmu_v3_caches.cc.
References sets, and gem5::ArmISA::va.
|
private |
Definition at line 370 of file smmu_v3_caches.cc.
References sets.
Referenced by invalidateSSID(), invalidateVA(), invalidateVAA(), lookup(), and store().
void gem5::SMMUTLB::store | ( | const Entry & | incoming, |
AllocPolicy | alloc ) |
Definition at line 245 of file smmu_v3_caches.cc.
References gem5::SMMUv3BaseCache::baseCacheStats, gem5::SMMUTLB::Entry::lastUsed, lookup(), panic, pickEntryIdxToReplace(), pickSetIdx(), gem5::ArmISA::set, sets, gem5::SMMUTLB::Entry::sid, gem5::SMMUTLB::Entry::ssid, gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::totalUpdates, gem5::SMMUTLB::Entry::va, and gem5::SMMUTLB::Entry::valid.
Referenced by gem5::SMMUTranslationProcess::ifcTLBUpdate(), and gem5::SMMUTranslationProcess::microTLBUpdate().
|
private |
Definition at line 154 of file smmu_v3_caches.hh.
Referenced by pickEntryIdxToReplace(), and SMMUTLB().
|
private |
Definition at line 152 of file smmu_v3_caches.hh.
Referenced by invalidateAll(), invalidateASID(), invalidateSID(), invalidateSSID(), invalidateVA(), invalidateVAA(), invalidateVMID(), lookup(), lookupAnyVA(), pickSetIdx(), pickSetIdx(), SMMUTLB(), and store().