FEXCore: Fix incorrect RSP update for 16bit leave

This commit is contained in:
Simon Scherer committed 2026-06-19 14:23:16 +02:00
1 parent c8c63faf15
commit 9fa3221687
1 file changed
+1 -1
@@ -502,7 +502,7 @@ void OpDispatchBuilder::LEAVEOp(OpcodeArgs) {
auto NewGPR = Pop(OperandSize, SP);
// Store the new stack pointer
StoreGPRRegister(X86State::REG_RSP, SP, OperandSize);
StoreGPRRegister(X86State::REG_RSP, SP, GPRSize);
// Store what we loaded to RBP
StoreGPRRegister(X86State::REG_RBP, NewGPR, OperandSize);