diff options
| author | 2022-02-21 12:36:34 -0800 | |
|---|---|---|
| committer | 2022-02-21 13:07:19 -0800 | |
| commit | c0e45a3c787df9c4c7c99b79a34d31a394bf7b49 (patch) | |
| tree | 20c12370bcb7417b8fc17d4fb5768b700edca7be /src/core/device_memory.cpp | |
| parent | settings: Add a new "use_extended_memory_layout" setting. (diff) | |
| download | yuzu-c0e45a3c787df9c4c7c99b79a34d31a394bf7b49.tar.gz yuzu-c0e45a3c787df9c4c7c99b79a34d31a394bf7b49.tar.xz yuzu-c0e45a3c787df9c4c7c99b79a34d31a394bf7b49.zip | |
core: device_memory: Use memory size reported by KSystemControl.
- That way, we can consolidate the memory layout to one place.
Diffstat (limited to 'src/core/device_memory.cpp')
| -rw-r--r-- | src/core/device_memory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/device_memory.cpp b/src/core/device_memory.cpp index f19c0515f..e6bc63086 100644 --- a/src/core/device_memory.cpp +++ b/src/core/device_memory.cpp | |||
| @@ -3,10 +3,13 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "core/device_memory.h" | 5 | #include "core/device_memory.h" |
| 6 | #include "hle/kernel/board/nintendo/nx/k_system_control.h" | ||
| 6 | 7 | ||
| 7 | namespace Core { | 8 | namespace Core { |
| 8 | 9 | ||
| 9 | DeviceMemory::DeviceMemory() : buffer{DramMemoryMap::Size, 1ULL << 39} {} | 10 | DeviceMemory::DeviceMemory() |
| 11 | : buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(), | ||
| 12 | 1ULL << 39} {} | ||
| 10 | DeviceMemory::~DeviceMemory() = default; | 13 | DeviceMemory::~DeviceMemory() = default; |
| 11 | 14 | ||
| 12 | } // namespace Core | 15 | } // namespace Core |