32 #ifndef __ARCH_ALPHA_TLB_HH__ 33 #define __ARCH_ALPHA_TLB_HH__ 45 #include "params/AlphaTLB.hh" 80 void nextnlu() {
if (++nlu >= table.size()) nlu = 0; }
92 int getsize()
const {
return table.size(); }
104 assert(asn < (1 << 8));
128 memset(EntryCache, 0, 3 *
sizeof(
TlbEntry*));
133 EntryCache[2] = EntryCache[1];
134 EntryCache[1] = EntryCache[0];
135 EntryCache[0] = entry;
151 Mode mode)
const override;
156 #endif // __ARCH_ALPHA_TLB_HH__ Fault translateData(const RequestPtr &req, ThreadContext *tc, bool write)
Stats::Formula fetch_accesses
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Declaration of a request, the overall memory request consisting of the parts of the request that are ...
std::shared_ptr< Request > RequestPtr
static Fault checkCacheability(const RequestPtr &req, bool itb=false)
Stats::Formula data_misses
std::vector< TlbEntry > table
TlbEntry & index(bool advance=true)
ThreadContext is the external interface to all thread state for anything outside of the CPU...
Declaration of Statistics objects.
void translateTiming(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode) override
Stats::Scalar write_misses
This is a simple scalar statistic, like a counter.
Stats::Scalar fetch_misses
void flushAll() override
Remove all entries from the TLB.
void demapPage(Addr vaddr, uint64_t asn) override
void serialize(CheckpointOut &cp) const override
Serialize an object.
void takeOverFrom(BaseTLB *otlb) override
Take over from an old tlb context.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Fault finalizePhysical(const RequestPtr &req, ThreadContext *tc, Mode mode) const override
Do post-translation physical address finalization.
TlbEntry * updateCache(TlbEntry *entry)
Stats::Scalar read_accesses
void flushAddr(Addr addr, uint8_t asn)
Stats::Scalar write_accesses
const Addr VAddrUnImplMask
std::multimap< Addr, int > PageTable
static bool validVirtualAddress(Addr vaddr)
std::ostream CheckpointOut
TlbEntry * lookup(Addr vpn, uint8_t asn)
Stats::Scalar read_misses
void insert(Addr vaddr, TlbEntry &entry)
Fault translateInst(const RequestPtr &req, ThreadContext *tc)
Stats::Formula data_accesses
Fault translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode) override
std::shared_ptr< FaultBase > Fault
void regStats() override
Callback to set stat parameters.