diff options
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 | |||
| 12 | 12 | ||
| 13 | DeviceMemory::~DeviceMemory() = default; | 13 | DeviceMemory::~DeviceMemory() = default; |
| 14 | 14 | ||
| 15 | PAddr DeviceMemory::GetPhysicalAddr(VAddr addr) { | ||
| 16 | const u8* const base{system.Memory().GetPointer(addr)}; | ||
| 17 | ASSERT(base); | ||
| 18 | const uintptr_t offset{static_cast<uintptr_t>(base - GetPointer(DramMemoryMap::Base))}; | ||
| 19 | return DramMemoryMap::Base + offset; | ||
| 20 | } | ||
| 21 | |||
| 22 | } // namespace Core | 15 | } // namespace Core |