mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
PPU LLVM: Fix crash in Unity games
This commit is contained in:
parent
093198e3d5
commit
7bf8917c08
@ -5055,12 +5055,19 @@ bool ppu_initialize(const ppu_module& info, bool check_only, u64 file_size)
|
||||
// Try to patch all single and unregistered BLRs with the same function (TODO: Maybe generalize it into PIC code detection and patching)
|
||||
ppu_intrp_func_t BLR_func = nullptr;
|
||||
|
||||
const bool is_first = jit && !jit_mod.init;
|
||||
|
||||
const bool showing_only_apply_stage = !g_progr.load() && !g_progr_ptotal && !g_progr_ftotal && g_progr_ptotal.compare_and_swap_test(0, 1);
|
||||
|
||||
progr = "Applying PPU Code...";
|
||||
|
||||
if (!jit)
|
||||
{
|
||||
// No functions - nothing to do
|
||||
ensure(info.funcs.empty());
|
||||
return compiled_new;
|
||||
}
|
||||
|
||||
const bool is_first = !jit_mod.init;
|
||||
|
||||
if (is_first)
|
||||
{
|
||||
jit->fin();
|
||||
|
Loading…
Reference in New Issue
Block a user