Skip to content

Commit

Permalink
Kernel: Check thread switch PC in release.
Browse files Browse the repository at this point in the history
Hopefully won't be noticeable, it's not that hot and very cheap.
  • Loading branch information
unknownbrackets committed Jul 13, 2020
1 parent ae224b3 commit fc00b1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Core/HLE/sceKernelThread.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit fc00b1b

Please sign in to comment.