Fix alignment on embedded spu elf searching (#7894)

- They are actually 128 byte (1024 bit) aligned.
This commit is contained in:
Whatcookie 2020-03-28 22:54:45 -04:00 committed by GitHub
parent cba9ed3527
commit cc100f4008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1158,7 +1158,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
ppu_initialize_modules(link);
// Embedded SPU elf patching
for (u32 i = _main->segs[0].addr; i < (_main->segs[0].addr + _main->segs[0].size); i += 4)
for (u32 i = _main->segs[0].addr; i < (_main->segs[0].addr + _main->segs[0].size); i += 128)
{
uchar* elf_header = vm::_ptr<u8>(i);
const spu_exec_object obj(fs::file(vm::base(vm::cast(i, HERE)), (_main->segs[0].addr + _main->segs[0].size) - i));