VERY experimental Nintendo Switch 2 emulator
C++
memory: fix IsValidVirtualAddress for RasterizerCachedMemory
wwylele7dcbdc4c43d4
diff --git a/src/core/memory.cpp b/src/core/memory.cppindex df029d6550..64c388374c 100644--- a/src/core/memory.cpp+++ b/src/core/memory.cpp@@ -251,6 +251,9 @@ bool IsValidVirtualAddress(const VAddr vaddr) {if (page_pointer)return true;+ if (current_page_table->attributes[vaddr >> PAGE_BITS] == PageType::RasterizerCachedMemory)+ return true;+if (current_page_table->attributes[vaddr >> PAGE_BITS] != PageType::Special)return false;