VERY experimental Nintendo Switch 2 emulator
C++
Core/SVC: Map the shared memory created in CreateMemoryBlock to the specified address.
Subv732839b1f48c
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cppindex 347d241f95..ca3ff3328c 100644--- a/src/core/hle/svc.cpp+++ b/src/core/hle/svc.cpp@@ -654,6 +654,8 @@ static ResultCode CreateMemoryBlock(Handle* out_handle, u32 addr, u32 size, u32using Kernel::MemoryPermission;SharedPtr<SharedMemory> shared_memory = SharedMemory::Create(size,(MemoryPermission)my_permission, (MemoryPermission)other_permission);+ // Map the SharedMemory to the specified address+ shared_memory->base_address = addr;CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(shared_memory)));LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x%08X", addr);