From 5264fd254aa41e62fec4c6e2950d0e102f2b13ea Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 3 Apr 2021 17:28:09 -0700 Subject: [PATCH] Dmac: Invalidate source data before copy. Also add src tag information. --- Core/HLE/sceDmac.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceDmac.cpp b/Core/HLE/sceDmac.cpp index 4defe951ca..2bd493f016 100644 --- a/Core/HLE/sceDmac.cpp +++ b/Core/HLE/sceDmac.cpp @@ -50,8 +50,9 @@ static int __DmacMemcpy(u32 dst, u32 src, u32 size) { skip = gpu->PerformMemoryCopy(dst, src, size); } if (!skip) { - // TODO: InvalidateICache src before copy? - Memory::Memcpy(dst, Memory::GetPointer(src), size, "DmacMemcpy"); + currentMIPS->InvalidateICache(src, size); + const std::string tag = "DmacMemcpy/" + GetMemWriteTagAt(src, size); + Memory::Memcpy(dst, src, size, tag.c_str(), tag.size()); currentMIPS->InvalidateICache(dst, size); }