From fc00b1b9720eda7a8aecc199c4ce2eaee43b2583 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 13 Jul 2020 01:50:39 -0700 Subject: [PATCH] Kernel: Check thread switch PC in release. Hopefully won't be noticeable, it's not that hot and very cheap. --- Core/HLE/sceKernelThread.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index 2b4e998ba6..26da3ba146 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -1468,11 +1468,9 @@ void __KernelLoadContext(PSPThreadContext *ctx, bool vfpuEnabled) { memcpy(currentMIPS->vfpuCtrl, ctx->vfpuCtrl, sizeof(ctx->vfpuCtrl)); } -#ifdef _DEBUG if (!Memory::IsValidAddress(ctx->pc)) { Core_ExecException(ctx->pc, currentMIPS->pc, ExecExceptionType::THREAD); } -#endif memcpy(currentMIPS->other, ctx->other, sizeof(ctx->other)); if (MIPSComp::jit) {