summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Liam2022-04-12 17:26:27 -0400
committerGravatar Liam2022-04-13 08:41:27 -0400
commitf17aaeccf915f4d2eef58354da5b16700263dba4 (patch)
tree9f0420dabd5345577226a16ed017485bbbe8e8d2 /src/core/hle/kernel
parentMerge pull request #8165 from bunnei/ensure-session-port-cleanup (diff)
downloadyuzu-f17aaeccf915f4d2eef58354da5b16700263dba4.tar.gz
yuzu-f17aaeccf915f4d2eef58354da5b16700263dba4.tar.xz
yuzu-f17aaeccf915f4d2eef58354da5b16700263dba4.zip
service: jit: Implement the JIT service
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_code_memory.cpp11
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
35 R_TRY(page_table.LockForCodeMemory(addr, size)) 35 R_TRY(page_table.LockForCodeMemory(addr, size))
36 36
37 // Clear the memory. 37 // Clear the memory.
38 for (const auto& block : m_page_group.Nodes()) { 38 //
39 std::memset(device_memory.GetPointer(block.GetAddress()), 0xFF, block.GetSize()); 39 // FIXME: this ends up clobbering address ranges outside the scope of the mapping within
40 } 40 // guest memory, and is not specifically required if the guest program is correctly
41 // written, so disable until this is further investigated.
42 //
43 // for (const auto& block : m_page_group.Nodes()) {
44 // std::memset(device_memory.GetPointer(block.GetAddress()), 0xFF, block.GetSize());
45 // }
41 46
42 // Set remaining tracking members. 47 // Set remaining tracking members.
43 m_address = addr; 48 m_address = addr;