diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-02-13 16:08:36 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-13 16:08:36 +1300 |
| commit | a4729a026f97599bbccf9f900d548fba9e391ad3 (patch) | |
| tree | eee7b79d2758d64f44aba40e627b058b3f5a9a1a /Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | |
| parent | f37113204fe8e930c4e33e5e0149fbe0309fe425 (diff) | |
| parent | 6f0266e8deb9b9d46fb6f291db696fed06c1bed0 (diff) | |
Merge pull request #11554 from JosJuice/host-lock-cpu
DolphinQt: Properly lock CPU before accessing emulated memory
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | 6 |
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));
|
