From 5ac07f686d3143798dd91f980d1d30b14817fe2e Mon Sep 17 00:00:00 2001 From: "Herman S." <429230+has207@users.noreply.github.com> Date: Mon, 29 Sep 2025 16:19:26 +0900 Subject: [PATCH] [Xboxkrnl] Remove devkit memory access assert and replace with warning --- src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc index 9ac3aea94..aac21eba2 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc @@ -76,7 +76,14 @@ dword_result_t NtAllocateVirtualMemory_entry(lpdword_t base_addr_ptr, assert_not_null(region_size_ptr); // Set to TRUE when allocation is from devkit memory area. - assert_true(debug_memory == 0); + // We don't support separate devkit memory, so just ignore this flag. + if (debug_memory) { + XELOGW( + "Game is attempting to allocate devkit debug memory (base: {:08X}, " + "size: {:08X}). Ignoring debug flag and using normal allocation.", + base_addr_ptr ? uint32_t(*base_addr_ptr) : 0, + region_size_ptr ? uint32_t(*region_size_ptr) : 0); + } // This allocates memory from the kernel heap, which is initialized on startup // and shared by both the kernel implementation and user code.