mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 10:51:06 +00:00
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:
parent
3a365fef64
commit
2bdc9dc491
@ -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)
|
||||
|
@ -372,7 +372,7 @@ namespace MIPSInt
|
||||
if (rt != 0) {
|
||||
R(rt) = 1;
|
||||
}
|
||||
} else {
|
||||
} else if (rt != 0) {
|
||||
R(rt) = 0;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user