mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +00:00
Core: Log error on MapMemory out of flexible memory case (#3614)
* Log error for out-of-flexible-memory error case in MapMemory Should reduce confusion when looking as some logs. * Clang
This commit is contained in:
@@ -314,6 +314,10 @@ s32 MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, u64 size, Memo
|
|||||||
// Certain games perform flexible mappings on loop to determine
|
// Certain games perform flexible mappings on loop to determine
|
||||||
// the available flexible memory size. Questionable but we need to handle this.
|
// the available flexible memory size. Questionable but we need to handle this.
|
||||||
if (type == VMAType::Flexible && flexible_usage + size > total_flexible_size) {
|
if (type == VMAType::Flexible && flexible_usage + size > total_flexible_size) {
|
||||||
|
LOG_ERROR(Kernel_Vmm,
|
||||||
|
"Out of flexible memory, available flexible memory = {:#x}"
|
||||||
|
" requested size = {:#x}",
|
||||||
|
total_flexible_size - flexible_usage, size);
|
||||||
return ORBIS_KERNEL_ERROR_ENOMEM;
|
return ORBIS_KERNEL_ERROR_ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user