StuBS
Core::MSR< id > Class Template Reference

Access to the Model-Specific Register (MSR) More...

#include <core_msr.h>

Classes

union  uint64_parts
 Helper to access low and high bits of a 64 bit value. More...
 

Static Public Member Functions

static uint64_t read ()
 Read the value of the current MSR. More...
 
static void write (uint64_t value)
 Write a value into the current MSR. More...
 

Detailed Description

template<enum MSRs id>
class Core::MSR< id >

Access to the Model-Specific Register (MSR)

See also
ISDMv3, 9.4 Model-Specific Registers (MSRs)
ISDMv4
Template Parameters
idID of the Model-Specific Register to access

Member Function Documentation

◆ read()

template<enum MSRs id>
static uint64_t Core::MSR< id >::read ( )
inlinestatic

Read the value of the current MSR.

Returns
Value stored in the MSR
See also
ISDMv2, Chapter 4. RDMSR - Read from Model Specific Register

◆ write()

template<enum MSRs id>
static void Core::MSR< id >::write ( uint64_t  value)
inlinestatic

Write a value into the current MSR.

Parameters
valueValue to write into the MSR
See also
ISDMv2, Chapter 5. WRMSR - Write to Model Specific Register

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