os: add FlushDataCache

This commit is contained in:
Michael Scire committed 2021-10-10 00:33:52 -07:00
1 parent a595c232b9
commit bc96ebb74c
7 files changed
+150 -19

No files matched your search

@@ -37,7 +37,7 @@ namespace ams::ncm {
size_t m_peak_total_alloc_size;
size_t m_peak_alloc_size;
public:
explicit ContentMetaMemoryResource(void *heap, size_t heap_size) : m_allocator(heap, heap_size), m_peak_alloc_size(0), m_peak_total_alloc_size(0) { /* ... */ }
explicit ContentMetaMemoryResource(void *heap, size_t heap_size) : m_allocator(heap, heap_size), m_peak_total_alloc_size(0), m_peak_alloc_size(0) { /* ... */ }
mem::StandardAllocator *GetAllocator() { return std::addressof(m_allocator); }
size_t GetPeakTotalAllocationSize() const { return m_peak_total_alloc_size; }