pykd/pykd/cpureg.h
SND\kernelnet_cp b91bb8ca38 [0.2.x] added : getProcessorMode routine
git-svn-id: https://pykd.svn.codeplex.com/svn@78889 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00

53 lines
964 B
C++

#pragma once
#include "variant.h"
namespace pykd {
///////////////////////////////////////////////////////////////////////////////////
class CpuReg : public intBase {
public:
CpuReg( const std::string &regName );
CpuReg( ULONG index );
std::string
name() const {
return m_name;
}
ULONG index() const {
return m_index;
}
virtual BaseTypeVariant getValue();
private:
std::string m_name;
ULONG m_index;
};
///////////////////////////////////////////////////////////////////////////////////
CpuReg getRegByName( const std::string &regName );
CpuReg getRegByIndex( ULONG index );
ULONG64 loadMSR( ULONG msr );
void setMSR( ULONG msr, ULONG64 value);
std::string getProcessorMode();
std::string getProcessorType();
///////////////////////////////////////////////////////////////////////////////////
}; // end pykd namespace