From ee3d858935600e23a7914620b21f45082cccf8bd Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Tue, 4 Mar 2025 22:50:01 -0400 Subject: Follow Up Of the previous commit with the update of TLB update --- src/core/memory.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/core/memory.h') 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; -- cgit v1.2.3