Parcourir la source

memory: fix watchpoint use when fastmem is enabled

Liam il y a 3 ans
Parent
commit
f1a0ce0e70
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/core/memory.cpp

+ 4 - 0
src/core/memory.cpp

@@ -383,6 +383,10 @@ struct Memory::Impl {
             return;
             return;
         }
         }
 
 
+        if (Settings::IsFastmemEnabled()) {
+            system.DeviceMemory().buffer.Protect(vaddr, size, !debug, !debug);
+        }
+
         // Iterate over a contiguous CPU address space, marking/unmarking the region.
         // Iterate over a contiguous CPU address space, marking/unmarking the region.
         // The region is at a granularity of CPU pages.
         // The region is at a granularity of CPU pages.