Store fcr0 and fcr31 in context (why was this commented out?)

This commit is contained in:
Henrik Rydgard 2013-01-07 13:42:05 +01:00
parent d7a8e899e4
commit 3615b36a82

View file

@ -922,9 +922,9 @@ void __KernelSaveContext(ThreadContext *ctx)
ctx->hi = currentMIPS->hi;
ctx->lo = currentMIPS->lo;
ctx->pc = currentMIPS->pc;
ctx->fcr0 = currentMIPS->fcr0;
ctx->fcr31 = currentMIPS->fcr31;
ctx->fpcond = currentMIPS->fpcond;
// ctx->fcr0 = currentMIPS->fcr0;
// ctx->fcr31 = currentMIPS->fcr31;
// TODO: Make VFPU saving optional/delayed, only necessary between VFPU-attr-marked threads
}
@ -948,9 +948,9 @@ void __KernelLoadContext(ThreadContext *ctx)
currentMIPS->hi = ctx->hi;
currentMIPS->lo = ctx->lo;
currentMIPS->pc = ctx->pc;
currentMIPS->fcr0 = ctx->fcr0;
currentMIPS->fcr31 = ctx->fcr31;
currentMIPS->fpcond = ctx->fpcond;
// currentMIPS->fcr0 = ctx->fcr0;
// currentMIPS->fcr31 = ctx->fcr31;
}
u32 __KernelResumeThreadFromWait(SceUID threadID)