Initial SMM (System Management Mode) emulation

This commit is contained in:
Melissa Goad
2020-01-12 01:04:05 -06:00
parent ed9d0f4d1b
commit 391e71c236
9 changed files with 441 additions and 37 deletions

View File

@@ -957,3 +957,15 @@ static int opWRMSR(uint32_t fetchdat)
return 1;
}
static int opRSM(uint32_t fetchdat)
{
if(!in_smm)
{
leave_smm();
if(smi_latched) enter_smm();
return 0;
}
cpu_state.pc = cpu_state.oldpc;
x86illegal();
return 1;
}