Merge pull request #1030 from Sonicadvance1/disable_userfaultfd

Disable userfaultfd until supported
This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis authored and GitHub committed 2021-05-12 09:45:43 +03:00
commit 7ecaf24e8b
1 file changed
+3
@@ -35,6 +35,9 @@ namespace FEX::HLE {
});
REGISTER_SYSCALL_IMPL(userfaultfd, [](FEXCore::Core::CpuStateFrame *Frame, int flags) -> uint64_t {
// Disable userfaultfd until we can properly emulate it
// This is okay because the kernel configuration allows you to disable it at compile time
return -ENOSYS;
uint64_t Result = ::syscall(SYS_userfaultfd, flags);
SYSCALL_ERRNO();
});