mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Always check page_allocated in vm::check_addr
This commit is contained in:
parent
d45c743877
commit
f8f3067deb
7 changed files with 13 additions and 10 deletions
|
@ -528,6 +528,9 @@ namespace vm
|
|||
return false;
|
||||
}
|
||||
|
||||
// Always check this flag
|
||||
flags |= page_allocated;
|
||||
|
||||
for (u32 i = addr / 4096, max = (addr + size - 1) / 4096; i <= max; i++)
|
||||
{
|
||||
if (UNLIKELY((g_pages[i].flags & flags) != flags))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue