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

#include <pagetable.hh>

Inheritance diagram for AlphaISA::TlbEntry:
Serializable

Public Member Functions

 TlbEntry (const TlbEntry &)=default
 
 TlbEntry (Addr _asn, Addr _vaddr, Addr _paddr, bool uncacheable, bool read_only)
 
 TlbEntry ()
 
void updateVaddr (Addr new_vaddr)
 
Addr pageStart ()
 
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 tag
 
Addr ppn
 
uint8_t xre
 
uint8_t xwe
 
uint8_t asn
 
bool asma
 
bool fonr
 
bool fonw
 
bool valid
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Definition at line 95 of file pagetable.hh.

Constructor & Destructor Documentation

◆ TlbEntry() [1/3]

AlphaISA::TlbEntry::TlbEntry ( const TlbEntry )
default

◆ TlbEntry() [2/3]

AlphaISA::TlbEntry::TlbEntry ( Addr  _asn,
Addr  _vaddr,
Addr  _paddr,
bool  uncacheable,
bool  read_only 
)
inline

Definition at line 111 of file pagetable.hh.

References MipsISA::vaddr, AlphaISA::VAddr::vpn(), and warn.

◆ TlbEntry() [3/3]

AlphaISA::TlbEntry::TlbEntry ( )
inline

Definition at line 130 of file pagetable.hh.

Member Function Documentation

◆ pageStart()

Addr AlphaISA::TlbEntry::pageStart ( )
inline

Definition at line 144 of file pagetable.hh.

References AlphaISA::PageShift, serialize(), and unserialize().

◆ serialize()

void AlphaISA::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 38 of file pagetable.cc.

References asma, asn, fonr, fonw, ppn, SERIALIZE_SCALAR, tag, valid, xre, and xwe.

◆ unserialize()

void AlphaISA::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 52 of file pagetable.cc.

References asma, asn, fonr, fonw, ppn, tag, UNSERIALIZE_SCALAR, valid, xre, and xwe.

◆ updateVaddr()

void AlphaISA::TlbEntry::updateVaddr ( Addr  new_vaddr)
inline

Definition at line 137 of file pagetable.hh.

References MipsISA::vaddr, and AlphaISA::VAddr::vpn().

Member Data Documentation

◆ asma

bool AlphaISA::TlbEntry::asma

◆ asn

uint8_t AlphaISA::TlbEntry::asn

◆ fonr

bool AlphaISA::TlbEntry::fonr

◆ fonw

bool AlphaISA::TlbEntry::fonw

◆ ppn

Addr AlphaISA::TlbEntry::ppn

◆ tag

Addr AlphaISA::TlbEntry::tag

◆ valid

bool AlphaISA::TlbEntry::valid

◆ xre

uint8_t AlphaISA::TlbEntry::xre

Definition at line 99 of file pagetable.hh.

Referenced by AlphaISA::ISA::readIpr(), serialize(), AlphaISA::ISA::setIpr(), and unserialize().

◆ xwe

uint8_t AlphaISA::TlbEntry::xwe

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

Generated on Fri Feb 28 2020 16:27:18 for gem5 by doxygen 1.8.13