summaryrefslogtreecommitdiffstats
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-26 21:56:13 +0100
committerLioncash <mathew1800@gmail.com>2019-11-27 03:55:38 +0100
commit849581075a230ad0f5419bb5d5e1f9e48e6cfd8a (patch)
tree62985359329da0b65f65429ea5c403f622aea5e3 /src/core/memory.h
parentcore/memory: Migrate over ReadCString() to the Memory class (diff)
downloadyuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.gz
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.bz2
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.lz
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.xz
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.zst
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.zip
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 47765c8a0..7cd348b49 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -169,6 +169,16 @@ public:
*/
std::string ReadCString(VAddr vaddr, std::size_t max_length);
+ /**
+ * Marks each page within the specified address range as cached or uncached.
+ *
+ * @param vaddr The virtual address indicating the start of the address range.
+ * @param size The size of the address range in bytes.
+ * @param cached Whether or not any pages within the address range should be
+ * marked as cached or uncached.
+ */
+ void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
+
private:
struct Impl;
std::unique_ptr<Impl> impl;
@@ -199,9 +209,4 @@ void WriteBlock(VAddr dest_addr, const void* src_buffer, std::size_t size);
void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, std::size_t size);
void CopyBlock(VAddr dest_addr, VAddr src_addr, std::size_t size);
-/**
- * Mark each page touching the region as cached.
- */
-void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
-
} // namespace Memory