mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 04:02:42 +01:00
Fix alignment on embedded spu elf searching (#7894)
- They are actually 128 byte (1024 bit) aligned.
This commit is contained in:
parent
cba9ed3527
commit
cc100f4008
@ -1158,7 +1158,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
|
|||||||
ppu_initialize_modules(link);
|
ppu_initialize_modules(link);
|
||||||
|
|
||||||
// Embedded SPU elf patching
|
// 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);
|
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));
|
const spu_exec_object obj(fs::file(vm::base(vm::cast(i, HERE)), (_main->segs[0].addr + _main->segs[0].size) - i));
|
||||||
|
Loading…
Reference in New Issue
Block a user