From 2d8806c13f9196eb8c8c4d732d819d8baf1117c7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 22 Apr 2021 02:45:27 +1000 Subject: [PATCH] CPU/Recompiler: Emit DCIC exit path in far code Fixes PS3 BIOS booting. --- src/core/cpu_recompiler_code_generator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/cpu_recompiler_code_generator.cpp b/src/core/cpu_recompiler_code_generator.cpp index 45f3a52db..89f753123 100644 --- a/src/core/cpu_recompiler_code_generator.cpp +++ b/src/core/cpu_recompiler_code_generator.cpp @@ -2536,10 +2536,10 @@ bool CodeGenerator::Compile_cop0(const CodeBlockInstruction& cbi) m_register_cache.UninhibitAllocation(); // exit block early if enabled - m_register_cache.PushState(); - EmitFunctionCall(nullptr, &CPU::UpdateDebugDispatcherFlag); + EmitBranch(GetCurrentFarCodePointer()); + SwitchToFarCode(); EmitExceptionExit(); - m_register_cache.PopState(); + SwitchToNearCode(); EmitBindLabel(¬_enabled); }