CodeCache: Support targeting WOW64/ARM64EC in FEXOfflineCompiler#5546
Merged
Sonicadvance1 merged 2 commits intoJun 17, 2026
Conversation
da35bb1 to
ba74dd2
Compare
Member
|
Needs a rebase. |
Implements an offline JIT compiler backend that compiles x86 code blocks
from a given code map into an ARM64 code cache on Windows. Separate
binaries are built for WOW64 (32-bit) and ARM64EC (64-bit) targets.
NOTE: This patch originally added a separate binary; instead the new
functionality is added to the existing FEXOfflineCompiler and will
be properly integrated in the next patches.
ba74dd2 to
6cb73ad
Compare
Sonicadvance1
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alternative to #5502 (largely reusing Billy's implementation).
This makes the existing FEXOfflineCompiler usable as a PE executable that will generate FEX code caches for WOW64/ARM64EC binaries. In combination with other upcoming patches, this has been end-to-end-tested and verified to produce functional caches that pass validation when loaded at runtime.
Using a single executable makes it easier to stick to consistent conventions across our target platforms, particularly with PE support for x86 Wine running under FEX eventually being added here too. We can still diverge where needed but will be more explicit about it.