mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Dmac: Invalidate source data before copy.
Also add src tag information.
This commit is contained in:
parent
e1e830c3b0
commit
5264fd254a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user