35 #ifndef __ARCH_RISCV_TLB_HH__ 36 #define __ARCH_RISCV_TLB_HH__ 47 #include "params/RiscvTLB.hh" 66 void nextnlu() {
if (++nlu >= size) nlu = 0; }
100 panic(
"demapPage unimplemented.\n");
132 #endif // __RISCV_MEMORY_HH__ #define panic(...)
This implements a cprintf based panic() function.
Stats::Scalar write_accesses
void insert(Addr vaddr, RiscvISA::PTE &pte)
void insertAt(RiscvISA::PTE &pte, unsigned Index, int _smallPages)
void demapPage(Addr vaddr, uint64_t asn) override
static Fault checkCacheability(const RequestPtr &req)
Declaration of a request, the overall memory request consisting of the parts of the request that are ...
std::shared_ptr< Request > RequestPtr
RiscvISA::PTE * lookup(Addr vpn, uint8_t asn) const
ThreadContext is the external interface to all thread state for anything outside of the CPU...
void serialize(CheckpointOut &cp) const override
Serialize an object.
Declaration of Statistics objects.
This is a simple scalar statistic, like a counter.
Fault translateInst(const RequestPtr &req, ThreadContext *tc)
void flushAll() override
Remove all entries from the TLB.
static bool validVirtualAddress(Addr vaddr)
void regStats() override
Callback to set stat parameters.
Stats::Scalar read_accesses
RiscvISA::PTE & index(bool advance=true)
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.
void translateTiming(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode) override
std::multimap< Addr, int > PageTable
Stats::Scalar read_misses
void unserialize(CheckpointIn &cp) override
Unserialize an object.
int probeEntry(Addr vpn, uint8_t) const
Fault translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode) override
std::ostream CheckpointOut
RiscvISA::PTE * getEntry(unsigned) const
Fault translateData(const RequestPtr &req, ThreadContext *tc, bool write)
std::shared_ptr< FaultBase > Fault
Stats::Scalar write_misses
Fault finalizePhysical(const RequestPtr &req, ThreadContext *tc, Mode mode) const override
Do post-translation physical address finalization.