Skip to content
Permalink
Browse files

SPU LLVM: re-enable stack mirror

It was disabled due to other bugs which should be fixed now.
  • Loading branch information...
Nekotekina committed May 16, 2019
1 parent a69329f commit a016728a9e0bc9933ee987e5a2685bac4019da52
Showing with 2 additions and 2 deletions.
  1. +2 −2 rpcs3/Emu/Cell/SPURecompiler.cpp
@@ -7735,7 +7735,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
m_ir->CreateStore(addr.value, spu_ptr<u32>(&spu_thread::pc));
const auto type = m_finfo->chunk->getFunctionType()->getPointerTo()->getPointerTo();

if (ret && g_cfg.core.spu_block_size == spu_block_size_type::mega)
if (ret && g_cfg.core.spu_block_size >= spu_block_size_type::mega)
{
// Compare address stored in stack mirror with addr
const auto stack0 = eval(zext<u64>(sp) + ::offset32(&spu_thread::stack_mirror));
@@ -8107,7 +8107,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
return;
}

if (g_cfg.core.spu_block_size == spu_block_size_type::mega && m_block_info[m_pos / 4 + 1] && m_entry_info[m_pos / 4 + 1])
if (g_cfg.core.spu_block_size >= spu_block_size_type::mega && m_block_info[m_pos / 4 + 1] && m_entry_info[m_pos / 4 + 1])
{
// Store the return function chunk address at the stack mirror
const auto pfunc = add_function(m_pos + 4);

0 comments on commit a016728

Please sign in to comment.
You can’t perform that action at this time.