aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-12-31 21:00:01 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-12-31 21:00:01 +0100
commita81686eff8e29a6041495bcb0bc676cc4ea9ebf3 (patch)
tree280950f6f82957d507594190ecec3edc561d885a /src/core
parent64dd40ee88e71f7e53945f062530b0ed12b9e650 (diff)
MaxwellDMA: Don't flush the outputs of a dma copy.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index c1879e78f9..7bf05e1774 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -683,7 +683,7 @@ public:
} else {
this->m_memory.WriteBlockUnsafe(this->m_addr, this->data(), this->size_bytes());
}
- } else if constexpr (FLAGS & GuestMemoryFlags::Safe) {
+ } else if constexpr ((FLAGS & GuestMemoryFlags::Safe) || (FLAGS & GuestMemoryFlags::Cached)) {
this->m_memory.InvalidateRegion(this->m_addr, this->size_bytes());
}
}