1
0
Fork 0
forked from suyu/suyu

memory: fix IsValidVirtualAddress for RasterizerCachedMemory

RasterizerCachedMemory doesn't has pointer but should be considered as valid
This commit is contained in:
wwylele 2016-09-27 19:50:50 +08:00
parent c88cdc9a2b
commit 3f87d70f0e

View file

@ -251,6 +251,9 @@ bool IsValidVirtualAddress(const VAddr vaddr) {
if (page_pointer) if (page_pointer)
return true; return true;
if (current_page_table->attributes[vaddr >> PAGE_BITS] == PageType::RasterizerCachedMemory)
return true;
if (current_page_table->attributes[vaddr >> PAGE_BITS] != PageType::Special) if (current_page_table->attributes[vaddr >> PAGE_BITS] != PageType::Special)
return false; return false;