Thread: Fixed to wait on address when in arbitration.

This commit is contained in:
bunnei
2014-12-03 00:46:34 -05:00
parent a6bf3fd613
commit dd203f7068
3 changed files with 31 additions and 11 deletions

View File

@ -53,7 +53,7 @@ ResultCode ArbitrateAddress(Handle handle, ArbitrationType type, u32 address, s3
// Wait current thread (acquire the arbiter)...
case ArbitrationType::WaitIfLessThan:
if ((s32)Memory::Read32(address) <= value) {
Kernel::WaitCurrentThread(WAITTYPE_ARB, handle);
Kernel::WaitCurrentThread(WAITTYPE_ARB, handle, address);
HLE::Reschedule(__func__);
}
break;