Relax allocations in ppu_load_exec
This commit is contained in:
@@ -975,7 +975,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
|
|||||||
if (prog.bin.size() > size || prog.bin.size() != prog.p_filesz)
|
if (prog.bin.size() > size || prog.bin.size() != prog.p_filesz)
|
||||||
fmt::throw_exception("Invalid binary size (0x%llx, memsz=0x%x)", prog.bin.size(), size);
|
fmt::throw_exception("Invalid binary size (0x%llx, memsz=0x%x)", prog.bin.size(), size);
|
||||||
|
|
||||||
if (!vm::falloc(addr, size, vm::main))
|
if (!vm::falloc(addr, size))
|
||||||
fmt::throw_exception("vm::falloc() failed (addr=0x%x, memsz=0x%x)", addr, size);
|
fmt::throw_exception("vm::falloc() failed (addr=0x%x, memsz=0x%x)", addr, size);
|
||||||
|
|
||||||
// Copy segment data, hash it
|
// Copy segment data, hash it
|
||||||
|
|||||||
@@ -787,6 +787,7 @@ namespace vm
|
|||||||
std::make_shared<block_t>(0xD0000000, 0x10000000), // stack
|
std::make_shared<block_t>(0xD0000000, 0x10000000), // stack
|
||||||
std::make_shared<block_t>(0xE0000000, 0x20000000), // SPU reserved
|
std::make_shared<block_t>(0xE0000000, 0x20000000), // SPU reserved
|
||||||
std::make_shared<block_t>(0x40000000, 0x10000000), // rsx contexts
|
std::make_shared<block_t>(0x40000000, 0x10000000), // rsx contexts
|
||||||
|
std::make_shared<block_t>(0x30000000, 0x10000000), // main extend
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user