From e65ed66631cd228a4834be83ee5c1a2e68584442 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 1 Nov 2025 11:51:10 +0000 Subject: [PATCH] Revert "[core/hle/kernel] fix scoped JIT remnants (#2912)" This reverts commit bfb112dad16dd4ef460aaf97f459c2bbde3fabe6. --- src/core/hle/kernel/k_process.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 355a2a5f3b..7504947994 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -1272,8 +1269,13 @@ void KProcess::InitializeInterfaces() { #ifdef HAS_NCE if (this->IsApplication() && Settings::IsNceEnabled()) { - for (size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) + // Register the scoped JIT handler before creating any NCE instances + // so that its signal handler will appear first in the signal chain. + Core::ScopedJitExecution::RegisterHandler(); + + for (size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { m_arm_interfaces[i] = std::make_unique(m_kernel.System(), true, i); + } } else #endif if (this->Is64Bit()) {