gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
X86ISA::PageTableOps Class Reference

Page table operations specific to x86 ISA. More...

#include <pagetable.hh>

Public Member Functions

void setPTEFields (PageTableEntry &PTE, uint64_t flags=0)
 
Addr getBasePtr (ThreadContext *tc)
 returns the physical memory address of the page table More...
 
Addr getPnum (PageTableEntry PTE)
 returns the page number out of a page table entry More...
 
bool isUncacheable (const PageTableEntry PTE)
 
bool isReadOnly (PageTableEntry PTE)
 
void setPnum (PageTableEntry &PTE, Addr paddr)
 sets the page number in a page table entry More...
 
std::vector< uint64_t > getOffsets (Addr vaddr)
 returns the offsets to index in every level of a page table, contained in a virtual address More...
 

Detailed Description

Page table operations specific to x86 ISA.

Indended to be used as parameter of MultiLevelPageTable.

Definition at line 171 of file pagetable.hh.

Member Function Documentation

Addr X86ISA::PageTableOps::getBasePtr ( ThreadContext tc)
inline

returns the physical memory address of the page table

Definition at line 183 of file pagetable.hh.

References DPRINTF, and X86ISA::pageTablePhysAddr.

std::vector<uint64_t> X86ISA::PageTableOps::getOffsets ( Addr  vaddr)
inline

returns the offsets to index in every level of a page table, contained in a virtual address

Definition at line 215 of file pagetable.hh.

References X86ISA::addr.

Addr X86ISA::PageTableOps::getPnum ( PageTableEntry  PTE)
inline

returns the page number out of a page table entry

Definition at line 191 of file pagetable.hh.

bool X86ISA::PageTableOps::isReadOnly ( PageTableEntry  PTE)
inline

Definition at line 201 of file pagetable.hh.

bool X86ISA::PageTableOps::isUncacheable ( const PageTableEntry  PTE)
inline

Definition at line 196 of file pagetable.hh.

void X86ISA::PageTableOps::setPnum ( PageTableEntry &  PTE,
Addr  paddr 
)
inline

sets the page number in a page table entry

Definition at line 207 of file pagetable.hh.

void X86ISA::PageTableOps::setPTEFields ( PageTableEntry &  PTE,
uint64_t  flags = 0 
)
inline

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

Generated on Fri Jun 9 2017 13:04:42 for gem5 by doxygen 1.8.6