Added dummy RDPMC implementation.

This commit is contained in:
TomW 2015-08-25 19:32:15 +01:00
commit b53c7d32f9
2 changed files with 16 additions and 4 deletions

View file

@ -16,3 +16,15 @@ static int opRDTSC(uint32_t fetchdat)
CLOCK_CYCLES(1);
return 0;
}
static int opRDPMC(uint32_t fetchdat)
{
if (ECX > 1 || (!(cr4 & CR4_PCE) && (cr0 & 1) && CPL))
{
x86gpf("RDPMC not allowed", 0);
return 1;
}
EAX = EDX = 0;
CLOCK_CYCLES(1);
return 0;
}