ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
etiss::mm::PTEFormat Class Reference

#include <PTEFormat.h>

Collaboration diagram for etiss::mm::PTEFormat:
Collaboration graph
[legend]

Public Member Functions

void AddBitField (std::string name, uint32_t begin, uint32_t end)
 Called only by PTEFormatBuilder. More...
 
void DumpBitFild (std::string name)
 Dump the details of the bit field according to given name. More...
 
void Dump ()
 Dump the details of the whole PTE format. More...
 
uint32_t GetPTELength () const
 
PTEFormatMapGetFormatMap ()
 

Static Public Member Functions

static PTEFormatInstance ()
 Get the singleton instance. More...
 

Private Member Functions

 PTEFormat ()
 

Private Attributes

PTEFormatMap format_map_
 
uint32_t pte_len_
 

Detailed Description

Definition at line 64 of file PTEFormat.h.

Constructor & Destructor Documentation

◆ PTEFormat()

etiss::mm::PTEFormat::PTEFormat ( )
inlineprivate

Definition at line 98 of file PTEFormat.h.

Referenced by Instance().

Here is the caller graph for this function:

Member Function Documentation

◆ AddBitField()

void etiss::mm::PTEFormat::AddBitField ( std::string  name,
uint32_t  begin,
uint32_t  end 
)

Called only by PTEFormatBuilder.

See also
etiss::mm::PTEFormatBuilder

Definition at line 57 of file PTEFormat.cpp.

References format_map_, and pte_len_.

Referenced by etiss::mm::PTEFormatBuilder::AddFlag(), etiss::mm::PTEFormatBuilder::AddPageOffset(), and etiss::mm::PTEFormatBuilder::AddPPNBitField().

Here is the caller graph for this function:

◆ Dump()

void etiss::mm::PTEFormat::Dump ( )

Dump the details of the whole PTE format.

Definition at line 81 of file PTEFormat.cpp.

References format_map_.

Referenced by etiss::mm::PTE::ClearFlagByName(), etiss::mm::PTE::GetByName(), etiss::mm::PTE::SetFlagByName(), and etiss::mm::PTE::Update().

Here is the caller graph for this function:

◆ DumpBitFild()

void etiss::mm::PTEFormat::DumpBitFild ( std::string  name)

Dump the details of the bit field according to given name.

Definition at line 66 of file PTEFormat.cpp.

References format_map_.

Referenced by etiss::mm::PTE::Dump().

Here is the caller graph for this function:

◆ GetFormatMap()

PTEFormatMap& etiss::mm::PTEFormat::GetFormatMap ( )
inline

◆ GetPTELength()

uint32_t etiss::mm::PTEFormat::GetPTELength ( ) const
inline

Definition at line 93 of file PTEFormat.h.

References pte_len_.

Referenced by etiss::mm::PTE::Dump(), and etiss::mm::PTE::Update().

Here is the caller graph for this function:

◆ Instance()

static PTEFormat& etiss::mm::PTEFormat::Instance ( )
inlinestatic

Get the singleton instance.

Definition at line 70 of file PTEFormat.h.

References PTEFormat().

Referenced by etiss::mm::PTE::ClearFlagByName(), etiss::mm::PTE::Dump(), etiss::mm::PTE::GetByName(), etiss::mm::PTEFormatBuilder::Instance(), etiss::mm::PTE::SetFlagByName(), etiss::mm::MMU::Translate(), and etiss::mm::PTE::Update().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ format_map_

PTEFormatMap etiss::mm::PTEFormat::format_map_
private

Definition at line 99 of file PTEFormat.h.

Referenced by AddBitField(), Dump(), DumpBitFild(), and GetFormatMap().

◆ pte_len_

uint32_t etiss::mm::PTEFormat::pte_len_
private

Definition at line 100 of file PTEFormat.h.

Referenced by AddBitField(), and GetPTELength().


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