libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::x86::Cr0 Class Reference

The x86 Control Register 0. More...

#include <Cr0.hh>

Public Member Functions

bool pe () const
 Get the PE (Protected-Mode Enable) bit.
 
bool mp () const
 Get the MP (Monitor co-processor) bit.
 
bool em () const
 Get the EM (Emulation) bit.
 
bool ts () const
 Get the TS (Task switched) bit.
 
bool et () const
 Get the ET (Extension type) bit.
 
bool ne () const
 Get the NE (Numeric error) bit.
 
bool wp () const
 Get the WP (Write protect) bit.
 
bool am () const
 Get the AM (Alignment mask) bit.
 
bool nw () const
 Get the NW (Not-write through) bit.
 
bool cd () const
 Get the CD (Cache disable) bit.
 
bool pg () const
 Get the PG (Paging) bit.
 
uint64_t value () const
 Get the raw value.
 
 Cr0 (uint64_t cr0)
 Construct a new Cr0 object.
 

Detailed Description

The x86 Control Register 0.

Constructor & Destructor Documentation

◆ Cr0()

introvirt::x86::Cr0::Cr0 ( uint64_t  cr0)
explicit

Construct a new Cr0 object.

Parameters
cr0The raw cr0 value

Member Function Documentation

◆ am()

bool introvirt::x86::Cr0::am ( ) const

Get the AM (Alignment mask) bit.

Returns
true if the AM bit is set
false if the AM bit is not set

◆ cd()

bool introvirt::x86::Cr0::cd ( ) const

Get the CD (Cache disable) bit.

Returns
true if the CD bit is set
false if the CD bit is not set

◆ em()

bool introvirt::x86::Cr0::em ( ) const

Get the EM (Emulation) bit.

Returns
true if the EM bit is set
false if the EM bit is not set

◆ et()

bool introvirt::x86::Cr0::et ( ) const

Get the ET (Extension type) bit.

Returns
true if the ET bit is set
false if the ET bit is not set

◆ mp()

bool introvirt::x86::Cr0::mp ( ) const

Get the MP (Monitor co-processor) bit.

Returns
true if the MP bit is set
false if the MP bit is not set

◆ ne()

bool introvirt::x86::Cr0::ne ( ) const

Get the NE (Numeric error) bit.

Returns
true if the NE bit is set
false if the NE bit is not set

◆ nw()

bool introvirt::x86::Cr0::nw ( ) const

Get the NW (Not-write through) bit.

Returns
true if the NW bit is set
false if the NW bit is not set

◆ pe()

bool introvirt::x86::Cr0::pe ( ) const

Get the PE (Protected-Mode Enable) bit.

Returns
true if the PE bit is set
false if the PE bit is not set

◆ pg()

bool introvirt::x86::Cr0::pg ( ) const

Get the PG (Paging) bit.

Returns
true if the PG bit is set
false if the PG bit is not set

◆ ts()

bool introvirt::x86::Cr0::ts ( ) const

Get the TS (Task switched) bit.

Returns
true if the TS bit is set
false if the TS bit is not set

◆ value()

uint64_t introvirt::x86::Cr0::value ( ) const

Get the raw value.

Returns
The raw value of the register

◆ wp()

bool introvirt::x86::Cr0::wp ( ) const

Get the WP (Write protect) bit.

Returns
true if the WP bit is set
false if the WP bit is not set

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