diff --git a/nx/source/kernel/jit.c b/nx/source/kernel/jit.c index acaf2bb4..9aba96d2 100644 --- a/nx/source/kernel/jit.c +++ b/nx/source/kernel/jit.c @@ -15,8 +15,8 @@ Result jitCreate(Jit* j, size_t size) // Use new CodeMemory object introduced in [4.0.0+], if available. // On [5.0.0+] this is only usable with a kernel patch, as svcControlCodeMemory now errors if it's used under the same process which owns the object. - if (kernelAbove400() && envIsSyscallHinted(0x4B) && envIsSyscallHinted(0x4C) - && (!kernelAbove500() || detectJitKernelPatch())) { + // The homebrew loading environment is responsible for hinting the syscalls if they are available/usable for jit. + if (envIsSyscallHinted(0x4B) && envIsSyscallHinted(0x4C)) { type = JitType_CodeMemory; } // Fall back to JitType_SetProcessMemoryPermission if available.