gem5
v20.1.0.0
|
#include <smmu_v3_caches.hh>
Classes | |
struct | Entry |
Public Member Functions | |
IPACache (unsigned numEntries, unsigned _associativity, const std::string &policy) | |
virtual | ~IPACache () |
const Entry * | lookup (Addr ipa, uint16_t vmid, bool updStats=true) |
void | store (const Entry &incoming) |
void | invalidateIPA (Addr ipa, uint16_t vmid) |
void | invalidateIPAA (Addr ipa) |
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< Entry > | Set |
Private Member Functions | |
size_t | pickSetIdx (Addr ipa, uint16_t vmid) const |
size_t | pickEntryIdxToReplace (const Set &set) |
Private Attributes | |
std::vector< Set > | sets |
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 |
Definition at line 194 of file smmu_v3_caches.hh.
|
private |
Definition at line 225 of file smmu_v3_caches.hh.
IPACache::IPACache | ( | unsigned | numEntries, |
unsigned | _associativity, | ||
const std::string & | policy | ||
) |
Definition at line 625 of file smmu_v3_caches.cc.
References associativity, ArmISA::e, fatal, and sets.
|
inlinevirtual |
Definition at line 214 of file smmu_v3_caches.hh.
void IPACache::invalidateAll | ( | ) |
Definition at line 751 of file smmu_v3_caches.cc.
References ArmISA::i, ArmISA::s, and sets.
Referenced by SMMUv3::processCommand().
void IPACache::invalidateIPA | ( | Addr | ipa, |
uint16_t | vmid | ||
) |
Definition at line 708 of file smmu_v3_caches.cc.
References ArmISA::e, ArmISA::i, pickSetIdx(), and sets.
Referenced by SMMUv3::processCommand().
void IPACache::invalidateIPAA | ( | Addr | ipa | ) |
void IPACache::invalidateVMID | ( | uint16_t | vmid | ) |
Definition at line 736 of file smmu_v3_caches.cc.
References ArmISA::e, ArmISA::i, ArmISA::s, and sets.
Referenced by SMMUv3::processCommand().
const IPACache::Entry * IPACache::lookup | ( | Addr | ipa, |
uint16_t | vmid, | ||
bool | updStats = true |
||
) |
Definition at line 655 of file smmu_v3_caches.cc.
References ArmISA::e, ArmISA::i, IPACache::Entry::lastUsed, panic, pickSetIdx(), sets, SMMUv3BaseCache::totalLookups, SMMUv3BaseCache::totalMisses, and SMMUv3BaseCache::useStamp.
Referenced by store(), and SMMUTranslationProcess::translateStage2().
|
private |
Definition at line 768 of file smmu_v3_caches.cc.
References associativity, ArmISA::i, SMMUv3BaseCache::insertions, SMMUv3BaseCache::nextToReplace, panic, SMMUv3BaseCache::random, Random::random(), SMMUv3BaseCache::replacementPolicy, SMMU_CACHE_REPL_LRU, SMMU_CACHE_REPL_RANDOM, and SMMU_CACHE_REPL_ROUND_ROBIN.
Referenced by store().
|
private |
Definition at line 762 of file smmu_v3_caches.cc.
References sets, and ArmISA::va.
Referenced by invalidateIPA(), lookup(), and store().
void IPACache::store | ( | const Entry & | incoming | ) |
Definition at line 688 of file smmu_v3_caches.cc.
References IPACache::Entry::ipa, IPACache::Entry::lastUsed, lookup(), panic, pickEntryIdxToReplace(), pickSetIdx(), sets, SMMUv3BaseCache::totalUpdates, IPACache::Entry::valid, and IPACache::Entry::vmid.
Referenced by SMMUTranslationProcess::translateStage2().
|
private |
Definition at line 228 of file smmu_v3_caches.hh.
Referenced by IPACache(), and pickEntryIdxToReplace().
|
private |
Definition at line 226 of file smmu_v3_caches.hh.
Referenced by invalidateAll(), invalidateIPA(), invalidateIPAA(), invalidateVMID(), IPACache(), lookup(), pickSetIdx(), and store().