[PR #3861] [CLOSED] [WIP] core: add macOS arm64 support #3766

Closed
opened 2026-02-27 22:04:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3861
Author: @AlpinDale
Created: 12/8/2025
Status: Closed

Base: mainHead: macos-arm64


📝 Commits (10+)

📊 Changes

49 files changed (+4708 additions, -25 deletions)

View changed files

📝 .github/workflows/build.yml (+52 -1)
📝 .gitmodules (+3 -0)
📝 CMakeDarwinPresets.json (+13 -0)
📝 CMakeLists.txt (+51 -5)
📝 CMakePresets.json (+24 -0)
📝 externals/CMakeLists.txt (+5 -3)
externals/FEX (+1 -0)
📝 src/common/signal_context.cpp (+21 -0)
📝 src/common/va_ctx.h (+21 -1)
📝 src/core/address_space.cpp (+143 -9)
📝 src/core/address_space.h (+3 -0)
src/core/jit/arm64_codegen.cpp (+567 -0)
src/core/jit/arm64_codegen.h (+132 -0)
src/core/jit/block_manager.cpp (+126 -0)
src/core/jit/block_manager.h (+85 -0)
src/core/jit/calling_convention.cpp (+63 -0)
src/core/jit/calling_convention.h (+33 -0)
src/core/jit/execution_engine.cpp (+391 -0)
src/core/jit/execution_engine.h (+56 -0)
src/core/jit/hle_bridge.cpp (+139 -0)

...and 29 more files

📄 Description

Work-in-progress; attempt to add native apple silicon support (M-series chips, ARM64).

This PR doesn't work yet, changes have been made just to make the binary successfully build.

To test:

cmake --build Build/arm64-Clang-Debug-Tests --target jit_tests
./Build/arm64-Clang-Debug-Tests/tests/jit_tests

Current state

  • window launches (not ingame)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3861 **Author:** [@AlpinDale](https://github.com/AlpinDale) **Created:** 12/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `macos-arm64` --- ### 📝 Commits (10+) - [`382910c`](https://github.com/shadps4-emu/shadPS4/commit/382910c5205ff1ce05a00bf440cc3df6499f067f) core: add macOS arm64 support - [`6b6c405`](https://github.com/shadps4-emu/shadPS4/commit/6b6c405329e987c30301bed784769012b4bfb88c) nit: undo - [`513bc20`](https://github.com/shadps4-emu/shadPS4/commit/513bc203dfddaaa0f64cca1571ed68a5d2e4bf4d) some address space work - [`1c06171`](https://github.com/shadps4-emu/shadPS4/commit/1c0617146c2a1e8f2cd8a48061f6d53ffc412822) flexible address in mmap - [`26900f9`](https://github.com/shadps4-emu/shadPS4/commit/26900f9074a04a945ab50403b3ef009c7ce12c69) address translation - [`c99e312`](https://github.com/shadps4-emu/shadPS4/commit/c99e312e56f6a230dcb85694dd2f9921f491e1b6) simple JIT recompiler + tests - [`66a160a`](https://github.com/shadps4-emu/shadPS4/commit/66a160a995a1fa0c96aed9befaf2691deed9c497) clang-format - [`96b295f`](https://github.com/shadps4-emu/shadPS4/commit/96b295fc74f01177a2616da6cfdc6cd65c7ba3ba) Merge branch 'main' into macos-arm64 - [`8d0182f`](https://github.com/shadps4-emu/shadPS4/commit/8d0182fd9953fc9c13af4ae2ac6fa76fd3304911) try to fix the ci - [`185e6cd`](https://github.com/shadps4-emu/shadPS4/commit/185e6cd4295d0ce4a9d74d2a65c0de5166515ba4) use `pthread_jit_write_protect_np` in execution engine ### 📊 Changes **49 files changed** (+4708 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yml` (+52 -1) 📝 `.gitmodules` (+3 -0) 📝 `CMakeDarwinPresets.json` (+13 -0) 📝 `CMakeLists.txt` (+51 -5) 📝 `CMakePresets.json` (+24 -0) 📝 `externals/CMakeLists.txt` (+5 -3) ➕ `externals/FEX` (+1 -0) 📝 `src/common/signal_context.cpp` (+21 -0) 📝 `src/common/va_ctx.h` (+21 -1) 📝 `src/core/address_space.cpp` (+143 -9) 📝 `src/core/address_space.h` (+3 -0) ➕ `src/core/jit/arm64_codegen.cpp` (+567 -0) ➕ `src/core/jit/arm64_codegen.h` (+132 -0) ➕ `src/core/jit/block_manager.cpp` (+126 -0) ➕ `src/core/jit/block_manager.h` (+85 -0) ➕ `src/core/jit/calling_convention.cpp` (+63 -0) ➕ `src/core/jit/calling_convention.h` (+33 -0) ➕ `src/core/jit/execution_engine.cpp` (+391 -0) ➕ `src/core/jit/execution_engine.h` (+56 -0) ➕ `src/core/jit/hle_bridge.cpp` (+139 -0) _...and 29 more files_ </details> ### 📄 Description Work-in-progress; attempt to add native apple silicon support (M-series chips, ARM64). This PR doesn't work yet, ~~changes have been made just to make the binary successfully build~~. To test: ```sh cmake --build Build/arm64-Clang-Debug-Tests --target jit_tests ./Build/arm64-Clang-Debug-Tests/tests/jit_tests ``` ### Current state - window launches (not ingame) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3766
No description provided.