diff options
author | Fernando Sahmkow <[email protected]> | 2019-07-18 18:15:53 -0400 |
---|---|---|
committer | FernandoS27 <[email protected]> | 2019-07-19 10:06:08 -0400 |
commit | 9bede4eeed523f9707a989f1297279c006086e76 (patch) | |
tree | 2acfabeff5f7f449bcdb22563f5ad66f7fa5f414 /src/core/loader/nro.cpp | |
parent | 5d369112d9d467d4257e24ce57f3ebba824556f0 (diff) | |
download | yuzu-android-9bede4eeed523f9707a989f1297279c006086e76.tar.gz yuzu-android-9bede4eeed523f9707a989f1297279c006086e76.zip |
VM_Manager: Align allocated memory to 256bytes
This commit ensures that all backing memory allocated for the Guest CPU
is aligned to 256 bytes. This due to how gpu memory works and the heavy
constraints it has in the alignment of physical memory.
Diffstat (limited to 'src/core/loader/nro.cpp')
-rw-r--r-- | src/core/loader/nro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index 6a0ca389b..e92e2e06e 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp @@ -143,7 +143,7 @@ static bool LoadNroImpl(Kernel::Process& process, const std::vector<u8>& data, } // Build program image - std::vector<u8> program_image(PageAlignSize(nro_header.file_size)); + Kernel::PhysicalMemory program_image(PageAlignSize(nro_header.file_size)); std::memcpy(program_image.data(), data.data(), program_image.size()); if (program_image.size() != PageAlignSize(nro_header.file_size)) { return {}; |