ppu_analyse: use entry point

This commit is contained in:
Nekotekina 2017-04-08 15:09:01 +03:00
parent adefd1fd63
commit d7c66fc949
3 changed files with 10 additions and 4 deletions

View file

@ -802,7 +802,7 @@ std::shared_ptr<lv2_prx> ppu_load_prx(const ppu_prx_object& elf, const std::stri
ppu_load_imports(link, lib_info->imports_start, lib_info->imports_end);
prx->funcs = ppu_analyse(segments, sections, lib_info->toc);
prx->funcs = ppu_analyse(segments, sections, lib_info->toc, 0);
}
else
{
@ -1269,7 +1269,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
{
// Analyse executable
std::vector<ppu_function> main_funcs = ppu_analyse(segments, sections, vm::read32(elf.header.e_entry + 4));
std::vector<ppu_function> main_funcs = ppu_analyse(segments, sections, 0, elf.header.e_entry);
ppu_validate(vfs::get(Emu.GetPath()), main_funcs, 0);