Skip to content
Snippets Groups Projects
Commit cc23269f authored by bunnei's avatar bunnei
Browse files

Merge pull request #407 from Subv/arbiter

AddressArbiter: Ported arbitration type 2 from 3dmoo.
parents 81e255a4 0276a75f
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,17 @@ ResultCode ArbitrateAddress(Handle handle, ArbitrationType type, u32 address, s3
HLE::Reschedule(__func__);
}
break;
case ArbitrationType::DecrementAndWaitIfLessThan:
{
s32 memory_value = Memory::Read32(address) - 1;
Memory::Write32(address, memory_value);
if (memory_value <= value) {
Kernel::WaitCurrentThread(WAITTYPE_ARB, handle, address);
HLE::Reschedule(__func__);
}
break;
}
default:
LOG_ERROR(Kernel, "unknown type=%d", type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment