Fixed LOCK legality with prefixes, closes #4189.

This commit is contained in:
OBattler
2024-02-23 07:10:15 +01:00
parent 4ee4e8f2b7
commit 6de7c7cd5e
7 changed files with 193 additions and 58 deletions

View File

@@ -280,7 +280,10 @@ exec386_2386(int32_t cycs)
cpu_state.pc++;
cpu_state.eflags &= ~(RF_FLAG);
if (opcode == 0xf0)
in_lock = 1;
x86_2386_opcodes[(opcode | cpu_state.op32) & 0x3ff](fetchdat);
in_lock = 0;
if (x86_was_reset)
break;
}