Ryan Houdek
298481f9af
Support redirecting thread-self exe softlink
2021-05-11 18:15:14 -07:00
Ryan Houdek
0d108cd8fd
Return ENOSYS on too large of syscall number
2021-05-11 18:14:02 -07:00
Ryan Houdek
490d7e57d7
Arguments file needs one additional null argument to finish the arguments.
2021-05-11 18:12:16 -07:00
Ryan Houdek
fe77c3ef06
Fix cpuinfo needing tabs on its options and PM option
...
Depending on option it is split by anywhere from zero to two tabs
2021-05-11 18:12:16 -07:00
Ryan Houdek
eb02afe952
Merge pull request #1013 from Sonicadvance1/fix_openat_symlinks
...
Handles symlinks in rootfs in openat
2021-05-11 17:52:07 -07:00
Stefanos Kornilios Mitsis Poiitidis
b8dc63754b
AOTIR: Don't keep IR,RA,Code data around when aotirgenerating
2021-05-11 15:15:39 +03:00
Stefanos Kornilios Mitsis Poiitidis
df8f1850ae
AOTIR: .aotir files are now stream-written
2021-05-11 14:37:12 +03:00
Ryan Houdek
e282fd2221
Merge pull request #1016 from Sonicadvance1/ioctl32_micro_optimization
...
Microoptimization for the DRM ioctls
2021-05-10 21:14:16 -07:00
Stefanos Kornilios Mitsis Poiitidis
3147f0d84f
Merge pull request #1017 from Sonicadvance1/fix_x86_jitsymbols
...
Fixes JITSymbols for x86-64 JIT
2021-05-10 00:36:30 +03:00
Stefanos Kornilios Mitsis Poiitidis
4c02c9f037
Merge pull request #1015 from Sonicadvance1/fix_inotify_thread
...
FEXConfig: Fixes INotify watcher never coming up
2021-05-10 00:34:27 +03:00
Ryan Houdek
83b4188569
Microoptimization for the DRM ioctls
...
For DRM applications have a three FD deep MRU cached for faster lookups of FD to DRM handlers.
In a completely DRM ioctl bound situation like es2gears or GL application without threaded context
Then this puts us /nearly/ at the performance of calling the ioctl32 handler directly.
Sadly there is overhead that can't be overcome so this is the best that can be done from userland
2021-05-06 02:55:22 -07:00
Ryan Houdek
82b04d9886
Fixes JITSymbols for x86-64 JIT
2021-05-06 01:12:51 -07:00
Ryan Houdek
36fdd7f6e2
FEXConfig: Fixes INotify watcher never coming up
...
Inverted this check on accident
2021-05-05 19:44:31 -07:00
Ryan Houdek
6a1ca654db
Docs: Update for release FEX-2105
FEX-2105
2021-05-05 17:53:55 -07:00
Ryan Houdek
623b29de8c
Merge pull request #1014 from Sonicadvance1/fix_host_stacks
...
Fixes host thread stacks ending up in lower 32-bit VA
2021-05-05 15:51:40 -07:00
Ryan Houdek
9be67fb22a
Merge pull request #1009 from Sonicadvance1/handle_self
...
Handle more cases of an application pinging self
2021-05-05 14:51:11 -07:00
Ryan Houdek
cb9286c11e
Merge pull request #1012 from Sonicadvance1/fix_ioctl_errors
...
Fixes ioctl returning error
2021-05-05 14:50:46 -07:00
Ryan Houdek
1e40148f60
Fixes host thread stacks ending up in lower 32-bit VA
...
Overriding glibc's mmap and munmap functions don't encapsulate that functions they use
for allocating stack data so it was falling down the system mmap/munmap path.
This was causing host side stacks to end up in the 32-bit VA space in 32-bit applications.
2021-05-04 22:15:46 -07:00
Ryan Houdek
19e45544fb
Handles symlinks in rootfs in openat
...
This fixes an issue where rootfs has symlinks to other things in the rootfs so we need to track it through.
Relies on #1009 to be merged first.
Fixes any application that relies on libblas, mpv for example.
2021-05-04 22:13:52 -07:00
Ryan Houdek
d9d5303aa0
Fixes ioctl returning error
...
Fixes evdev device description at the very least
2021-05-04 18:45:25 -07:00
Ryan Houdek
517b575783
Merge pull request #1010 from FEX-Emu/skmp/aotupdate-install-cmake
...
AOTIR: Add install rule for FEXUpdateAOTIRCache
2021-05-04 18:11:27 -07:00
Ryan Houdek
605994dca2
Merge pull request #1011 from FEX-Emu/skmp/fix-0xcd-breaks
...
JIT: Add reason 1 (0xCD) to OP_BREAK implementations
2021-05-04 18:11:17 -07:00
Ryan Houdek
ac97c05271
Handle more cases of an application pinging self
...
AppImage uses this to inspect its own executable to ensure it is an AppImage file.
2021-05-04 18:09:15 -07:00
Stefanos Kornilios Mitsis Poiitidis
c8bb02f3a6
JIT: Add reason 1 (0xCD) to OP_BREAK implementations
2021-05-04 13:22:00 +03:00
Stefanos Kornilios Mitsis Poiitidis
6b12c1768f
AOTIR: Add install rule for FEXUpdateAOTIRCache
2021-05-04 12:33:59 +03:00
Stefanos Kornilios Mitsis Poiitidis
693097c5b1
Merge pull request #1008 from Sonicadvance1/fix_binfmt_misc
...
Updates binfmt_misc files to support AppImage
2021-05-04 11:14:49 +03:00
Ryan Houdek
47e823b773
Updates binfmt_misc files to support AppImage
...
AppImage files stick additional data in the ABI Version and PAD areas that it was getting blocked on.
2021-05-03 18:08:00 -07:00
Ryan Houdek
fd6d33d197
Merge pull request #996 from FEX-Emu/skmp/aotirgen
...
AOTIR: Offline Generation
2021-05-03 15:58:57 -07:00
Stefanos Kornilios Mitsis Poiitidis
d8b583bc51
Remove assert that was used in debugging
2021-05-04 01:47:39 +03:00
Stefanos Kornilios Mitsis Poiitidis
be41f14452
Fix generation script
2021-05-03 18:16:43 +03:00
Stefanos Kornilios Mitsis Poiitidis
cf5bd202d4
AOTIR: Update gen script to default to global fex installation
2021-05-03 06:15:25 +03:00
Stefanos Kornilios Mitsis Poiitidis
8893cc6a7d
Undo xbyak update
2021-05-03 05:48:00 +03:00
Stefanos Kornilios Mitsis Poiitidis
1d82e9e59e
JIT: Stub Break reasons 2, 3
2021-05-03 05:42:46 +03:00
Stefanos Kornilios Mitsis Poiitidis
5b017f9a66
Merge pull request #1007 from Sonicadvance1/more_ioctl32_emulation2
...
Adds Nouveau and Lima ioctl32 handlers
2021-05-03 05:10:21 +03:00
Ryan Houdek
3399052eaa
Make sure to setup ioctl32 handler table
2021-05-02 14:30:23 -07:00
Ryan Houdek
3df951695e
Adds Nouveau and Lima ioctl32 handlers
2021-05-02 13:05:46 -07:00
Ryan Houdek
8d1f9a9081
Merge pull request #1006 from Sonicadvance1/implement_clflush
...
Implements support for CLFLUSH
2021-05-02 12:27:54 -07:00
Ryan Houdek
68adb1ae12
Basic clflush test
2021-05-02 12:18:35 -07:00
Ryan Houdek
4961604807
Implements support for CLFLUSH
...
JRE requires this to run
2021-05-02 12:18:35 -07:00
Stefanos Kornilios Mitsis Poiitidis
d6b7f32d33
AOTGen: Cleanup unwind symbol logic, add to x86-32 binaries
2021-05-02 11:08:12 +03:00
Stefanos Kornilios Mitsis Poiitidis
6dc69063f3
Merge pull request #1005 from Sonicadvance1/remove_numa
...
Remove reliance on librt and libnuma
2021-05-02 09:50:10 +03:00
Stefanos Kornilios Mitsis Poiitidis
2916c4f34c
Merge pull request #1004 from Sonicadvance1/redirect_self
...
Redirect applications using execve with self
2021-05-02 09:49:55 +03:00
Stefanos Kornilios Mitsis Poiitidis
04137d0da5
Merge pull request #1002 from Sonicadvance1/sigtimedwait
...
Initial base implementation of sigtimedwait
2021-05-02 09:49:49 +03:00
Stefanos Kornilios Mitsis Poiitidis
afa81294c9
Merge pull request #1001 from Sonicadvance1/more_ioctl32_emulation
...
More ioctl32 emulation
2021-05-02 09:49:44 +03:00
Ryan Houdek
86bdbe65e5
Implements missed x86-32 message queue syscalls
...
Nothing hit these but good to have them implemented
2021-05-01 17:40:33 -07:00
Ryan Houdek
63dee0e132
Remove reliance on librt and libnuma
...
These can fall down the raw syscall path
2021-05-01 17:40:33 -07:00
Ryan Houdek
6618bb809b
Redirect applications using execve with self
...
Fixes a step in the Java JRE and shapez.io
2021-05-01 11:09:44 -07:00
Ryan Houdek
d2b19c0b1c
Disable gvisor sigtimedwait test
2021-05-01 10:19:13 -07:00
Ryan Houdek
90a8c4f114
Shuffle timed sigwait unit tests that have changed behaviour
2021-05-01 10:11:20 -07:00
Ryan Houdek
866baf66db
Merge pull request #1003 from Sonicadvance1/cleaned_sendrecvmsg
...
Workaround fixes in sendmsg/recvmsg
2021-05-01 10:06:41 -07:00