mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Allow 0x30000000 > addr >= 0x2000000 ppu loader exec allocations (workaround)
This commit is contained in:
parent
a84077f174
commit
d7dd4897f8
@ -1086,7 +1086,14 @@ void ppu_load_exec(const ppu_exec_object& elf)
|
||||
fmt::throw_exception("Invalid binary size (0x%llx, memsz=0x%x)", prog.bin.size(), size);
|
||||
|
||||
if (!vm::falloc(addr, size, vm::main))
|
||||
fmt::throw_exception("vm::falloc() failed (addr=0x%x, memsz=0x%x)", addr, size);
|
||||
{
|
||||
ppu_loader.error("vm::falloc(vm::main) failed (addr=0x%x, memsz=0x%x)", addr, size); // TODO
|
||||
|
||||
if (!vm::falloc(addr, size))
|
||||
{
|
||||
fmt::throw_exception("vm::falloc() failed (addr=0x%x, memsz=0x%x)" HERE, addr, size);
|
||||
}
|
||||
}
|
||||
|
||||
// Copy segment data, hash it
|
||||
std::memcpy(vm::base(addr), prog.bin.data(), prog.bin.size());
|
||||
|
Loading…
Reference in New Issue
Block a user