31 #ifndef __ARCH_RISCV_TLB_HH__ 32 #define __ARCH_RISCV_TLB_HH__ 43 #include "params/RiscvTLB.hh" 120 void remove(
size_t idx);
130 #endif // __RISCV_MEMORY_HH__ Stats::Scalar write_accesses
std::list< TlbEntry * > EntryList
Fault translate(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode, bool &delayed)
Declaration of a request, the overall memory request consisting of the parts of the request that are ...
std::shared_ptr< Request > RequestPtr
Addr translateWithTLB(Addr vaddr, uint16_t asid, Mode mode)
Fault checkPermissions(STATUS status, PrivilegeMode pmode, Addr vaddr, Mode mode, PTESv39 pte)
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.
TlbEntry * insert(Addr vpn, const TlbEntry &entry)
TlbEntry * lookup(Addr vpn, uint16_t asid, Mode mode, bool hidden)
void flushAll() override
Remove all entries from the TLB.
Fault doTranslate(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode, bool &delayed)
void regStats() override
Callback to set stat parameters.
Stats::Scalar read_accesses
Fault translateFunctional(const RequestPtr &req, ThreadContext *tc, Mode mode) override
PrivilegeMode getMemPriv(ThreadContext *tc, Mode mode)
std::vector< TlbEntry > tlb
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 demapPage(Addr vaddr, uint64_t asn) override
void translateTiming(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode) override
Stats::Scalar read_misses
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Fault translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode) override
std::ostream CheckpointOut
std::shared_ptr< FaultBase > Fault
Stats::Scalar write_misses
Fault createPagefault(Addr vaddr, Mode mode)
Fault finalizePhysical(const RequestPtr &req, ThreadContext *tc, Mode mode) const override
Do post-translation physical address finalization.