Go to the documentation of this file.
31 #ifndef __ARCH_RISCV_TLB_HH__
32 #define __ARCH_RISCV_TLB_HH__
43 #include "params/RiscvTLB.hh"
111 Translation *translation,
Mode mode)
override;
126 Translation *translation,
Mode mode,
bool &delayed);
128 Translation *translation,
Mode mode,
bool &delayed);
133 #endif // __RISCV_MEMORY_HH__
PrivilegeMode getMemPriv(ThreadContext *tc, Mode mode)
void demapPage(Addr vaddr, uint64_t asn) override
Fault translate(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode, bool &delayed)
TlbEntry * insert(Addr vpn, const TlbEntry &entry)
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::shared_ptr< Request > RequestPtr
Fault translateFunctional(const RequestPtr &req, ThreadContext *tc, Mode mode) override
Stats::Scalar read_accesses
Addr translateWithTLB(Addr vaddr, uint16_t asid, Mode mode)
This is a simple scalar statistic, like a counter.
Fault createPagefault(Addr vaddr, Mode mode)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
std::shared_ptr< FaultBase > Fault
void translateTiming(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode) override
Stats::Scalar read_misses
TlbEntry * lookup(Addr vpn, uint16_t asid, Mode mode, bool hidden)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Fault finalizePhysical(const RequestPtr &req, ThreadContext *tc, Mode mode) const override
Do post-translation physical address finalization.
void flushAll() override
Remove all entries from the TLB.
std::list< TlbEntry * > EntryList
TlbStats(Stats::Group *parent)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Fault doTranslate(const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode, bool &delayed)
void takeOverFrom(BaseTLB *otlb) override
Take over from an old tlb context.
Stats::Scalar write_misses
Stats::Scalar write_accesses
Fault translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode) override
Fault checkPermissions(STATUS status, PrivilegeMode pmode, Addr vaddr, Mode mode, PTESv39 pte)
std::ostream CheckpointOut
RiscvISA::TLB::TlbStats stats
std::vector< TlbEntry > tlb
Generated on Wed Sep 30 2020 14:01:59 for gem5 by doxygen 1.8.17