Core: Add System parameter to CPUThreadGuard.

This commit is contained in:
Admiral H. Curtiss committed 2023-03-08 22:41:42 +01:00
1 parent c592c94395
commit 912cd456fb
21 files changed
+86 -74

No files matched your search

@@ -343,7 +343,7 @@ void Interpreter::unknown_instruction(UGeckoInstruction inst)
{
ASSERT(Core::IsCPUThread());
auto& system = Core::System::GetInstance();
Core::CPUThreadGuard guard;
Core::CPUThreadGuard guard(system);
const u32 opcode = PowerPC::HostRead_U32(guard, last_pc);
const std::string disasm = Common::GekkoDisassembler::Disassemble(opcode, last_pc);
@@ -10,6 +10,7 @@
#include "Core/HLE/HLE.h"
#include "Core/PowerPC/Interpreter/ExceptionUtils.h"
#include "Core/PowerPC/PowerPC.h"
#include "Core/System.h"
void Interpreter::bx(UGeckoInstruction inst)
{
@@ -98,7 +99,7 @@ void Interpreter::HLEFunction(UGeckoInstruction inst)
m_end_block = true;
ASSERT(Core::IsCPUThread());
Core::CPUThreadGuard guard;
Core::CPUThreadGuard guard(Core::System::GetInstance());
HLE::Execute(guard, PowerPC::ppcState.pc, inst.hex);
}