diff options
author | bunnei <bunneidev@gmail.com> | 2023-01-19 10:50:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 10:50:21 -0800 |
commit | 9ca3a4758a556c7da1312f8dee40819c7cfe606c (patch) | |
tree | 57d278924c7b1e1ae24406a471afba61d8ca9cf3 /src | |
parent | 67c3c65f7bb1ade3b3d1912333b38fc49b0e8c35 (diff) | |
parent | f1a0ce0e70bc20d29a2ea5bb4808b5e3466cbc13 (diff) |
Merge pull request #9623 from liamwhite/wp-oops
memory: fix watchpoint use when fastmem is enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/core/memory.cpp | 4 |
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. |