mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-15 22:53:47 +00:00
sys_memory: HORRIBLE HACK for sys_memory_get_page_attributes
This commit is contained in:
parent
3dd48a24ce
commit
f8d1f070f5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user