From 2f69250fc0fd5f3d7762be9497cb06f05d965433 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 7 Jan 2013 13:42:05 +0100 Subject: [PATCH] Store fcr0 and fcr31 in context (why was this commented out?) --- Core/HLE/sceKernelThread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index 5beb86cee8..e872e20764 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -915,9 +915,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 } @@ -941,9 +941,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)