summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp
index bb2fc03c1b..a3d1ddec26 100644
--- a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp
@@ -483,7 +483,11 @@ void CodeDiffDialog::OnSetBLR()
Common::Symbol* symbol = g_symbolDB.GetSymbolFromAddr(item->data(Qt::UserRole).toUInt());
if (!symbol)
return;
- PowerPC::debug_interface.SetPatch(symbol->address, 0x4E800020);
+
+ {
+ Core::CPUThreadGuard guard;
+ PowerPC::debug_interface.SetPatch(guard, symbol->address, 0x4E800020);
+ }
int row = item->row();
m_matching_results_table->item(row, 0)->setForeground(QBrush(Qt::red));