mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 09:30:05 +00:00
core: device_memory: Remove incorrect usage of constexpr.
This commit is contained in:
parent
6f3266e98b
commit
92caa003a8
@ -28,12 +28,16 @@ public:
|
||||
~DeviceMemory();
|
||||
|
||||
template <typename T>
|
||||
constexpr PAddr GetPhysicalAddr(T* ptr) {
|
||||
PAddr GetPhysicalAddr(const T* ptr) const {
|
||||
return (reinterpret_cast<uintptr_t>(ptr) - reinterpret_cast<uintptr_t>(buffer.data())) +
|
||||
DramMemoryMap::Base;
|
||||
}
|
||||
|
||||
constexpr u8* GetPointer(PAddr addr) {
|
||||
u8* GetPointer(PAddr addr) {
|
||||
return buffer.data() + (addr - DramMemoryMap::Base);
|
||||
}
|
||||
|
||||
const u8* GetPointer(PAddr addr) const {
|
||||
return buffer.data() + (addr - DramMemoryMap::Base);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user