diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-04-13 23:20:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 23:20:34 +0200 |
commit | 276764cfe9856fb8dfd60d8135cb9b613ef18831 (patch) | |
tree | 9f0420dabd5345577226a16ed017485bbbe8e8d2 /src/core/hle/kernel | |
parent | Merge pull request #8165 from bunnei/ensure-session-port-cleanup (diff) | |
parent | service: jit: Implement the JIT service (diff) | |
download | yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.tar yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.tar.gz yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.tar.bz2 yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.tar.lz yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.tar.xz yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.tar.zst yuzu-276764cfe9856fb8dfd60d8135cb9b613ef18831.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_code_memory.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_code_memory.cpp b/src/core/hle/kernel/k_code_memory.cpp index 63bbe02e9..09eaf004c 100644 --- a/src/core/hle/kernel/k_code_memory.cpp +++ b/src/core/hle/kernel/k_code_memory.cpp @@ -35,9 +35,14 @@ ResultCode KCodeMemory::Initialize(Core::DeviceMemory& device_memory, VAddr addr R_TRY(page_table.LockForCodeMemory(addr, size)) // Clear the memory. - for (const auto& block : m_page_group.Nodes()) { - std::memset(device_memory.GetPointer(block.GetAddress()), 0xFF, block.GetSize()); - } + // + // FIXME: this ends up clobbering address ranges outside the scope of the mapping within + // guest memory, and is not specifically required if the guest program is correctly + // written, so disable until this is further investigated. + // + // for (const auto& block : m_page_group.Nodes()) { + // std::memset(device_memory.GetPointer(block.GetAddress()), 0xFF, block.GetSize()); + // } // Set remaining tracking members. m_address = addr; |