Dmac: Invalidate source data before copy.

Also add src tag information.
This commit is contained in:
Unknown W. Brackets 2021-04-03 17:28:09 -07:00
parent e1e830c3b0
commit 5264fd254a

View File

@ -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);
}