Browse Source
VM_Manager: Align allocated memory to 256bytes
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.nce_cpp
committed by
FernandoS27
15 changed files with 131 additions and 36 deletions
-
79src/common/alignment.h
-
3src/core/hle/kernel/code_set.h
-
13src/core/hle/kernel/physical_memory.h
-
6src/core/hle/kernel/process.cpp
-
4src/core/hle/kernel/shared_memory.cpp
-
13src/core/hle/kernel/shared_memory.h
-
2src/core/hle/kernel/transfer_memory.cpp
-
3src/core/hle/kernel/transfer_memory.h
-
15src/core/hle/kernel/vm_manager.cpp
-
9src/core/hle/kernel/vm_manager.h
-
12src/core/hle/service/ns/pl_u.cpp
-
2src/core/loader/elf.cpp
-
2src/core/loader/kip.cpp
-
2src/core/loader/nro.cpp
-
2src/core/loader/nso.cpp
@ -0,0 +1,13 @@ |
|||
// Copyright 2019 yuzu Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "common/alignment.h" |
|||
|
|||
namespace Kernel { |
|||
|
|||
using PhysicalMemory = std::vector<u8, Common::AlignmentAllocator<u8, 256>>; |
|||
|
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue