Core: Add System parameter to CPUThreadGuard.

This commit is contained in:
Admiral H. Curtiss
2023-03-08 01:58:05 +01:00
parent c592c94395
commit 912cd456fb
21 changed files with 86 additions and 74 deletions

View File

@ -997,7 +997,7 @@ void ProcessCommands(bool loop_until_continue)
case 'm':
{
ASSERT(Core::IsCPUThread());
Core::CPUThreadGuard guard;
Core::CPUThreadGuard guard(system);
ReadMemory(guard);
break;
@ -1005,7 +1005,7 @@ void ProcessCommands(bool loop_until_continue)
case 'M':
{
ASSERT(Core::IsCPUThread());
Core::CPUThreadGuard guard;
Core::CPUThreadGuard guard(system);
WriteMemory(guard);
auto& ppc_state = system.GetPPCState();