The CPL checks introduced in build 6212 need to only be made in protected mode, fixes the Daewoo CB52X-SI.

This commit is contained in:
OBattler
2024-12-03 17:48:07 +01:00
parent 028d5da6da
commit cc8cfb7b3f
2 changed files with 3 additions and 3 deletions

View File

@@ -878,7 +878,7 @@ opINVD(uint32_t fetchdat)
static int
opWBINVD(uint32_t fetchdat)
{
if (CPL) {
if ((CPL || (cpu_state.eflags & VM_FLAG)) && (cr0 & 1)) {
x86gpf(NULL, 0);
return 1;
}