SPU LLVM: implemented asynchronous compilation

Implemented interpreter-based pre-recompiler.
Interpreter functions are build with SPU LLVM.
This commit is contained in:
Nekotekina 2019-05-17 23:54:47 +03:00
parent 29cddc30f0
commit b329bb604c
6 changed files with 534 additions and 28 deletions

View file

@ -45,9 +45,12 @@ void spu_recompiler::init()
}
}
spu_function_t spu_recompiler::compile(u64 last_reset_count, const std::vector<u32>& func)
spu_function_t spu_recompiler::compile(u64 last_reset_count, const std::vector<u32>& func, void* fn_location)
{
const auto fn_location = m_spurt->find(last_reset_count, func);
if (!fn_location)
{
fn_location = m_spurt->find(last_reset_count, func);
}
if (fn_location == spu_runtime::g_dispatcher)
{