summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
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:
169 */ 169 */
170 std::string ReadCString(VAddr vaddr, std::size_t max_length); 170 std::string ReadCString(VAddr vaddr, std::size_t max_length);
171 171
172 /**
173 * Marks each page within the specified address range as cached or uncached.
174 *
175 * @param vaddr The virtual address indicating the start of the address range.
176 * @param size The size of the address range in bytes.
177 * @param cached Whether or not any pages within the address range should be
178 * marked as cached or uncached.
179 */
180 void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
181
172private: 182private:
173 struct Impl; 183 struct Impl;
174 std::unique_ptr<Impl> impl; 184 std::unique_ptr<Impl> impl;
@@ -199,9 +209,4 @@ void WriteBlock(VAddr dest_addr, const void* src_buffer, std::size_t size);
199void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, std::size_t size); 209void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, std::size_t size);
200void CopyBlock(VAddr dest_addr, VAddr src_addr, std::size_t size); 210void CopyBlock(VAddr dest_addr, VAddr src_addr, std::size_t size);
201 211
202/**
203 * Mark each page touching the region as cached.
204 */
205void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
206
207} // namespace Memory 212} // namespace Memory