core: Add support for Neo mode memory size. (#1196)

This commit is contained in:
squidbus 2024-10-08 00:29:05 -07:00 committed by GitHub
parent f139762c64
commit 20915eb5b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 2 deletions

View file

@ -142,6 +142,9 @@ struct PageManager::Impl {
}
void Protect(VAddr address, size_t size, bool allow_write) {
ASSERT_MSG(owned_ranges.find(address) != owned_ranges.end(),
"Attempted to track non-GPU memory at address {:#x}, size {:#x}.", address,
size);
#ifdef _WIN32
DWORD prot = allow_write ? PAGE_READWRITE : PAGE_READONLY;
DWORD old_prot{};