From 4d24ba1f35d919d53011083566f759814e865d87 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Mon, 3 Oct 2022 23:20:03 +0300 Subject: [PATCH] PPU Precompilation: Abort compilation as soon as possible on Emu.Stop() --- rpcs3/Emu/Cell/PPUThread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 74a462feea..015bfa09ee 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -3741,6 +3741,11 @@ bool ppu_initialize(const ppu_module& info, bool check_only) // Allocate "core" std::lock_guard jlock(g_fxo->get().sem); + if (Emu.IsStopped()) + { + continue; + } + ppu_log.warning("LLVM: Compiling module %s%s", cache_path, obj_name); // Use another JIT instance