sys_memory: HORRIBLE HACK for sys_memory_get_page_attributes

This commit is contained in:
Nekotekina 2020-11-17 14:50:00 +03:00
parent 3dd48a24ce
commit f8d1f070f5

View File

@ -4,6 +4,7 @@
#include "Emu/Memory/vm_locking.h"
#include "Emu/CPU/CPUThread.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/SPUThread.h"
#include "Emu/IdManager.h"
#include "util/vm.hpp"
@ -176,7 +177,7 @@ error_code sys_memory_get_page_attribute(cpu_thread& cpu, u32 addr, vm::ptr<sys_
vm::reader_lock rlock;
if (!vm::check_addr(addr))
if (!vm::check_addr(addr) || addr >= SPU_FAKE_BASE_ADDR)
{
return CELL_EINVAL;
}