diff options
author | Subv <subv2112@gmail.com> | 2015-01-03 18:09:11 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-01-03 18:09:11 +0100 |
commit | 0276a75f24cf12c2f82cf668a4562f8fa879f462 (patch) | |
tree | da4e4f22bd48e2d674fc102eb58ced7b8949dfcd /src/core | |
parent | Merge pull request #395 from lioncash/rev (diff) | |
download | yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.tar yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.tar.gz yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.tar.bz2 yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.tar.lz yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.tar.xz yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.tar.zst yuzu-0276a75f24cf12c2f82cf668a4562f8fa879f462.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/address_arbiter.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp index 38705e3cd..736bbc36a 100644 --- a/src/core/hle/kernel/address_arbiter.cpp +++ b/src/core/hle/kernel/address_arbiter.cpp @@ -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); |