diff options
author | CamilleLaVey <camillelavey@citron-emu.org> | 2025-03-04 22:50:01 -0400 |
---|---|---|
committer | CamilleLaVey <camillelavey@citron-emu.org> | 2025-03-04 22:50:01 -0400 |
commit | ee3d858935600e23a7914620b21f45082cccf8bd (patch) | |
tree | bbc13a49f4f8a73c925024e220e454942a59d1d9 /src/core/memory.h | |
parent | 31694994f2c338486486efb7d8bc5e954b8a9e07 (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.h | 15 |
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; |