From f6abbedbd19ed393b0d146474d19f6f033b27e55 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Tue, 12 Nov 2024 19:59:59 +0000 Subject: [PATCH] ARM64EC: Fix typo so TF is unset handling exceptions --- Source/Windows/ARM64EC/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Windows/ARM64EC/Module.cpp b/Source/Windows/ARM64EC/Module.cpp index c61422b7c..6022ab8e9 100644 --- a/Source/Windows/ARM64EC/Module.cpp +++ b/Source/Windows/ARM64EC/Module.cpp @@ -445,7 +445,7 @@ static void RethrowGuestException(const EXCEPTION_RECORD& Rec, ARM64_NT_CONTEXT& // Current ARM64EC windows can only restore NZCV+SS when returning from an exception and other flags are left untouched from the handler context. // TODO: Can extend wine to support this by mapping the remaining EFlags into reserved cpsr members. uint32_t EFlags = CTX->ReconstructCompactedEFLAGS(Thread, false, nullptr, 0); - EFlags &= (1 << FEXCore::X86State::RFLAG_TF_LOC); + EFlags &= ~(1 << FEXCore::X86State::RFLAG_TF_LOC); CTX->SetFlagsFromCompactedEFLAGS(Thread, EFlags); Args->Rec = FEX::Windows::HandleGuestException(Fault, Rec, Args->Context.Pc, Args->Context.X8);