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 2020-07-13 01:50:39 -07:00
parent ae224b3893
commit fc00b1b972

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) {