From 47685bef39dfd45c139f0ea4438536a82a2f28eb Mon Sep 17 00:00:00 2001 From: Robbie Date: Sat, 9 Sep 2017 23:04:29 -0500 Subject: [PATCH] If the loop is never entered, then the jit is null. --- rpcs3/Emu/Cell/PPUThread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index b489bea73d..950e2557bd 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -1239,10 +1239,10 @@ extern void ppu_initialize(const ppu_module& info) return; } - if (jit_mod.vars.empty()) - { + // Jit can be null if the loop doesn't ever enter. + if (jit && jit_mod.vars.empty()) + { jit->fin(); - // Get and install function addresses for (const auto& func : info.funcs) {