gem5
v20.1.0.0
|
#include <tlb.hh>
Public Types | |
typedef SparcTLBParams | Params |
Public Types inherited from BaseTLB | |
enum | Mode { Read, Write, Execute } |
Public Types inherited from SimObject | |
typedef SimObjectParams | Params |
Public Member Functions | |
TlbEntry * | lookup (Addr va, int partition_id, bool real, int context_id=0, bool update_used=true) |
lookup an entry in the TLB based on the partition id, and real bit if real is true or the partition id, and context id if real is false. More... | |
void | flushAll () override |
Remove all entries from the TLB. More... | |
TLB (const Params *p) | |
void | takeOverFrom (BaseTLB *otlb) override |
Take over from an old tlb context. More... | |
void | demapPage (Addr vaddr, uint64_t asn) override |
void | dumpAll () |
Fault | translateAtomic (const RequestPtr &req, ThreadContext *tc, Mode mode) override |
Fault | translateFunctional (const RequestPtr &req, ThreadContext *tc, Mode mode) override |
void | translateTiming (const RequestPtr &req, ThreadContext *tc, Translation *translation, Mode mode) override |
Fault | finalizePhysical (const RequestPtr &req, ThreadContext *tc, Mode mode) const override |
Do post-translation physical address finalization. More... | |
Cycles | doMmuRegRead (ThreadContext *tc, Packet *pkt) |
Cycles | doMmuRegWrite (ThreadContext *tc, Packet *pkt) |
void | GetTsbPtr (ThreadContext *tc, Addr addr, int ctx, Addr *ptrs) |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
uint64_t | TteRead (int entry) |
Give an entry id, read that tlb entries' tte. More... | |
Public Member Functions inherited from BaseTLB | |
virtual Port * | getTableWalkerPort () |
Get the table walker port if present. More... | |
void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
Public Member Functions inherited from SimObject | |
const Params * | params () const |
SimObject (const Params *_params) | |
virtual | ~SimObject () |
virtual const std::string | name () const |
virtual void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
Get a port with a given name and index. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from EventManager | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
Public Member Functions inherited from Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. More... | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. More... | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
Public Member Functions inherited from Stats::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. More... | |
virtual void | resetStats () |
Callback to reset stats. More... | |
virtual void | preDumpStats () |
Callback before stats are dumped. More... | |
void | addStat (Stats::Info *info) |
Register a stat with this group. More... | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. More... | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. More... | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. More... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Protected Types | |
enum | FaultTypes { OtherFault = 0, PrivViolation = 0x1, SideEffect = 0x2, AtomicToIo = 0x4, IllegalAsi = 0x8, LoadFromNfo = 0x10, VaOutOfRange = 0x20, VaOutOfRangeJmp = 0x40 } |
enum | ContextType { Primary = 0, Secondary = 1, Nucleus = 2 } |
enum | TsbPageSize { Ps0, Ps1 } |
typedef TlbMap::iterator | MapIter |
Protected Member Functions | |
void | insert (Addr vpn, int partition_id, int context_id, bool real, const PageTableEntry &PTE, int entry=-1) |
Insert a PTE into the TLB. More... | |
uint64_t | TagRead (int entry) |
Given an entry id, read that tlb entries' tag. More... | |
void | demapAll (int partition_id) |
Remove all non-locked entries from the tlb that match partition id. More... | |
void | demapContext (int partition_id, int context_id) |
Remove all entries that match a given context/partition id. More... | |
void | demapPage (Addr va, int partition_id, bool real, int context_id) |
Remve all entries that match a certain partition id, (contextid), and va). More... | |
bool | validVirtualAddress (Addr va, bool am) |
Checks if the virtual address provided is a valid one. More... | |
void | writeSfsr (bool write, ContextType ct, bool se, FaultTypes ft, int asi) |
void | clearUsedBits () |
void | writeTagAccess (Addr va, int context) |
Fault | translateInst (const RequestPtr &req, ThreadContext *tc) |
Fault | translateData (const RequestPtr &req, ThreadContext *tc, bool write) |
Protected Member Functions inherited from BaseTLB | |
BaseTLB (const Params *p) | |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
Protected Attributes | |
uint64_t | sfar |
uint64_t | c0_tsb_ps0 |
uint64_t | c0_tsb_ps1 |
uint64_t | c0_config |
uint64_t | cx_tsb_ps0 |
uint64_t | cx_tsb_ps1 |
uint64_t | cx_config |
uint64_t | sfsr |
uint64_t | tag_access |
TlbMap | lookupTable |
TlbEntry * | tlb |
int | size |
int | usedEntries |
int | lastReplaced |
uint64_t | cacheState |
bool | cacheValid |
std::list< TlbEntry * > | freeList |
Protected Attributes inherited from SimObject | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Private Member Functions | |
void | writeSfsr (Addr a, bool write, ContextType ct, bool se, FaultTypes ft, int asi) |
uint64_t | MakeTsbPtr (TsbPageSize ps, uint64_t tag_access, uint64_t c0_tsb, uint64_t c0_config, uint64_t cX_tsb, uint64_t cX_config) |
Private Attributes | |
TlbEntry * | cacheEntry [2] |
ASI | cacheAsi [2] |
Friends | |
class | FastInstructionAccessMMUMiss |
class | FastDataAccessMMUMiss |
Additional Inherited Members | |
Static Public Member Functions inherited from SimObject | |
static void | serializeAll (CheckpointOut &cp) |
Serialize all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
Static Public Member Functions inherited from Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
Serializes all the SimObjects. More... | |
static void | unserializeGlobals (CheckpointIn &cp) |
|
protected |
typedef SparcTLBParams SparcISA::TLB::Params |
|
protected |
|
protected |
|
protected |
SparcISA::TLB::TLB | ( | const Params * | p | ) |
Definition at line 55 of file tlb.cc.
References c0_config, c0_tsb_ps0, c0_tsb_ps1, cacheEntry, cx_config, cx_tsb_ps0, cx_tsb_ps1, fatal, freeList, sfar, sfsr, size, tag_access, tlb, and RiscvISA::x.
|
protected |
Definition at line 83 of file tlb.cc.
References SparcISA::TlbMap::begin(), SparcISA::TlbMap::end(), ArmISA::i, lookupTable, ArmISA::t, and usedEntries.
|
protected |
Remove all non-locked entries from the tlb that match partition id.
Definition at line 303 of file tlb.cc.
References cacheValid, DPRINTF, SparcISA::TlbMap::erase(), freeList, lookupTable, SparcISA::TlbRange::partitionId, SparcISA::TlbEntry::range, size, tlb, SparcISA::TlbEntry::used, usedEntries, SparcISA::TlbEntry::valid, and RiscvISA::x.
Referenced by doMmuRegWrite().
|
protected |
Remove all entries that match a given context/partition id.
Definition at line 281 of file tlb.cc.
References cacheValid, DPRINTF, SparcISA::TlbMap::erase(), freeList, lookupTable, SparcISA::TlbRange::partitionId, SparcISA::TlbEntry::range, size, tlb, SparcISA::TlbEntry::used, usedEntries, SparcISA::TlbEntry::valid, and RiscvISA::x.
Referenced by doMmuRegWrite().
|
protected |
Remve all entries that match a certain partition id, (contextid), and va).
Definition at line 249 of file tlb.cc.
References cacheValid, SparcISA::TlbRange::contextId, DPRINTF, SparcISA::TlbMap::end(), SparcISA::TlbMap::erase(), SparcISA::TlbMap::find(), freeList, ArmISA::i, lookupTable, SparcISA::TlbRange::partitionId, SparcISA::TlbRange::real, SparcISA::TlbRange::size, usedEntries, SparcISA::TlbRange::va, and ArmISA::va.
Referenced by doMmuRegWrite().
|
inlineoverridevirtual |
Cycles SparcISA::TLB::doMmuRegRead | ( | ThreadContext * | tc, |
Packet * | pkt | ||
) |
Definition at line 949 of file tlb.cc.
References SparcISA::ASI_DMMU, SparcISA::ASI_DMMU_CTXT_NONZERO_CONFIG, SparcISA::ASI_DMMU_CTXT_NONZERO_TSB_BASE_PS0, SparcISA::ASI_DMMU_CTXT_NONZERO_TSB_BASE_PS1, SparcISA::ASI_DMMU_CTXT_ZERO_CONFIG, SparcISA::ASI_DMMU_CTXT_ZERO_TSB_BASE_PS0, SparcISA::ASI_DMMU_CTXT_ZERO_TSB_BASE_PS1, SparcISA::ASI_DMMU_TSB_PS0_PTR_REG, SparcISA::ASI_DMMU_TSB_PS1_PTR_REG, SparcISA::ASI_HYP_SCRATCHPAD, SparcISA::ASI_IMMU, SparcISA::ASI_IMMU_CTXT_NONZERO_CONFIG, SparcISA::ASI_IMMU_CTXT_NONZERO_TSB_BASE_PS0, SparcISA::ASI_IMMU_CTXT_NONZERO_TSB_BASE_PS1, SparcISA::ASI_IMMU_CTXT_ZERO_CONFIG, SparcISA::ASI_IMMU_CTXT_ZERO_TSB_BASE_PS0, SparcISA::ASI_IMMU_CTXT_ZERO_TSB_BASE_PS1, SparcISA::ASI_IMMU_TSB_PS0_PTR_REG, SparcISA::ASI_IMMU_TSB_PS1_PTR_REG, SparcISA::ASI_LSU_CONTROL_REG, SparcISA::ASI_MMU, SparcISA::ASI_QUEUE, SparcISA::ASI_SCRATCHPAD, SparcISA::ASI_SPARC_ERROR_STATUS_REG, SparcISA::ASI_SWVR_INTR_RECEIVE, SparcISA::ASI_SWVR_UDB_INTR_R, bits(), c0_config, c0_tsb_ps0, c0_tsb_ps1, BaseCPU::clearInterrupt(), cx_config, cx_tsb_ps0, cx_tsb_ps1, DPRINTF, findMsbSet(), SparcISA::Interrupts::get_vec(), Packet::getAddr(), ThreadContext::getCpuPtr(), BaseCPU::getInterruptController(), ThreadContext::getITBPtr(), SparcISA::IT_INT_VEC, Packet::makeAtomicResponse(), MakeTsbPtr(), SparcISA::MISCREG_MMU_LSU_CTRL, SparcISA::MISCREG_MMU_P_CONTEXT, SparcISA::MISCREG_MMU_PART_ID, SparcISA::MISCREG_MMU_S_CONTEXT, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_SCRATCHPAD_R0, panic, Ps0, Ps1, ThreadContext::readMiscReg(), Packet::req, Packet::setBE(), sfar, sfsr, tag_access, and ArmISA::va.
Referenced by translateData().
Cycles SparcISA::TLB::doMmuRegWrite | ( | ThreadContext * | tc, |
Packet * | pkt | ||
) |
Definition at line 1134 of file tlb.cc.
References SparcISA::ASI_DMMU, SparcISA::ASI_DMMU_CTXT_NONZERO_CONFIG, SparcISA::ASI_DMMU_CTXT_NONZERO_TSB_BASE_PS0, SparcISA::ASI_DMMU_CTXT_NONZERO_TSB_BASE_PS1, SparcISA::ASI_DMMU_CTXT_ZERO_CONFIG, SparcISA::ASI_DMMU_CTXT_ZERO_TSB_BASE_PS0, SparcISA::ASI_DMMU_CTXT_ZERO_TSB_BASE_PS1, SparcISA::ASI_DMMU_DEMAP, SparcISA::ASI_DTLB_DATA_ACCESS_REG, SparcISA::ASI_DTLB_DATA_IN_REG, SparcISA::ASI_HYP_SCRATCHPAD, SparcISA::ASI_IMMU, SparcISA::ASI_IMMU_CTXT_NONZERO_CONFIG, SparcISA::ASI_IMMU_CTXT_NONZERO_TSB_BASE_PS0, SparcISA::ASI_IMMU_CTXT_NONZERO_TSB_BASE_PS1, SparcISA::ASI_IMMU_CTXT_ZERO_CONFIG, SparcISA::ASI_IMMU_CTXT_ZERO_TSB_BASE_PS0, SparcISA::ASI_IMMU_CTXT_ZERO_TSB_BASE_PS1, SparcISA::ASI_IMMU_DEMAP, SparcISA::ASI_ITLB_DATA_ACCESS_REG, SparcISA::ASI_ITLB_DATA_IN_REG, SparcISA::ASI_LSU_CONTROL_REG, SparcISA::ASI_MMU, SparcISA::ASI_QUEUE, SparcISA::ASI_SCRATCHPAD, SparcISA::ASI_SPARC_ERROR_EN_REG, SparcISA::ASI_SPARC_ERROR_STATUS_REG, SparcISA::ASI_SWVR_INTR_RECEIVE, SparcISA::ASI_SWVR_UDB_INTR_W, bits(), c0_config, c0_tsb_ps0, c0_tsb_ps1, BaseCPU::clearInterrupt(), cx_config, cx_tsb_ps0, cx_tsb_ps1, data, demapAll(), demapContext(), demapPage(), DPRINTF, findMsbSet(), SparcISA::Interrupts::get_vec(), Packet::getAddr(), Packet::getBE(), ThreadContext::getCpuPtr(), BaseCPU::getInterruptController(), ThreadContext::getITBPtr(), ThreadContext::getSystemPtr(), ignore(), inform, insert(), SparcISA::IT_INT_VEC, M5_FALLTHROUGH, Packet::makeAtomicResponse(), mbits(), SparcISA::MISCREG_MMU_LSU_CTRL, SparcISA::MISCREG_MMU_P_CONTEXT, SparcISA::MISCREG_MMU_PART_ID, SparcISA::MISCREG_MMU_S_CONTEXT, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_SCRATCHPAD_R0, panic, SparcISA::PageTableEntry::populate(), ThreadContext::readMiscReg(), Packet::req, ThreadContext::setMiscReg(), sfsr, SparcISA::PageTableEntry::sun4u, SparcISA::PageTableEntry::sun4v, tag_access, System::threads, and ArmISA::va.
Referenced by translateData().
void SparcISA::TLB::dumpAll | ( | ) |
Definition at line 235 of file tlb.cc.
References SparcISA::TlbRange::contextId, DPRINTFN, ArmISA::i, SparcISA::PageTableEntry::paddr(), SparcISA::TlbEntry::pte, SparcISA::TlbEntry::range, SparcISA::TlbRange::real, size, SparcISA::TlbRange::size, tlb, SparcISA::TlbRange::va, and RiscvISA::x.
|
overridevirtual |
Do post-translation physical address finalization.
This method is used by some architectures that need post-translation massaging of physical addresses. For example, X86 uses this to remap physical addresses in the APIC range to a range of physical memory not normally available to real x86 implementations.
req | Request to updated in-place. |
tc | Thread context that created the request. |
mode | Request type (read/write/execute). |
Implements BaseTLB.
Definition at line 942 of file tlb.cc.
References NoFault.
|
overridevirtual |
Remove all entries from the TLB.
Implements BaseTLB.
Definition at line 322 of file tlb.cc.
References cacheValid, SparcISA::TlbMap::clear(), freeList, lookupTable, size, tlb, SparcISA::TlbEntry::used, usedEntries, SparcISA::TlbEntry::valid, and RiscvISA::x.
void SparcISA::TLB::GetTsbPtr | ( | ThreadContext * | tc, |
Addr | addr, | ||
int | ctx, | ||
Addr * | ptrs | ||
) |
Definition at line 1388 of file tlb.cc.
References addr, c0_config, c0_tsb_ps0, c0_tsb_ps1, cx_config, cx_tsb_ps0, cx_tsb_ps1, ThreadContext::getITBPtr(), MakeTsbPtr(), mbits(), Ps0, Ps1, and tag_access.
Referenced by translateFunctional().
|
protected |
Insert a PTE into the TLB.
Definition at line 97 of file tlb.cc.
References cacheValid, clearUsedBits(), SparcISA::TlbRange::contextId, DPRINTF, SparcISA::TlbMap::end(), SparcISA::TlbMap::erase(), freeList, ArmISA::i, SparcISA::TlbMap::insert(), lastReplaced, lookupTable, SparcISA::PageTableEntry::paddr(), SparcISA::TlbRange::partitionId, SparcISA::TlbEntry::pte, SparcISA::TlbEntry::range, SparcISA::TlbRange::real, size, SparcISA::PageTableEntry::size(), SparcISA::TlbRange::size, tlb, SparcISA::TlbEntry::used, usedEntries, SparcISA::TlbRange::va, ArmISA::va, SparcISA::PageTableEntry::valid(), SparcISA::TlbEntry::valid, and RiscvISA::x.
Referenced by doMmuRegWrite().
TlbEntry * SparcISA::TLB::lookup | ( | Addr | va, |
int | partition_id, | ||
bool | real, | ||
int | context_id = 0 , |
||
bool | update_used = true |
||
) |
lookup an entry in the TLB based on the partition id, and real bit if real is true or the partition id, and context id if real is false.
va | the virtual address not shifted (e.g. bottom 13 bits are 0) |
paritition_id | partition this entry is for |
real | is this a real->phys or virt->phys translation |
context_id | if this is virt->phys what context |
update_used | should ew update the used bits in the entries on not useful if we are trying to do a va->pa without mucking with any state for a debug read for example. |
Definition at line 191 of file tlb.cc.
References clearUsedBits(), SparcISA::TlbRange::contextId, DPRINTF, SparcISA::TlbMap::end(), SparcISA::TlbMap::find(), ArmISA::i, lookupTable, SparcISA::TlbRange::partitionId, SparcISA::TlbRange::real, size, SparcISA::TlbRange::size, ArmISA::t, usedEntries, SparcISA::TlbRange::va, and ArmISA::va.
Referenced by translateData(), translateFunctional(), and translateInst().
|
private |
Definition at line 1415 of file tlb.cc.
References bits(), c0_config, ArmISA::mask, mbits(), ArmISA::ps, Ps0, Ps1, tag_access, and ULL.
Referenced by doMmuRegRead(), and GetTsbPtr().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 1442 of file tlb.cc.
References c0_config, c0_tsb_ps0, c0_tsb_ps1, csprintf(), cx_config, cx_tsb_ps0, cx_tsb_ps1, freeList, lastReplaced, SparcISA::TlbEntry::serialize(), SERIALIZE_CONTAINER, SERIALIZE_SCALAR, sfar, sfsr, size, tag_access, tlb, usedEntries, and RiscvISA::x.
|
protected |
Given an entry id, read that tlb entries' tag.
Definition at line 350 of file tlb.cc.
References SparcISA::TlbRange::contextId, SparcISA::TlbEntry::range, SparcISA::TlbRange::real, size, tlb, ULL, and SparcISA::TlbRange::va.
|
inlineoverridevirtual |
|
overridevirtual |
Implements BaseTLB.
Definition at line 829 of file tlb.cc.
References BaseTLB::Execute, ArmISA::mode, translateData(), translateInst(), and BaseTLB::Write.
Referenced by translateTiming().
|
protected |
Normal flow ends here.
Definition at line 526 of file tlb.cc.
References SparcISA::ASI_IMPLICIT, SparcISA::ASI_N, SparcISA::ASI_P, SparcISA::ASI_S, SparcISA::ASI_SWVR_UDB_INTR_R, SparcISA::ASI_SWVR_UDB_INTR_W, SparcISA::asiIsAsIfUser(), SparcISA::asiIsBlock(), SparcISA::asiIsCmt(), SparcISA::asiIsHPriv(), SparcISA::asiIsInterrupt(), SparcISA::asiIsLittle(), SparcISA::asiIsMmu(), SparcISA::asiIsNoFault(), SparcISA::asiIsNucleus(), SparcISA::asiIsPartialStore(), SparcISA::asiIsPrimary(), SparcISA::asiIsQueue(), SparcISA::asiIsReal(), SparcISA::asiIsScratchPad(), SparcISA::asiIsSecondary(), SparcISA::asiIsSparcError(), SparcISA::asiIsTwin(), SparcISA::asiIsUnPriv(), bits(), cacheAsi, cacheEntry, cacheState, cacheValid, MipsISA::ce, doMmuRegRead(), doMmuRegWrite(), DPRINTF, ArmISA::e, freeList, FullSystem, SparcISA::hpriv, IllegalAsi, LoadFromNfo, lookup(), lookupTable, SparcISA::MISCREG_TLB_DATA, NoFault, Nucleus, OtherFault, SparcISA::PAddrImplMask, panic, Primary, SparcISA::priv, PrivViolation, ThreadContext::readMiscRegNoEffect(), SparcISA::red, Secondary, SideEffect, size, SparcISA::TlbMap::size(), Request::STRICT_ORDER, MipsISA::tl, Request::UNCACHEABLE, MipsISA::vaddr, SparcISA::VAddrAMask, validVirtualAddress(), VaOutOfRange, writeSfsr(), and writeTagAccess().
Referenced by translateAtomic().
|
overridevirtual |
Reimplemented from BaseTLB.
Definition at line 838 of file tlb.cc.
References betoh(), bits(), DPRINTF, BaseTLB::Execute, FullSystem, ThreadContext::getPhysProxy(), ThreadContext::getProcessPtr(), GetTsbPtr(), SparcISA::hpriv, lookup(), mem, SparcISA::MISCREG_TLB_DATA, ArmISA::mode, NoFault, SparcISA::PageTableEntry::populate(), Process::pTable, ThreadContext::readMiscRegNoEffect(), SparcISA::PageTableEntry::sun4v, MipsISA::tbe, EmulationPageTable::translate(), SparcISA::PageTableEntry::translate(), SparcISA::TteTag::va(), MipsISA::vaddr, SparcISA::VAddrAMask, SparcISA::TteTag::valid(), validVirtualAddress(), and RiscvISA::x.
|
protected |
Definition at line 412 of file tlb.cc.
References SparcISA::ASI_IMPLICIT, SparcISA::ASI_N, SparcISA::ASI_P, bits(), cacheEntry, cacheState, cacheValid, DPRINTF, ArmISA::e, FullSystem, SparcISA::hpriv, lookup(), SparcISA::MISCREG_TLB_DATA, NoFault, Nucleus, OtherFault, SparcISA::PAddrImplMask, Primary, SparcISA::priv, PrivViolation, SparcISA::TlbEntry::range, ThreadContext::readMiscRegNoEffect(), SparcISA::red, SparcISA::TlbRange::size, MipsISA::tl, SparcISA::TlbRange::va, MipsISA::vaddr, SparcISA::VAddrAMask, validVirtualAddress(), VaOutOfRange, writeSfsr(), and writeTagAccess().
Referenced by translateAtomic().
|
overridevirtual |
Implements BaseTLB.
Definition at line 934 of file tlb.cc.
References BaseTLB::Translation::finish(), ArmISA::mode, and translateAtomic().
uint64_t SparcISA::TLB::TteRead | ( | int | entry | ) |
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 1472 of file tlb.cc.
References c0_config, c0_tsb_ps0, c0_tsb_ps1, SparcISA::TlbMap::clear(), csprintf(), cx_config, cx_tsb_ps0, cx_tsb_ps1, freeList, SparcISA::TlbMap::insert(), lastReplaced, lookupTable, panic, paramIn(), sfar, sfsr, size, tag_access, tlb, SparcISA::TlbEntry::unserialize(), UNSERIALIZE_CONTAINER, UNSERIALIZE_SCALAR, usedEntries, and RiscvISA::x.
|
protected |
Checks if the virtual address provided is a valid one.
Definition at line 366 of file tlb.cc.
References SparcISA::am, SparcISA::EndVAddrHole, SparcISA::StartVAddrHole, and ArmISA::va.
Referenced by translateData(), translateFunctional(), and translateInst().
|
private |
|
protected |
Definition at line 376 of file tlb.cc.
References sfsr.
Referenced by translateData(), translateInst(), and writeSfsr().
|
protected |
Definition at line 393 of file tlb.cc.
References DPRINTF, mbits(), tag_access, and ArmISA::va.
Referenced by translateData(), and translateInst().
|
friend |
|
friend |
|
protected |
Definition at line 62 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), MakeTsbPtr(), serialize(), TLB(), and unserialize().
|
protected |
Definition at line 60 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().
|
protected |
Definition at line 61 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().
|
private |
Definition at line 199 of file tlb.hh.
Referenced by translateData().
|
private |
Definition at line 198 of file tlb.hh.
Referenced by TLB(), translateData(), and translateInst().
|
protected |
Definition at line 79 of file tlb.hh.
Referenced by translateData(), and translateInst().
|
protected |
Definition at line 80 of file tlb.hh.
Referenced by demapAll(), demapContext(), demapPage(), flushAll(), insert(), translateData(), and translateInst().
|
protected |
Definition at line 65 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().
|
protected |
Definition at line 63 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().
|
protected |
Definition at line 64 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().
Definition at line 82 of file tlb.hh.
Referenced by demapAll(), demapContext(), demapPage(), flushAll(), insert(), serialize(), TLB(), translateData(), and unserialize().
|
protected |
Definition at line 77 of file tlb.hh.
Referenced by insert(), serialize(), and unserialize().
|
protected |
Definition at line 70 of file tlb.hh.
Referenced by clearUsedBits(), demapAll(), demapContext(), demapPage(), flushAll(), insert(), lookup(), translateData(), and unserialize().
|
protected |
Definition at line 59 of file tlb.hh.
Referenced by doMmuRegRead(), serialize(), TLB(), unserialize(), and writeSfsr().
|
protected |
Definition at line 66 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), serialize(), TLB(), unserialize(), and writeSfsr().
|
protected |
Definition at line 75 of file tlb.hh.
Referenced by demapAll(), demapContext(), dumpAll(), flushAll(), insert(), lookup(), serialize(), TagRead(), TLB(), translateData(), TteRead(), and unserialize().
|
protected |
Definition at line 67 of file tlb.hh.
Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), MakeTsbPtr(), serialize(), TLB(), unserialize(), and writeTagAccess().
|
protected |
Definition at line 73 of file tlb.hh.
Referenced by demapAll(), demapContext(), dumpAll(), flushAll(), insert(), serialize(), TagRead(), TLB(), TteRead(), and unserialize().
|
protected |
Definition at line 76 of file tlb.hh.
Referenced by clearUsedBits(), demapAll(), demapContext(), demapPage(), flushAll(), insert(), lookup(), serialize(), and unserialize().