SPU LLVM Precompilation

Implement function SPU function discovery in images or random SPU code
This commit is contained in:
Eladash 2023-08-26 11:23:42 +03:00 committed by Elad Ashkenazi
parent 290ff5b839
commit b5faf5800b
12 changed files with 352 additions and 22 deletions

View file

@ -382,6 +382,18 @@ void spu_load_exec(const spu_exec_object& elf)
spu->status_npc = {SPU_STATUS_RUNNING, elf.header.e_entry};
atomic_storage<u32>::release(spu->pc, elf.header.e_entry);
const auto funcs = spu->discover_functions(spu->ls, umax);
for (u32 addr : funcs)
{
spu_log.success("Found SPU function at: 0x%08x", addr);
}
if (!funcs.empty())
{
spu_log.success("Found %u SPU functions", funcs.size());
}
}
void spu_load_rel_exec(const spu_rel_object& elf)