From aefee04c4a8dfe9e09039d25dfe8569dfb7a486b Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sun, 13 Jan 2019 16:26:36 +0300 Subject: [PATCH] SPU analyser: fix branch to self Fixed not filling the predeccessor list on BR-to-self on entry point Version bumped (v1-tane) Closes #5353 --- rpcs3/Emu/Cell/SPURecompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index cf818a85e3..b6445c7552 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -94,7 +94,7 @@ void spu_cache::initialize() } // SPU cache file (version + block size type) - const std::string loc = _main->cache + "spu-" + fmt::to_lower(g_cfg.core.spu_block_size.to_string()) + "-v5.dat"; + const std::string loc = _main->cache + "spu-" + fmt::to_lower(g_cfg.core.spu_block_size.to_string()) + "-v1-tane.dat"; auto cache = std::make_shared(loc); @@ -374,7 +374,7 @@ std::vector spu_recompiler_base::block(const be_t* ls, u32 entry_point const auto add_block = [&](u32 target) { // Validate new target (TODO) - if (target > lsa && target < limit) + if (target >= lsa && target < limit) { // Check for redundancy if (!m_block_info[target / 4])