From 912cd456fb4563c3407c303997c59c25db4f4c95 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Wed, 8 Mar 2023 01:58:05 +0100 Subject: Core: Add System parameter to CPUThreadGuard. --- Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp') 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 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(); -- cgit v1.2.3