summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-03-08 01:58:05 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-03-08 22:41:42 +0100
commit912cd456fb4563c3407c303997c59c25db4f4c95 (patch)
tree3c43ca6f07f9296400cf0064a70a35fabe886453 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parentc592c94395c8ef271eef331ba27d2afaa694c5e9 (diff)
Core: Add System parameter to CPUThreadGuard.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
index f5fa095166..d232fede85 100644
--- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
@@ -330,7 +330,7 @@ void CodeWidget::UpdateCallstack()
std::vector<Dolphin_Debugger::CallstackEntry> stack;
const bool success = [&stack] {
- Core::CPUThreadGuard guard;
+ Core::CPUThreadGuard guard(Core::System::GetInstance());
return Dolphin_Debugger::GetCallstack(Core::System::GetInstance(), guard, stack);
}();
@@ -461,8 +461,8 @@ void CodeWidget::StepOver()
if (!cpu.IsStepping())
return;
- const UGeckoInstruction inst = [] {
- Core::CPUThreadGuard guard;
+ const UGeckoInstruction inst = [&] {
+ Core::CPUThreadGuard guard(system);
return PowerPC::HostRead_Instruction(guard, PowerPC::ppcState.pc);
}();
@@ -506,7 +506,7 @@ void CodeWidget::StepOut()
clock::time_point timeout = clock::now() + std::chrono::seconds(5);
{
- Core::CPUThreadGuard guard;
+ Core::CPUThreadGuard guard(system);
PowerPC::breakpoints.ClearAllTemporary();