From 430d4c718275aae95e94a1d4baf942cc6f3c86f7 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" <arkolbed@gmail.com> Date: Thu, 5 Nov 2015 18:13:15 -0600 Subject: [PATCH] Fix rare deadlock in the MMIO handler. --- src/xenia/cpu/mmio_handler.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/cpu/mmio_handler.cc b/src/xenia/cpu/mmio_handler.cc index 6f5cfeb1c..980ff12f1 100644 --- a/src/xenia/cpu/mmio_handler.cc +++ b/src/xenia/cpu/mmio_handler.cc @@ -172,6 +172,7 @@ bool MMIOHandler::CheckWriteWatch(X64Context* thread_context, if (cur_access != memory::PageAccess::kReadOnly && cur_access != memory::PageAccess::kNoAccess) { // Another thread has cleared this write watch. Abort. + global_critical_region_.mutex().unlock(); return true; }