gem5  v20.1.0.0
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SparcISA::TLB Class Reference

#include <tlb.hh>

Inheritance diagram for SparcISA::TLB:
BaseTLB SimObject EventManager Serializable Drainable Stats::Group

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

TlbEntrylookup (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 PortgetTableWalkerPort ()
 Get the table walker port if present. More...
 
void memInvalidate ()
 Invalidate the contents of memory buffers. More...
 
- Public Member Functions inherited from SimObject
const Paramsparams () 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...
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object. More...
 
virtual PortgetPort (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
EventQueueeventQueue () 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 InforesolveStat (std::string name) const
 Resolve a stat by its name within this group. More...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (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
 
TlbEntrytlb
 
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
EventQueueeventq
 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

TlbEntrycacheEntry [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 SimObjectfind (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)
 

Detailed Description

Definition at line 50 of file tlb.hh.

Member Typedef Documentation

◆ MapIter

Definition at line 70 of file tlb.hh.

◆ Params

typedef SparcTLBParams SparcISA::TLB::Params

Definition at line 156 of file tlb.hh.

Member Enumeration Documentation

◆ ContextType

Enumerator
Primary 
Secondary 
Nucleus 

Definition at line 95 of file tlb.hh.

◆ FaultTypes

enum SparcISA::TLB::FaultTypes
protected
Enumerator
OtherFault 
PrivViolation 
SideEffect 
AtomicToIo 
IllegalAsi 
LoadFromNfo 
VaOutOfRange 
VaOutOfRangeJmp 

Definition at line 84 of file tlb.hh.

◆ TsbPageSize

Enumerator
Ps0 
Ps1 

Definition at line 101 of file tlb.hh.

Constructor & Destructor Documentation

◆ TLB()

SparcISA::TLB::TLB ( const Params p)

Member Function Documentation

◆ clearUsedBits()

void SparcISA::TLB::clearUsedBits ( )
protected

Definition at line 83 of file tlb.cc.

References SparcISA::TlbMap::begin(), SparcISA::TlbMap::end(), ArmISA::i, lookupTable, ArmISA::t, and usedEntries.

Referenced by insert(), and lookup().

◆ demapAll()

void SparcISA::TLB::demapAll ( int  partition_id)
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().

◆ demapContext()

void SparcISA::TLB::demapContext ( int  partition_id,
int  context_id 
)
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().

◆ demapPage() [1/2]

void SparcISA::TLB::demapPage ( Addr  va,
int  partition_id,
bool  real,
int  context_id 
)
protected

◆ demapPage() [2/2]

void SparcISA::TLB::demapPage ( Addr  vaddr,
uint64_t  asn 
)
inlineoverridevirtual

Implements BaseTLB.

Definition at line 162 of file tlb.hh.

References panic.

◆ doMmuRegRead()

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().

◆ doMmuRegWrite()

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().

◆ dumpAll()

void SparcISA::TLB::dumpAll ( )

◆ finalizePhysical()

Fault SparcISA::TLB::finalizePhysical ( const RequestPtr req,
ThreadContext tc,
Mode  mode 
) const
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.

Parameters
reqRequest to updated in-place.
tcThread context that created the request.
modeRequest type (read/write/execute).
Returns
A fault on failure, NoFault otherwise.

Implements BaseTLB.

Definition at line 942 of file tlb.cc.

References NoFault.

◆ flushAll()

void SparcISA::TLB::flushAll ( )
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.

◆ GetTsbPtr()

void SparcISA::TLB::GetTsbPtr ( ThreadContext tc,
Addr  addr,
int  ctx,
Addr ptrs 
)

◆ insert()

void SparcISA::TLB::insert ( Addr  vpn,
int  partition_id,
int  context_id,
bool  real,
const PageTableEntry PTE,
int  entry = -1 
)
protected

◆ lookup()

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.

Parameters
vathe virtual address not shifted (e.g. bottom 13 bits are 0)
paritition_idpartition this entry is for
realis this a real->phys or virt->phys translation
context_idif this is virt->phys what context
update_usedshould 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.
Returns
A pointer to a tlb entry

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().

◆ MakeTsbPtr()

uint64_t SparcISA::TLB::MakeTsbPtr ( TsbPageSize  ps,
uint64_t  tag_access,
uint64_t  c0_tsb,
uint64_t  c0_config,
uint64_t  cX_tsb,
uint64_t  cX_config 
)
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().

◆ serialize()

void SparcISA::TLB::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint 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.

◆ TagRead()

uint64_t SparcISA::TLB::TagRead ( int  entry)
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.

◆ takeOverFrom()

void SparcISA::TLB::takeOverFrom ( BaseTLB otlb)
inlineoverridevirtual

Take over from an old tlb context.

Implements BaseTLB.

Definition at line 159 of file tlb.hh.

◆ translateAtomic()

Fault SparcISA::TLB::translateAtomic ( const RequestPtr req,
ThreadContext tc,
Mode  mode 
)
overridevirtual

Implements BaseTLB.

Definition at line 829 of file tlb.cc.

References BaseTLB::Execute, ArmISA::mode, translateData(), translateInst(), and BaseTLB::Write.

Referenced by translateTiming().

◆ translateData()

Fault SparcISA::TLB::translateData ( const RequestPtr req,
ThreadContext tc,
bool  write 
)
protected

◆ translateFunctional()

Fault SparcISA::TLB::translateFunctional ( const RequestPtr req,
ThreadContext tc,
Mode  mode 
)
overridevirtual

◆ translateInst()

Fault SparcISA::TLB::translateInst ( const RequestPtr req,
ThreadContext tc 
)
protected

◆ translateTiming()

void SparcISA::TLB::translateTiming ( const RequestPtr req,
ThreadContext tc,
Translation translation,
Mode  mode 
)
overridevirtual

Implements BaseTLB.

Definition at line 934 of file tlb.cc.

References BaseTLB::Translation::finish(), ArmISA::mode, and translateAtomic().

◆ TteRead()

uint64_t SparcISA::TLB::TteRead ( int  entry)

Give an entry id, read that tlb entries' tte.

Definition at line 337 of file tlb.cc.

References panic, SparcISA::TlbEntry::pte, size, and tlb.

◆ unserialize()

void SparcISA::TLB::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint 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.

◆ validVirtualAddress()

bool SparcISA::TLB::validVirtualAddress ( Addr  va,
bool  am 
)
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().

◆ writeSfsr() [1/2]

void SparcISA::TLB::writeSfsr ( Addr  a,
bool  write,
ContextType  ct,
bool  se,
FaultTypes  ft,
int  asi 
)
private

Definition at line 402 of file tlb.cc.

References ArmISA::a, DPRINTF, sfar, and writeSfsr().

◆ writeSfsr() [2/2]

void SparcISA::TLB::writeSfsr ( bool  write,
ContextType  ct,
bool  se,
FaultTypes  ft,
int  asi 
)
protected

Definition at line 376 of file tlb.cc.

References sfsr.

Referenced by translateData(), translateInst(), and writeSfsr().

◆ writeTagAccess()

void SparcISA::TLB::writeTagAccess ( Addr  va,
int  context 
)
protected

Definition at line 393 of file tlb.cc.

References DPRINTF, mbits(), tag_access, and ArmISA::va.

Referenced by translateData(), and translateInst().

Friends And Related Function Documentation

◆ FastDataAccessMMUMiss

friend class FastDataAccessMMUMiss
friend

Definition at line 54 of file tlb.hh.

◆ FastInstructionAccessMMUMiss

friend class FastInstructionAccessMMUMiss
friend

Definition at line 53 of file tlb.hh.

Member Data Documentation

◆ c0_config

uint64_t SparcISA::TLB::c0_config
protected

Definition at line 62 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), MakeTsbPtr(), serialize(), TLB(), and unserialize().

◆ c0_tsb_ps0

uint64_t SparcISA::TLB::c0_tsb_ps0
protected

Definition at line 60 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().

◆ c0_tsb_ps1

uint64_t SparcISA::TLB::c0_tsb_ps1
protected

Definition at line 61 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().

◆ cacheAsi

ASI SparcISA::TLB::cacheAsi[2]
private

Definition at line 199 of file tlb.hh.

Referenced by translateData().

◆ cacheEntry

TlbEntry* SparcISA::TLB::cacheEntry[2]
private

Definition at line 198 of file tlb.hh.

Referenced by TLB(), translateData(), and translateInst().

◆ cacheState

uint64_t SparcISA::TLB::cacheState
protected

Definition at line 79 of file tlb.hh.

Referenced by translateData(), and translateInst().

◆ cacheValid

bool SparcISA::TLB::cacheValid
protected

Definition at line 80 of file tlb.hh.

Referenced by demapAll(), demapContext(), demapPage(), flushAll(), insert(), translateData(), and translateInst().

◆ cx_config

uint64_t SparcISA::TLB::cx_config
protected

Definition at line 65 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().

◆ cx_tsb_ps0

uint64_t SparcISA::TLB::cx_tsb_ps0
protected

Definition at line 63 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().

◆ cx_tsb_ps1

uint64_t SparcISA::TLB::cx_tsb_ps1
protected

Definition at line 64 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), GetTsbPtr(), serialize(), TLB(), and unserialize().

◆ freeList

std::list<TlbEntry*> SparcISA::TLB::freeList
protected

◆ lastReplaced

int SparcISA::TLB::lastReplaced
protected

Definition at line 77 of file tlb.hh.

Referenced by insert(), serialize(), and unserialize().

◆ lookupTable

TlbMap SparcISA::TLB::lookupTable
protected

◆ sfar

uint64_t SparcISA::TLB::sfar
protected

Definition at line 59 of file tlb.hh.

Referenced by doMmuRegRead(), serialize(), TLB(), unserialize(), and writeSfsr().

◆ sfsr

uint64_t SparcISA::TLB::sfsr
protected

Definition at line 66 of file tlb.hh.

Referenced by doMmuRegRead(), doMmuRegWrite(), serialize(), TLB(), unserialize(), and writeSfsr().

◆ size

int SparcISA::TLB::size
protected

◆ tag_access

uint64_t SparcISA::TLB::tag_access
protected

◆ tlb

TlbEntry* SparcISA::TLB::tlb
protected

◆ usedEntries

int SparcISA::TLB::usedEntries
protected

The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:03:12 for gem5 by doxygen 1.8.17