From b21c49352ea56f23ececbe3c87f0fc681be8024b Mon Sep 17 00:00:00 2001 From: wsxarcher Date: Sun, 28 Jun 2026 16:05:21 +0200 Subject: [PATCH] Core: Start a new block for the next op in full SMC check --- FEXCore/Source/Interface/Core/Core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FEXCore/Source/Interface/Core/Core.cpp b/FEXCore/Source/Interface/Core/Core.cpp index 036a0e8db..1833efe95 100644 --- a/FEXCore/Source/Interface/Core/Core.cpp +++ b/FEXCore/Source/Interface/Core/Core.cpp @@ -650,6 +650,7 @@ ContextImpl::GenerateIR(FEXCore::Core::InternalThreadState* Thread, uint64_t Gue Thread->OpDispatcher->SetTrueJumpTarget(InvalidateCodeCond, CodeWasChangedBlock); Thread->OpDispatcher->SetCurrentCodeBlock(CodeWasChangedBlock); + Thread->OpDispatcher->StartNewBlock(); Thread->OpDispatcher->_ThreadRemoveCodeEntry(); Thread->OpDispatcher->ExitFunction(Thread->OpDispatcher->_InlineEntrypointOffset(GPRSize, InstAddress - GuestRIP)); @@ -657,6 +658,7 @@ ContextImpl::GenerateIR(FEXCore::Core::InternalThreadState* Thread, uint64_t Gue Thread->OpDispatcher->SetFalseJumpTarget(InvalidateCodeCond, NextOpBlock); Thread->OpDispatcher->SetCurrentCodeBlock(NextOpBlock); + Thread->OpDispatcher->StartNewBlock(); } if (TableInfo && TableInfo->OpcodeDispatcher.OpDispatch) {