gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
RiscvISA::TlbEntry Struct Reference

#include <pagetable.hh>

Inheritance diagram for RiscvISA::TlbEntry:
Serializable

Public Member Functions

 TlbEntry ()
 
Addr size () const
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- 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 Attributes

Addr paddr
 
Addr vaddr
 
unsigned logBytes
 
uint16_t asid
 
PTESv39 pte
 
TlbEntryTrie::Handle trieHandle
 
uint64_t lruSeq
 

Additional Inherited Members

- 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)
 
static void unserializeGlobals (CheckpointIn &cp)
 

Detailed Description

Definition at line 78 of file pagetable.hh.

Constructor & Destructor Documentation

◆ TlbEntry()

RiscvISA::TlbEntry::TlbEntry ( )
inline

Definition at line 97 of file pagetable.hh.

Member Function Documentation

◆ serialize()

void RiscvISA::TlbEntry::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 40 of file pagetable.cc.

References asid, logBytes, lruSeq, paddr, pte, SERIALIZE_SCALAR, and vaddr.

Referenced by size().

◆ size()

Addr RiscvISA::TlbEntry::size ( ) const
inline

Definition at line 102 of file pagetable.hh.

References serialize(), and unserialize().

Referenced by RiscvISA::TLB::insert().

◆ unserialize()

void RiscvISA::TlbEntry::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 51 of file pagetable.cc.

References asid, logBytes, lruSeq, paddr, pte, UNSERIALIZE_SCALAR, and vaddr.

Referenced by size().

Member Data Documentation

◆ asid

uint16_t RiscvISA::TlbEntry::asid

◆ logBytes

unsigned RiscvISA::TlbEntry::logBytes

◆ lruSeq

uint64_t RiscvISA::TlbEntry::lruSeq

Definition at line 95 of file pagetable.hh.

Referenced by RiscvISA::TLB::insert(), RiscvISA::TLB::lookup(), serialize(), and unserialize().

◆ paddr

Addr RiscvISA::TlbEntry::paddr

◆ pte

PTESv39 RiscvISA::TlbEntry::pte

◆ trieHandle

TlbEntryTrie::Handle RiscvISA::TlbEntry::trieHandle

Definition at line 92 of file pagetable.hh.

Referenced by RiscvISA::TLB::unserialize().

◆ vaddr

Addr RiscvISA::TlbEntry::vaddr

Definition at line 84 of file pagetable.hh.

Referenced by serialize(), RiscvISA::TLB::unserialize(), and unserialize().


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

Generated on Mon Jun 8 2020 15:46:00 for gem5 by doxygen 1.8.13