summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-01-19 19:50:21 +0100
committerGitHub <noreply@github.com>2023-01-19 19:50:21 +0100
commit9ca3a4758a556c7da1312f8dee40819c7cfe606c (patch)
tree57d278924c7b1e1ae24406a471afba61d8ca9cf3 /src/core
parentMerge pull request #9638 from Kelebek1/firmware4 (diff)
parentmemory: fix watchpoint use when fastmem is enabled (diff)
downloadyuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar
yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.gz
yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.bz2
yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.lz
yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.xz
yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.zst
yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index a1e41faff..4e605fae4 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -383,6 +383,10 @@ struct Memory::Impl {
return;
}
+ if (Settings::IsFastmemEnabled()) {
+ system.DeviceMemory().buffer.Protect(vaddr, size, !debug, !debug);
+ }
+
// Iterate over a contiguous CPU address space, marking/unmarking the region.
// The region is at a granularity of CPU pages.