diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-12-22 21:29:52 -0500 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2019-03-04 18:39:58 -0500 |
| commit | b952a3055575224d3f873b4a24498714f8eb2820 (patch) | |
| tree | 1bd1996e0d4161cfc7816f25c4902b274baf3fc6 /src/core/hle/kernel/vm_manager.h | |
| parent | 4495bf5706d989e2dddaa80c3435b20698e6c11a (diff) | |
vm_manager: Add support for storing and getting main code region
Used as root for one region of cheats, set by loader
Diffstat (limited to 'src/core/hle/kernel/vm_manager.h')
| -rw-r--r-- | src/core/hle/kernel/vm_manager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h index 6091533bc..728318f4b 100644 --- a/src/core/hle/kernel/vm_manager.h +++ b/src/core/hle/kernel/vm_manager.h @@ -480,6 +480,14 @@ public: /// Gets the total size of the new map region in bytes. u64 GetNewMapRegionSize() const; + void SetMainCodeRegion(VAddr begin, VAddr end); + + VAddr GetMainCodeRegionBaseAddress() const; + + VAddr GetMainCodeRegionEndAddress() const; + + u64 GetMainCodeRegionSize() const; + /// Gets the base address of the TLS IO region. VAddr GetTLSIORegionBaseAddress() const; @@ -598,6 +606,9 @@ private: VAddr new_map_region_base = 0; VAddr new_map_region_end = 0; + VAddr main_code_region_base = 0; + VAddr main_code_region_end = 0; + VAddr tls_io_region_base = 0; VAddr tls_io_region_end = 0; |
