Friedrich-Alexander-Universität Erlangen-Nürnberg  /   Technische Fakultät  /   Department Informatik
Core::MSR< id > Class Template Reference

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

#include <machine/core_msr.h>

Classes

struct  uint64_parts.__unnamed__
 

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

Class Documentation

◆ Core::MSR::uint64_parts.__unnamed__

struct Core::MSR::uint64_parts.__unnamed__

template<enum MSRs id>
struct Core::MSR< id >::uint64_parts.__unnamed__

Class Members
uint32_t low
uint32_t high

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: