diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-09 05:37:24 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-17 06:59:35 +0200 |
commit | a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0 (patch) | |
tree | ff88e12685101a4f451b5bb56894ff4e7128d0ce /src/core/device_memory.cpp | |
parent | kernel: svc: Updates for new VMM. (diff) | |
download | yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.tar yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.tar.gz yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.tar.bz2 yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.tar.lz yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.tar.xz yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.tar.zst yuzu-a8292f6cd9f8b4088ee85b59a87e5bf0ce387cf0.zip |
Diffstat (limited to 'src/core/device_memory.cpp')
-rw-r--r-- | src/core/device_memory.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/device_memory.cpp b/src/core/device_memory.cpp index 61429a6ac..51097ced3 100644 --- a/src/core/device_memory.cpp +++ b/src/core/device_memory.cpp @@ -12,11 +12,4 @@ DeviceMemory::DeviceMemory(System& system) : buffer{DramMemoryMap::Size}, system DeviceMemory::~DeviceMemory() = default; -PAddr DeviceMemory::GetPhysicalAddr(VAddr addr) { - const u8* const base{system.Memory().GetPointer(addr)}; - ASSERT(base); - const uintptr_t offset{static_cast<uintptr_t>(base - GetPointer(DramMemoryMap::Base))}; - return DramMemoryMap::Base + offset; -} - } // namespace Core |