Add "SPU Verification" option

Should be always enabled
This commit is contained in:
Nekotekina 2018-06-04 02:13:53 +03:00
parent 12eee6a19e
commit 5d4c5ecc1c
3 changed files with 25 additions and 12 deletions

View file

@ -206,9 +206,9 @@ spu_function_t spu_recompiler::compile(std::vector<u32>&& func_rv)
};
// Check code
if (false)
if (!g_cfg.core.spu_verification)
{
// Disable check (not available)
// Disable check (unsafe)
}
else if (func.size() - 1 == 1)
{
@ -764,11 +764,14 @@ spu_function_t spu_recompiler::compile(std::vector<u32>&& func_rv)
c->bind(label_stop);
c->ret();
// Dispatch
c->align(kAlignCode, 16);
c->bind(label_diff);
c->inc(SPU_OFF_64(block_failure));
c->jmp(imm_ptr(&spu_recompiler_base::dispatch));
if (g_cfg.core.spu_verification)
{
// Dispatch
c->align(kAlignCode, 16);
c->bind(label_diff);
c->inc(SPU_OFF_64(block_failure));
c->jmp(imm_ptr(&spu_recompiler_base::dispatch));
}
for (auto&& work : decltype(after)(std::move(after)))
{