Check IOPL on 286 task segments.

This commit is contained in:
OBattler
2024-02-22 00:56:28 +01:00
parent 58a0c840c1
commit fcabd353d9

View File

@@ -1605,8 +1605,12 @@ checkio(uint32_t port, int mask)
{
uint32_t t;
if (!(tr.access & 0x08))
if (!(tr.access & 0x08)) {
if ((CPL) > (IOPL))
return 1;
return 0;
}
cpl_override = 1;
t = readmemw(tr.base, 0x66);