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
This commit is contained in:
Nekotekina 2019-01-13 16:26:36 +03:00
parent 74d684b57e
commit aefee04c4a
1 changed files with 2 additions and 2 deletions

View File

@ -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<spu_cache>(loc);
@ -374,7 +374,7 @@ std::vector<u32> spu_recompiler_base::block(const be_t<u32>* 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])