aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-01-15 10:24:31 -0500
committerLiam <byteslice@airmail.cc>2023-01-15 10:24:31 -0500
commit0279b94a9e521173b6cf718f19e46dbaced9af99 (patch)
tree944ac5b6fa7591d2b0f921d4b42f4265f8303720 /src/core/memory.cpp
parentc45b1d872341e0ccd422f73e586c27c87aa5c43d (diff)
memory: fix watchpoint use when fastmem is enabled
Diffstat (limited to 'src/core/memory.cpp')
-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 a1e41faffb..4e605fae40 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.