github FEX-Emu/FEX FEX-2612
FEX Release FEX-2612

36 minutes ago

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

  • CMake

    • Remove DEPENDS from install(CODE) (63b8e0b)
    • Skip CPU/Arch tuning if already set (a830e3a)
  • CPUID

    • Expose ARM identification registers (324f17b)
    • Fixes for CPU count (5c0cfdb)
    • Claim support for FRED (7fdac22)
  • Config

    • Hide details of EnumParser in the cpp (0fe0648)
  • Crypto

  • 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

  • FEXMingwTests

    • Adds AVX fault test (53e1484)
    • Adds a synchronous fault test (9143cca)
  • FEXRootFSFetcher

  • HostFeatures

  • Hostrunner

    • reenable host runner FEX Linux tests (b4ebbb5)
  • InstcountCI

    • Fixes AVX-IFMA operations (7725204)
    • Adds integer to float x87 operations (cbdc26b)
  • JIT

    • Ensure IR ops that jump out of the JIT reset the stack (2a62720)
  • Misc

    • Use software fallback on Oryon only for RDSEED (fee25a8)
    • Support int 0x81 for WOW64 (5f286f9)
  • Profiler

    • Use cycle counter register directly (8e95a99)
  • SVE

    • Make use of FDIVR in VFDiv (d663eb8)
  • SVEOps

    • Handle 128-bit TRN (1febe71)
    • Loosen restrictions on ZIP1/ZIP2/UZP1/UZP2 sizes (42b6753)
  • Steam

  • Vector

    • Amend MMX PUNPCKL memory op handling (a92baf0)
  • WINE

    • Fixes race on TerminateProcess (ea43314)
  • WOW64

  • Wow64

    • Implement fault-free synchronous signals (727948a)
    • Fixes incorrect zext on syscalls (90d394e)
  • 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

    • Set up new ARMv9.0 runner (159683c)
    • Add config.yml/general issue template (8e98059)
    • clear up formatting issues (fcb4dc4)
    • Convert templates to yaml (788e827)
  • unittests

    • 32BitASM

      • Fixes test with new nasm (9ce01bd)
    • ASM

      • Adds new shufps test for single-source (ea69299)
    • FEXLinuxTests

      • Work around signal limitation (112a061)
  • wow64

    • arm64ec
      • Stop tracking reserve only allocations (be66e03)

Don't miss a new FEX release

NewReleases is sending notifications on new releases.