Kernel: Check thread switch PC in release.

Hopefully won't be noticeable, it's not that hot and very cheap.
This commit is contained in:
Unknown W. Brackets committed 2020-07-13 01:51:11 -07:00
1 parent ae224b3893
commit fc00b1b972
1 file changed
-2
-2
View File
@@ -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) {