Dispatcher: Keep the call-ret stack balanced for thunk callbacks

This commit is contained in:
Billy Laws committed 2025-07-24 14:53:09 +01:00
1 parent 20efadbe66
commit 3efb2379ee
1 file changed
+1
@@ -516,6 +516,7 @@ void Dispatcher::EmitDispatcher() {
// load static regs
FillStaticRegs();
stp<ARMEmitter::IndexType::PRE>(ARMEmitter::XReg::zr, ARMEmitter::XReg::zr, REG_CALLRET_SP, -0x10);
// Now go back to the regular dispatcher loop
b(&LoopTop);