Add emulation of System Management Mode.

This commit is contained in:
SarahW 2020-10-31 20:30:10 +00:00
commit 0cbbd22c88
8 changed files with 295 additions and 38 deletions

View file

@ -470,3 +470,14 @@ static int op0F01_286(uint32_t fetchdat)
return op0F01_common(fetchdat, 0, 1, 0);
}
static int opRSM(uint32_t fetchdat)
{
if (cpu_cur_status & CPU_STATUS_SMM)
x86_smi_leave();
else
x86illegal();
return 1;
}