From 7e30579a7ad8e498e05ad002e4f1c247c9317d78 Mon Sep 17 00:00:00 2001 From: lizzie Date: Wed, 1 Jul 2026 07:00:26 +0000 Subject: [PATCH] relaxed flush --- src/core/memory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 59f2ab25f5..ed77203d66 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -755,7 +755,8 @@ struct Memory::Impl { auto& gpu = system.GPU(); gpu_device_memory->ApplyOpOnPointer(p, scratch_buffers[core], [&](DAddr address) { if (flush) { - void(gpu.OnCPURead(address, size)); + auto const wait_fence = gpu.RequestFlush(address, size); + gpu.WaitForSyncOperation(wait_fence); } gpu.InvalidateRegion(address, size); });