diff options
| author | 2023-01-19 10:50:21 -0800 | |
|---|---|---|
| committer | 2023-01-19 10:50:21 -0800 | |
| commit | 9ca3a4758a556c7da1312f8dee40819c7cfe606c (patch) | |
| tree | 57d278924c7b1e1ae24406a471afba61d8ca9cf3 | |
| parent | Merge pull request #9638 from Kelebek1/firmware4 (diff) | |
| parent | memory: fix watchpoint use when fastmem is enabled (diff) | |
| download | yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.gz yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.tar.xz yuzu-9ca3a4758a556c7da1312f8dee40819c7cfe606c.zip | |
Merge pull request #9623 from liamwhite/wp-oops
memory: fix watchpoint use when fastmem is enabled
| -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 a1e41faff..4e605fae4 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp | |||
| @@ -383,6 +383,10 @@ struct Memory::Impl { | |||
| 383 | return; | 383 | return; |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | if (Settings::IsFastmemEnabled()) { | ||
| 387 | system.DeviceMemory().buffer.Protect(vaddr, size, !debug, !debug); | ||
| 388 | } | ||
| 389 | |||
| 386 | // Iterate over a contiguous CPU address space, marking/unmarking the region. | 390 | // Iterate over a contiguous CPU address space, marking/unmarking the region. |
| 387 | // The region is at a granularity of CPU pages. | 391 | // The region is at a granularity of CPU pages. |
| 388 | 392 | ||