30 #ifndef __ARCH_MIPS_TLB_HH__ 31 #define __ARCH_MIPS_TLB_HH__ 41 #include "params/MipsTLB.hh" 61 void nextnlu() {
if (++nlu >= size) nlu = 0; }
95 panic(
"demapPage unimplemented.\n");
125 #endif // __MIPS_MEMORY_HH__
#define panic(...)
This implements a cprintf based panic() function.
MipsISA::PTE & index(bool advance=true)
Fault translateFunctional(const RequestPtr &req, ThreadContext *tc, Mode mode) override
void serialize(CheckpointOut &cp) const override
Serialize an object.
MipsISA::PTE * lookup(Addr vpn, uint8_t asn) const
Declaration of a request, the overall memory request consisting of the parts of the request that are ...
std::shared_ptr< Request > RequestPtr
void flushAll() override
Remove all entries from the TLB.
void translateTiming(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode) override
void regStats() override
Callback to set stat parameters.
Fault translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode) override
std::multimap< Addr, int > PageTable
ThreadContext is the external interface to all thread state for anything outside of the CPU...
Declaration of Statistics objects.
This is a simple scalar statistic, like a counter.
MipsISA::PTE * getEntry(unsigned) const
void demapPage(Addr vaddr, uint64_t asn) override
Stats::Scalar write_misses
static bool validVirtualAddress(Addr vaddr)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Stats::Scalar read_misses
int probeEntry(Addr vpn, uint8_t) const
std::ostream CheckpointOut
static Fault checkCacheability(const RequestPtr &req)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Stats::Scalar read_accesses
void insertAt(MipsISA::PTE &pte, unsigned Index, int _smallPages)
Stats::Scalar write_accesses
std::shared_ptr< FaultBase > Fault
void insert(Addr vaddr, MipsISA::PTE &pte)
Fault finalizePhysical(const RequestPtr &req, ThreadContext *tc, Mode mode) const override
Do post-translation physical address finalization.
void takeOverFrom(BaseTLB *otlb) override
Take over from an old tlb context.