From cc100f40085fc6ee5ff1b7a294ffe71e69618adc Mon Sep 17 00:00:00 2001 From: Whatcookie Date: Sat, 28 Mar 2020 22:54:45 -0400 Subject: [PATCH] Fix alignment on embedded spu elf searching (#7894) - They are actually 128 byte (1024 bit) aligned. --- rpcs3/Emu/Cell/PPUModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index 0ee1203fcc..07ad2a3276 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -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(i); const spu_exec_object obj(fs::file(vm::base(vm::cast(i, HERE)), (_main->segs[0].addr + _main->segs[0].size) - i));