gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::RiscvISA::TlbEntry Struct Reference

#include <pagetable.hh>

Inheritance diagram for gem5::RiscvISA::TlbEntry:
gem5::Serializable

Public Member Functions

 TlbEntry ()
Addr size () const
void reset ()
void serialize (CheckpointOut &cp) const override
 Serialize an object.
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
Public Member Functions inherited from gem5::Serializable
 Serializable ()
virtual ~Serializable ()
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section.
void serializeSection (CheckpointOut &cp, const std::string &name) const
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object.
void unserializeSection (CheckpointIn &cp, const std::string &name)

Public Attributes

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

Additional Inherited Members

Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section.
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.

Detailed Description

Definition at line 94 of file pagetable.hh.

Constructor & Destructor Documentation

◆ TlbEntry()

gem5::RiscvISA::TlbEntry::TlbEntry ( )
inline

Definition at line 115 of file pagetable.hh.

References gpte, logBytes, lruSeq, paddr, pte, and vaddr.

Member Function Documentation

◆ reset()

void gem5::RiscvISA::TlbEntry::reset ( )
inline

Definition at line 125 of file pagetable.hh.

References gpte, logBytes, lruSeq, paddr, pte, and vaddr.

◆ serialize()

void gem5::RiscvISA::TlbEntry::serialize ( CheckpointOut & cp) const
overridevirtual

Serialize an object.

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

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 42 of file pagetable.cc.

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

◆ size()

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

Definition at line 120 of file pagetable.hh.

References logBytes.

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

◆ unserialize()

void gem5::RiscvISA::TlbEntry::unserialize ( CheckpointIn & cp)
overridevirtual

Unserialize an object.

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

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 53 of file pagetable.cc.

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

Member Data Documentation

◆ asid

uint16_t gem5::RiscvISA::TlbEntry::asid

Definition at line 104 of file pagetable.hh.

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

◆ gpte

PTESv39 gem5::RiscvISA::TlbEntry::gpte

Definition at line 108 of file pagetable.hh.

Referenced by reset(), and TlbEntry().

◆ logBytes

unsigned gem5::RiscvISA::TlbEntry::logBytes

Definition at line 102 of file pagetable.hh.

Referenced by gem5::RiscvISA::TLB::insert(), reset(), serialize(), size(), TlbEntry(), and unserialize().

◆ lruSeq

uint64_t gem5::RiscvISA::TlbEntry::lruSeq

◆ paddr

Addr gem5::RiscvISA::TlbEntry::paddr

◆ pte

PTESv39 gem5::RiscvISA::TlbEntry::pte

Definition at line 106 of file pagetable.hh.

Referenced by gem5::RiscvISA::TLB::insert(), reset(), serialize(), TlbEntry(), and unserialize().

◆ trieHandle

TlbEntryTrie::Handle gem5::RiscvISA::TlbEntry::trieHandle

Definition at line 110 of file pagetable.hh.

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

◆ vaddr

Addr gem5::RiscvISA::TlbEntry::vaddr

Definition at line 100 of file pagetable.hh.

Referenced by gem5::RiscvISA::TLB::insert(), reset(), serialize(), TlbEntry(), and unserialize().


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

Generated on Sat Oct 18 2025 08:07:02 for gem5 by doxygen 1.14.0