mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
dmem: setup base address if not present
This commit is contained in:
parent
0946dcb768
commit
15e896b310
1 changed files with 5 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ orbis::ErrorCode DmemDevice::mmap(void **address, std::uint64_t len,
|
|||
prot = vm::kMapProtCpuWrite | vm::kMapProtCpuRead | vm::kMapProtGpuAll;
|
||||
}
|
||||
|
||||
if (*address == nullptr) {
|
||||
*address = std::bit_cast<void *>(0x80000000ull);
|
||||
flags &= ~vm::kMapFlagFixed;
|
||||
}
|
||||
|
||||
int memoryType = 0;
|
||||
if (auto allocationInfoIt = allocations.queryArea(directMemoryStart);
|
||||
allocationInfoIt != allocations.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue