mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
SPU LLVM Precompilation
Implement function SPU function discovery in images or random SPU code
This commit is contained in:
parent
290ff5b839
commit
b5faf5800b
12 changed files with 352 additions and 22 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue