Replace cpu_has* flags with single cpu_features variable and cpu_has_feature() getter.
This commit is contained in:
parent
03b5a44aca
commit
ce4436054d
8 changed files with 53 additions and 87 deletions
|
|
@ -946,7 +946,7 @@ static int opCPUID(uint32_t fetchdat)
|
|||
|
||||
static int opRDMSR(uint32_t fetchdat)
|
||||
{
|
||||
if (cpu_hasMSR)
|
||||
if (cpu_has_feature(CPU_FEATURE_MSR))
|
||||
{
|
||||
cpu_RDMSR();
|
||||
CLOCK_CYCLES(9);
|
||||
|
|
@ -959,7 +959,7 @@ static int opRDMSR(uint32_t fetchdat)
|
|||
|
||||
static int opWRMSR(uint32_t fetchdat)
|
||||
{
|
||||
if (cpu_hasMSR)
|
||||
if (cpu_has_feature(CPU_FEATURE_MSR))
|
||||
{
|
||||
cpu_WRMSR();
|
||||
CLOCK_CYCLES(9);
|
||||
|
|
|
|||
Loading…
Reference in a new issue