Relax allocations in ppu_load_exec

This commit is contained in:
Nekotekina 2017-08-04 14:33:36 +03:00
parent c14eb4e54a
commit 7b4c044480
2 changed files with 2 additions and 1 deletions

View file

@ -975,7 +975,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
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);
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);
// Copy segment data, hash it

View file

@ -787,6 +787,7 @@ namespace vm
std::make_shared<block_t>(0xD0000000, 0x10000000), // stack
std::make_shared<block_t>(0xE0000000, 0x20000000), // SPU reserved
std::make_shared<block_t>(0x40000000, 0x10000000), // rsx contexts
std::make_shared<block_t>(0x30000000, 0x10000000), // main extend
};
}
}