summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-01-03 18:09:11 +0100
committerSubv <subv2112@gmail.com>2015-01-03 18:09:11 +0100
commit0276a75f24cf12c2f82cf668a4562f8fa879f462 (patch)
treeda4e4f22bd48e2d674fc102eb58ced7b8949dfcd /src/core
parentMerge pull request #395 from lioncash/rev (diff)
downloadyuzu-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.cpp11
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);