summaryrefslogtreecommitdiff
path: root/src/core/guest_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/guest_memory.h')
-rw-r--r--src/core/guest_memory.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/guest_memory.h b/src/core/guest_memory.h
index 0b349cc17..8030df73a 100644
--- a/src/core/guest_memory.h
+++ b/src/core/guest_memory.h
@@ -202,7 +202,8 @@ public:
202 } else { 202 } else {
203 this->m_memory.WriteBlockUnsafe(this->m_addr, this->data(), this->size_bytes()); 203 this->m_memory.WriteBlockUnsafe(this->m_addr, this->data(), this->size_bytes());
204 } 204 }
205 } else if constexpr ((FLAGS & GuestMemoryFlags::Safe) || (FLAGS & GuestMemoryFlags::Cached)) { 205 } else if constexpr ((FLAGS & GuestMemoryFlags::Safe) ||
206 (FLAGS & GuestMemoryFlags::Cached)) {
206 this->m_memory.InvalidateRegion(this->m_addr, this->size_bytes()); 207 this->m_memory.InvalidateRegion(this->m_addr, this->size_bytes());
207 } 208 }
208 } 209 }
@@ -215,4 +216,4 @@ using CpuGuestMemory = GuestMemory<Core::Memory::Memory, T, FLAGS>;
215template <typename T, GuestMemoryFlags FLAGS> 216template <typename T, GuestMemoryFlags FLAGS>
216using CpuGuestMemoryScoped = GuestMemoryScoped<Core::Memory::Memory, T, FLAGS>; 217using CpuGuestMemoryScoped = GuestMemoryScoped<Core::Memory::Memory, T, FLAGS>;
217 218
218} // namespace Tegra::Memory 219} // namespace Core::Memory