1
0
Fork 0
forked from suyu/suyu

Merge pull request #9623 from liamwhite/wp-oops

memory: fix watchpoint use when fastmem is enabled
This commit is contained in:
bunnei 2023-01-19 10:50:21 -08:00 committed by GitHub
commit 9ca3a4758a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,6 +383,10 @@ struct Memory::Impl {
return; return;
} }
if (Settings::IsFastmemEnabled()) {
system.DeviceMemory().buffer.Protect(vaddr, size, !debug, !debug);
}
// Iterate over a contiguous CPU address space, marking/unmarking the region. // Iterate over a contiguous CPU address space, marking/unmarking the region.
// The region is at a granularity of CPU pages. // The region is at a granularity of CPU pages.