Reset llBit on thread switch.

Never actually seen ll used, though... but this way it should
work as advertized, as long as a syscall doesn't happen in between...
This commit is contained in:
Unknown W. Brackets committed 2013-02-20 12:09:13 -08:00
1 parent 3a365fef64
commit 2bdc9dc491
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -1034,6 +1034,9 @@ void __KernelLoadContext(ThreadContext *ctx)
currentMIPS->fcr0 = ctx->fcr0;
currentMIPS->fcr31 = ctx->fcr31;
currentMIPS->fpcond = ctx->fpcond;
// Reset the llBit, the other thread may have touched memory.
currentMIPS->llBit = 0;
}
u32 __KernelResumeThreadFromWait(SceUID threadID)