diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-16 23:22:14 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-16 23:32:24 +0100 |
commit | 403f8e79eaade7209c6cfd7a9d4334ce5add28df (patch) | |
tree | 71ab181d8299e7608fa3f856ee0394d66ee55c8f /src/core/arm/unicorn | |
parent | svc: Use more correct values for GetInfo MapRegion and NewMapRegion. (diff) | |
download | yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.tar yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.tar.gz yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.tar.bz2 yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.tar.lz yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.tar.xz yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.tar.zst yuzu-403f8e79eaade7209c6cfd7a9d4334ce5add28df.zip |
Diffstat (limited to 'src/core/arm/unicorn')
-rw-r--r-- | src/core/arm/unicorn/arm_unicorn.cpp | 4 | ||||
-rw-r--r-- | src/core/arm/unicorn/arm_unicorn.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/arm/unicorn/arm_unicorn.cpp b/src/core/arm/unicorn/arm_unicorn.cpp index 5d2956bfd..162c766fd 100644 --- a/src/core/arm/unicorn/arm_unicorn.cpp +++ b/src/core/arm/unicorn/arm_unicorn.cpp @@ -77,6 +77,10 @@ void ARM_Unicorn::MapBackingMemory(VAddr address, size_t size, u8* memory, CHECKED(uc_mem_map_ptr(uc, address, size, static_cast<u32>(perms), memory)); } +void ARM_Unicorn::UnmapMemory(VAddr address, size_t size) { + CHECKED(uc_mem_unmap(uc, address, size)); +} + void ARM_Unicorn::SetPC(u64 pc) { CHECKED(uc_reg_write(uc, UC_ARM64_REG_PC, &pc)); } diff --git a/src/core/arm/unicorn/arm_unicorn.h b/src/core/arm/unicorn/arm_unicorn.h index c9a561dec..00b5b1865 100644 --- a/src/core/arm/unicorn/arm_unicorn.h +++ b/src/core/arm/unicorn/arm_unicorn.h @@ -14,6 +14,7 @@ public: ~ARM_Unicorn(); void MapBackingMemory(VAddr address, size_t size, u8* memory, Kernel::VMAPermission perms) override; + void UnmapMemory(VAddr address, size_t size) override; void SetPC(u64 pc) override; u64 GetPC() const override; u64 GetReg(int index) const override; |