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 | Friends | List of all members
etiss::mm::PTEFormatBuilder Class Reference

Sigleton builder utility to build up customized PTE format. More...

#include <PTEFormatBuilder.h>

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

Public Member Functions

PTEFormatBuilderAddPPNBitField (uint32_t begin, uint32_t end)
 Add mandatory bit field, Physical Page Number (PPN), for PTE. More...
 
PTEFormatBuilderAddPageOffset (uint32_t begin, uint32_t end)
 Add mandatory bit field for page size offset (Not included in PTE neither in PTE format) More...
 
PTEFormatBuilderAddFlag (std::string name, uint32_t begin, uint32_t end)
 Add optional bit field for protection flag in PTE. More...
 
PTEFormatBuilderAddFlag (std::string name, uint32_t pos)
 Add optional bit field for protection flag in PTE. More...
 

Static Public Member Functions

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

Private Member Functions

 PTEFormatBuilder (PTEFormat &format)
 

Private Attributes

PTEFormatformat_
 

Friends

class PTEFormat
 

Detailed Description

Sigleton builder utility to build up customized PTE format.

Definition at line 62 of file PTEFormatBuilder.h.

Constructor & Destructor Documentation

◆ PTEFormatBuilder()

etiss::mm::PTEFormatBuilder::PTEFormatBuilder ( PTEFormat format)
inlineprivate

Definition at line 112 of file PTEFormatBuilder.h.

Referenced by Instance().

Here is the caller graph for this function:

Member Function Documentation

◆ AddFlag() [1/2]

PTEFormatBuilder& etiss::mm::PTEFormatBuilder::AddFlag ( std::string  name,
uint32_t  begin,
uint32_t  end 
)
inline

Add optional bit field for protection flag in PTE.

Definition at line 96 of file PTEFormatBuilder.h.

References etiss::mm::PTEFormat::AddBitField(), and format_.

Here is the call graph for this function:

◆ AddFlag() [2/2]

PTEFormatBuilder& etiss::mm::PTEFormatBuilder::AddFlag ( std::string  name,
uint32_t  pos 
)
inline

Add optional bit field for protection flag in PTE.

Definition at line 105 of file PTEFormatBuilder.h.

References etiss::mm::PTEFormat::AddBitField(), and format_.

Here is the call graph for this function:

◆ AddPageOffset()

PTEFormatBuilder& etiss::mm::PTEFormatBuilder::AddPageOffset ( uint32_t  begin,
uint32_t  end 
)
inline

Add mandatory bit field for page size offset (Not included in PTE neither in PTE format)

Definition at line 87 of file PTEFormatBuilder.h.

References etiss::mm::PTEFormat::AddBitField(), and format_.

Here is the call graph for this function:

◆ AddPPNBitField()

PTEFormatBuilder& etiss::mm::PTEFormatBuilder::AddPPNBitField ( uint32_t  begin,
uint32_t  end 
)
inline

Add mandatory bit field, Physical Page Number (PPN), for PTE.

Definition at line 77 of file PTEFormatBuilder.h.

References etiss::mm::PTEFormat::AddBitField(), and format_.

Here is the call graph for this function:

◆ Instance()

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

Get the singleton instance.

Definition at line 68 of file PTEFormatBuilder.h.

References etiss::mm::PTEFormat::Instance(), and PTEFormatBuilder().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ PTEFormat

friend class PTEFormat
friend

Definition at line 116 of file PTEFormatBuilder.h.

Member Data Documentation

◆ format_

PTEFormat& etiss::mm::PTEFormatBuilder::format_
private

Definition at line 114 of file PTEFormatBuilder.h.

Referenced by AddFlag(), AddPageOffset(), and AddPPNBitField().


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