Commit Graph
913 Commits
Author SHA1 Message Date
Ryan Houdek 8a5813e4d0 [WIP] Fork syscall support
Bit buggy
2020-06-30 16:22:47 +03:00
Ryan Houdek a8a2a340ca Merge pull request #250 from FEX-Emu/skmp/posixtest-lists-comments
posixtests: Add support for comments in the failures/outputs/disabled lists
2020-06-30 03:19:16 -07:00
Stefanos Kornilios Mitsis Poiitidis edd6d5ec4b posixtests: Add support for comments in the failures/outputs/disabled lists 2020-06-30 13:11:45 +03:00
Ryan Houdek b73b585db3 Merge pull request #246 from FEX-Emu/skmp/fix-syscall-forward-macro
Syscalls/x64: Fix SYSCALL_FORWARD_ERRNO
2020-06-25 04:58:15 -07:00
Stefanos Kornilios Mitsis Poiitidis 7b7c4a9730 Syscalls/x64: Fix SYSCALL_FORWARD_ERRNO 2020-06-25 14:51:01 +03:00
Ryan Houdek eaac20d091 Merge pull request #245 from FEX-Emu/skmp/syscall-symbols-backtrace
Syscalls: Add a wrapping class for better backtrace
2020-06-25 04:41:40 -07:00
Stefanos Kornilios Mitsis Poiitidis 4e515abb33 Syscalls: Add a wrapping class for better backtrace 2020-06-25 14:29:02 +03:00
Ryan Houdek 8e95d502f3 Merge pull request #226 from FEX-Emu/skmp/add-all-syscall
Dynamic Syscall Regsistration, Automatic Strace generation
2020-06-25 03:18:43 -07:00
Stefanos Kornilios Mitsis Poiitidis 3f4150947e Posixtests: Update to fixed strftime test, renable it 2020-06-25 12:46:52 +03:00
Stefanos Kornilios Mitsis Poiitidis 8d496fb9e0 Posix Tests: Disable more sig* tests til we implement signals
These fail now as tgkill & tkill are implemented.

They pass on x86-64 because the gues handlers run natively
2020-06-24 10:30:53 +03:00
Stefanos Kornilios Mitsis Poiitidis c74518aa8a Posix Tests: Disable conformance-interfaces-strftime-2-1.test
Seems to be running into some buffer overrun w/ LANG="en_US.UTF-8" in the test machines
2020-06-24 10:13:20 +03:00
Stefanos Kornilios Mitsis Poiitidis 3190398f2b Merge pull request #242 from Sonicadvance1/ffreep_support
Implements FFREEP Instruction
2020-06-22 15:53:40 +03:00
Ryan Houdek 68fba3ffb5 Adds FFREEP unit test 2020-06-20 08:16:21 -07:00
Ryan Houdek 2bcc46c9e5 Implements FFREEP support in the OpDispatcher
There's some history for this instruction. It is not in the official
instruction documentations from AMD or Intel but it is supported on
almost every x87 supporting CPU (I think there was some Cyrix that
missed it?)

This was originally implemented by accident on the Intel 80287 CPU.
It was then periodically documented in random documentation.

The instruction behaves exactly like FFREE but then pops the stack after
the operation.
For our current implementation of FFREE, which is a NOP, we just need to
pop the stack.
2020-06-20 08:11:26 -07:00
Stefanos Kornilios Mitsis Poiitidis df1ed9442b Syscalls/x64: Add stubs for all syscalls, remove some syscall entries that are too new 2020-06-19 20:30:06 +03:00
Stefanos Kornilios Mitsis Poiitidis 7c2efe0155 Syscalls: Cleanup headers, add names, add NotImplemented 2020-06-19 13:07:07 +03:00
Stefanos Kornilios Mitsis Poiitidis 86f03d25aa syscalls: Update Known_Failures for tgkill/munlockall impls 2020-06-19 10:57:37 +03:00
Stefanos Kornilios Mitsis Poiitidis eddd3dd4ed Syscalls/x64: Cleanup and document syscall registration/forwarding logic 2020-06-19 09:45:00 +03:00
Stefanos Kornilios Mitsis Poiitidis db213f94f3 Syscalls: Implement tkill, tgkill 2020-06-18 20:18:56 +03:00
Stefanos Kornilios Mitsis Poiitidis 0bf585bf76 Syscalls: Dynamic registration, auto strace generation 2020-06-18 19:57:58 +03:00
Stefanos Kornilios Mitsis Poiitidis 620cfa0d09 Merge pull request #241 from phire/fallocate_syscall
Implement fallocate syscall
2020-06-17 15:16:01 +03:00
Scott Mansell 41635ee8be Implement fallocate syscall 2020-06-17 23:47:52 +12:00
Stefanos Kornilios Mitsis Poiitidis 0bd471448a Merge pull request #240 from Sonicadvance1/timerfd_syscalls
Implements two missing timerfd syscalls
2020-06-17 13:34:59 +03:00
Ryan Houdek 7a48d17d66 Implements two missing timerfd syscalls 2020-06-16 16:53:08 -07:00
Stefanos Kornilios Mitsis Poiitidis 0e19763045 Merge pull request #236 from Sonicadvance1/32bit_move_segments
Supports segment register moving
2020-06-16 10:47:17 +03:00
Stefanos Kornilios Mitsis Poiitidis 88d78e6664 Merge pull request #233 from Sonicadvance1/armv8_0_atomics
Implements atomic ops for ARMv8.0 devices
2020-06-16 10:46:12 +03:00
Stefanos Kornilios Mitsis Poiitidis cc2f994956 Merge pull request #237 from Sonicadvance1/32bit_opdispatcher
Supports 32bit operating mode in the OpDispatcher
2020-06-16 10:45:13 +03:00
Stefanos Kornilios Mitsis Poiitidis 06ece0402b Merge pull request #238 from Sonicadvance1/remove_debug_log
Remove a debug log from the AArch64 JIT
2020-06-16 10:43:08 +03:00
Stefanos Kornilios Mitsis Poiitidis 27cfb6b123 Merge pull request #239 from Sonicadvance1/fix_cvtps2dq
Fixes cvtps2dq instruction
2020-06-16 10:42:34 +03:00
Ryan Houdek 97fe8dbefe Adds unit test for cvtps2dq 2020-06-15 20:25:13 -07:00
Ryan Houdek 2acf22f15b Fixes cvtps2dq instruction
This must of have been a copy and paste error, I didn't even have this
instruction on my list of implemented instructions.
It definitely isn't converting to a GPR
2020-06-15 20:25:13 -07:00
Ryan Houdek ea85c70daf Remove a debug log from the AArch64 JIT
These keep sneaking back in when I'm testing
2020-06-14 14:35:53 -07:00
Stefanos Kornilios Mitsis Poiitidis 77b63760be Merge pull request #235 from Sonicadvance1/32bit_remove_64bit_size
Removes 64bit size from frontend when in 32bit mode
2020-06-14 03:15:48 +03:00
Stefanos Kornilios Mitsis Poiitidis 6c18e11600 Merge pull request #234 from Sonicadvance1/config_fixes
Config fixes
2020-06-14 03:14:52 +03:00
Ryan Houdek fc777887f4 Supports 32bit operating mode in the OpDispatcher
Pretty basic for the most part, just changes default operating mode for
most everything from 64bit to 32bit.
2020-06-12 19:27:43 -07:00
Ryan Houdek 3ff179c39c Adds unit test for mov to and from segment register 2020-06-12 18:50:24 -07:00
Ryan Houdek c2bd346297 Supports segment register moving
32bit apps are setting GS register that I saw.
64Bit applications can also technically use these instructions but it
has some major limitation that causes applications to never use them
2020-06-12 18:49:29 -07:00
Ryan Houdek 5b9de1675f Removes 64bit size from frontend when in 32bit mode
64bit mode doesn't exist when we are operating in 32bit mode, so this
needs to be disabled.
This forces a fallback to a 32bit size for those ops
2020-06-12 15:19:40 -07:00
Ryan Houdek 826464d894 Ensures that Config.json stores to ${CONFIG}/Config.json
Just ensures that it gets stored in the correct XDG or ~/ config
directories.
If these don't exist then it'll get dumped in to PWD or cwdir, whichever
is available as fallback
2020-06-12 15:08:16 -07:00
Ryan Houdek 7bfe127fcb Ensures the core saves the entry cache to the correct folder
We should store this in XDG_CACHE_HOME, not DATA_HOME.
Also fallback the HOME and PWD directories correctly
2020-06-12 15:08:16 -07:00
Ryan Houdek cf546268ea Ensures that Unified Memory is enabled by default 2020-06-12 15:08:16 -07:00
Ryan Houdek 53c46312ff Implements atomic ops for ARMv8.0 devices
These can only be implemented as acquire/release exclusive loops on
ARMv8.0 so they end up looking pretty disgusting.
This is more for compatibility for testing than anything. I'm not
expecting ANY ARMv8.0 device to get decent performance
2020-06-12 15:06:36 -07:00
Stefanos Kornilios Mitsis Poiitidis 6fbf0d8fc7 Merge pull request #232 from Sonicadvance1/32bit_prefix
More 32bit work
2020-06-12 23:41:02 +03:00
Ryan Houdek c7f2aa1ddd Adds a couple basic 32bit x86 unit tests
Super basic, just to show them working
2020-06-10 19:44:27 -07:00
Ryan Houdek 263ceb7086 Cleans up ASM unit test file generation
This allows the generated files to maintain the same folder structure as
how they exist in the source folder.
Resolves the issue that a file in a different folder could potentially
conflict with another in a different folder but have the same name.
This is an easier mental model when pulling unit tests in to a
disassembler for verifying codegen.
2020-06-10 19:44:27 -07:00
Ryan Houdek b262b59916 Fixes up prefix handling for 32bit
Moves REX to a 64bit only table entry. This allows the missing INC/DEC
instructions to exist in 32bit space
2020-06-10 16:49:06 -07:00
Stefanos Kornilios Mitsis Poiitidis 8ca73a63cc Merge pull request #174 from Sonicadvance1/enter_inst
Enter inst
2020-06-11 00:41:18 +03:00
Stefanos Kornilios Mitsis Poiitidis 4953a620d5 Merge pull request #230 from Sonicadvance1/virtual_cores
Adds new FEX config for telling the guest how many CPU cores it can have
2020-06-08 19:34:06 +03:00
Stefanos Kornilios Mitsis Poiitidis 908b2c108b Merge pull request #229 from Sonicadvance1/fix_dce
Fixes a typo in the HasSideEffects json generator
2020-06-08 19:32:54 +03:00
Stefanos Kornilios Mitsis Poiitidis f9b4ec4bb0 Merge pull request #228 from Sonicadvance1/fix_bt_ops
Fixes a case of the BT ops failing to test the correct bit
2020-06-08 19:31:29 +03:00