mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Minor fixes
elf_object Loader fix Analyser fix
This commit is contained in:
parent
b89961f01d
commit
06c6c8212d
14 changed files with 498 additions and 123 deletions
|
|
@ -234,12 +234,11 @@ bool RawSPUThread::write_reg(const u32 addr, const u32 value)
|
|||
return false;
|
||||
}
|
||||
|
||||
template<>
|
||||
void spu_exec_loader::load() const
|
||||
void spu_load_exec(const spu_exec_object& elf)
|
||||
{
|
||||
auto spu = idm::make_ptr<RawSPUThread>("TEST_SPU");
|
||||
|
||||
for (const auto& prog : progs)
|
||||
for (const auto& prog : elf.progs)
|
||||
{
|
||||
if (prog.p_type == 0x1 /* LOAD */ && prog.p_memsz)
|
||||
{
|
||||
|
|
@ -248,5 +247,5 @@ void spu_exec_loader::load() const
|
|||
}
|
||||
|
||||
spu->cpu_init();
|
||||
spu->npc = header.e_entry;
|
||||
spu->npc = elf.header.e_entry;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue