From f1a0ce0e70bc20d29a2ea5bb4808b5e3466cbc13 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 15 Jan 2023 10:24:31 -0500 Subject: memory: fix watchpoint use when fastmem is enabled --- src/core/memory.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') 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. -- cgit v1.2.3