summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorCamilleLaVey <camillelavey@citron-emu.org>2025-03-04 22:50:01 -0400
committerCamilleLaVey <camillelavey@citron-emu.org>2025-03-04 22:50:01 -0400
commitee3d858935600e23a7914620b21f45082cccf8bd (patch)
treebbc13a49f4f8a73c925024e220e454942a59d1d9 /src/core/memory.h
parent31694994f2c338486486efb7d8bc5e954b8a9e07 (diff)
Follow Up Of the previous commit with the update of TLB update
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 3f315ff7a..eeeee6d65 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -492,6 +492,21 @@ public:
bool InvalidateSeparateHeap(void* fault_address);
+ /**
+ * Remaps a region of the emulated process address space.
+ *
+ * @param guest_addr The address to begin remapping at.
+ * @param size The amount of bytes to remap.
+ *
+ * @returns True if remapping is successful, false otherwise.
+ */
+ bool Remap(u64 guest_addr, u32 size);
+
+ /**
+ * Reclaims memory from pages that are no longer used.
+ */
+ void ReclaimUnusedMemory();
+
private:
Core::System& system;