mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 19:00:17 +02:00
FEXCore: Fix incorrect RSP update for 16bit leave
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user