Repository navigation
Read the blog post at FEX-Emu's Site!
It's the end of the year and we have a new release to gift you. A lot of random bug hunting this month so let's see what changed!
Bunches of random JIT stuff
Big news on the JIT front this month. This month we added support for the AVX-IFMA, AVX-VNNI-INT8, and AVX-VNNI-INT16 extensions. A caveat of the IFMA
instruction is that it onlt works on setups with SVE because it would be too costly to emulate otherwise. While these extensions aren't in wide use
today, in ten years time when they end up getting used more heavily we will already be done with the work. Thanks to a new
contributor for implementing these for us!
Additional JIT changes this month
- SHA1 peephole optimization for a near 2x perf uplift
- Fixes for CPUID core count
- AVX support for wow64
- Use software fallback for RDSEED on Snapdragon X2 Elite hardware
- Fixes an infinite stack growth bug
- Implement fault-free synchronous faults for Wow64
- Improves performance for anti-tamper 32-bit games
- Fix incorrect zero-extend on wow64 syscalls
- Optimize PSHUFD for a common compiler idiom
- Stop tracking reserve-only allocations on wow64
- Was causing too much tracking overhead for some games
- Use new ARM64ec AVX support in Wine
- Downstream patch to wine removed, update your forks
- Remove one instruction in SVE fdiv
- Various edge-case instruction decode bugs that anti-tamper was triggering
Fix FEXRootFSFetcher config path
This was actually a bug for a while that someone brought up a while ago but wasn't ever diagnosed. Turns out on a fresh system when installing FEX for
the first time when we invoked the FEXRootFSFetcher tool to download the rootfs, it would download the image to an XDG directory but when it went
to set the config option, the config paths weren't yet setup. This was an oversight coming from a non-XDG setup where everything is in a single
combined directory and they would always exist at that point.
This would show up as during first run FEX would complain about a missing rootfs. Now that this is fixed, XDG specification users can setup without
additional troublesuiting.
Expose ARM ID registers through CPUID
A new fun feature for our developers is we are exposing the ARM64 identification registers through CPUID. We already poke through some information and
we're extending this. Basically we want to have some of our x86 unit tests only run with certain ARM64 host features but it could be useful elsewhere.
Read our official documentation to understand what
we're exposing. Now that this is part of the CPUID ABI, we're be maintaining it going forward.
Stop consuming 8MB of 32-bit guest space for Linux
When running a 32-bit application FEX needs to reserve up to 256TB of virtual address space to ensure the guest application doesn't use memory that it
isn't supposed to. When we set this up a few years ago we left a bug where we were consuming some guest address space. It was relatively small at only
8MB but it was a known issue that we forgot about over time. We finally went back to it this month and made sure that the application gets its
rightful 8MB of space, we no longer consume it.
Raw Changes
-
ARM64EC
- Remove no longer needed CONTEXT_ARM64_FEX_YMMSTATE flag (1800dda)
-
Allocator
- Stop consuming 8MB from 32-bit VA space (2418bc1)
-
CI
- Update Actions deps (388fd9c)
-
CMake
-
CPUID
-
Config
- Hide details of EnumParser in the cpp (0fe0648)
-
Crypto
- SHA1 Peephole (cfc74fe)
-
DiskCache
- Moves SVE/AVX from HostFeatureHash to ProcessHash (e67bbd3)
-
Dispatcher
- honour TF on the L1 fast path after SYSCALL and CPUID (90c9595)
-
FEX
- Implement support for CPUID faulting (c985199)
-
FEXCore
- Ensure BSF/BSR works with repne prefix (ab135df)
-
FEXGetConfig
- Use new LSE2Size field to see unaligned granulrity (031d6d1)
-
FEXInterpreter
- select is banned (e3b30dd)
-
FEXMingwTests
-
FEXRootFSFetcher
- Fixes Config setting (16c1000)
-
HostFeatures
- Move AVX feature flag (f011e6e)
-
Hostrunner
- reenable host runner FEX Linux tests (b4ebbb5)
-
InstcountCI
-
JIT
- Ensure IR ops that jump out of the JIT reset the stack (2a62720)
-
Misc
-
Profiler
- Use cycle counter register directly (8e95a99)
-
SVE
- Make use of FDIVR in VFDiv (d663eb8)
-
SVEOps
-
Steam
- Adds AppConfig support (f184e6b)
-
Vector
- Amend MMX PUNPCKL memory op handling (a92baf0)
-
WINE
- Fixes race on TerminateProcess (ea43314)
-
WOW64
- Enable AVX support (490bb02)
-
Wow64
-
Misc
- (efe2bb7)
- AVX-IFMA support (f243eee)
- AVX-VNNI-INT(8/16) support (fa9dac9)
- Optimize SHUFPS with matching sources to use PSHUFD (2498816)
- Seccomp fix for TSYNC mode when threads were not call prctl (3ee2539)
- Remove backend aware fault based synchronous faults (0e911b1)
- Fix some seccomp issues over code (95d69be)
- Small improvements of partial decode test (bce85d9)
- Add Nix flake + NixOS module (b4ab982)
- Ensure serialize isn't covering too much of the instruction space (8646d5b)
- Minor fixes (ae495b9)
-
github
-
unittests
-
wow64
- arm64ec
- Stop tracking reserve only allocations (be66e03)
- arm64ec