Added dummy RDPMC implementation.
This commit is contained in:
parent
e6bd0093bd
commit
b53c7d32f9
2 changed files with 16 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue