diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-23 03:29:52 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-03-05 00:39:58 +0100 |
commit | b952a3055575224d3f873b4a24498714f8eb2820 (patch) | |
tree | 1bd1996e0d4161cfc7816f25c4902b274baf3fc6 /src/core/hle/kernel/vm_manager.cpp | |
parent | patch_manager: Display cheats in game list add-ons (diff) | |
download | yuzu-b952a3055575224d3f873b4a24498714f8eb2820.tar yuzu-b952a3055575224d3f873b4a24498714f8eb2820.tar.gz yuzu-b952a3055575224d3f873b4a24498714f8eb2820.tar.bz2 yuzu-b952a3055575224d3f873b4a24498714f8eb2820.tar.lz yuzu-b952a3055575224d3f873b4a24498714f8eb2820.tar.xz yuzu-b952a3055575224d3f873b4a24498714f8eb2820.tar.zst yuzu-b952a3055575224d3f873b4a24498714f8eb2820.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/vm_manager.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cpp index 10ad94aa6..161a83660 100644 --- a/src/core/hle/kernel/vm_manager.cpp +++ b/src/core/hle/kernel/vm_manager.cpp @@ -786,6 +786,23 @@ u64 VMManager::GetNewMapRegionSize() const { return new_map_region_end - new_map_region_base; } +void VMManager::SetMainCodeRegion(VAddr begin, VAddr end) { + main_code_region_base = begin; + main_code_region_end = end; +} + +VAddr VMManager::GetMainCodeRegionBaseAddress() const { + return main_code_region_base; +} + +VAddr VMManager::GetMainCodeRegionEndAddress() const { + return main_code_region_end; +} + +u64 VMManager::GetMainCodeRegionSize() const { + return main_code_region_end - main_code_region_base; +} + VAddr VMManager::GetTLSIORegionBaseAddress() const { return tls_io_region_base; } |