Repository navigation
[Research / WIP] Experimental iOS ARM64 support — Contributors welcome #6652
Replies: 2 comments
|
AnyPS5 iOS/ARM64 Experimental Development — Progress Update Hi everyone, I wanted to provide an update on the experimental effort to investigate running PS5 software natively on iOS using AnyPS5 as the foundation. Since my original post, development has progressed considerably. What began as a minimal C++20 x86-64 interpreter supporting MOV, ADD and RET has evolved into a more capable execution engine with expanded instruction support, compiler-generated program compatibility testing, guest memory management and an experimental executable loader. The long-term objective remains unchanged: to investigate the feasibility of running PS5 software directly on ARM64 iPhones and iPads without relying on game streaming or a remote console. Current progress Estimated overall project completion: approximately 5%. This is a preliminary engineering estimate of progress toward the long-term iOS PS5 emulation objective, rather than a measured compatibility percentage. The experimental CPU interpreter has progressed substantially further than the overall emulator. Significant work remains in executable loading, operating-system compatibility, graphics translation, hardware interfaces and performance optimization. The current development roadmap is as follows:
These phases describe the current experimental development roadmap and do not represent the full scope of work required for a functional PS5 emulator. Development completed since the original discussion Expanded x86-64 interpreter The interpreter has progressed beyond its original three-instruction implementation and now supports a broader subset of x86-64 execution. Implemented functionality includes:
The interpreter can now execute more complex instruction sequences, including code generated by conventional C compilers. Compiler-generated program compatibility One of the most significant developments has been the introduction of a reproducible compatibility test suite using compiler-generated x86-64 machine code. The test corpus includes functions involving recursion, integer algorithms, division, bit manipulation, array traversal, pointer arithmetic, sorting and indirect function calls. The Stage 3 baseline currently passes 2,047 out of 2,047 test cases. These results demonstrate compatibility with the selected test corpus, not general x86-64 software compatibility. Additional instruction coverage, differential testing and correctness improvements will remain ongoing requirements. Guest runtime and memory management Development has progressed into the implementation of a guest runtime. The current prototype includes:
These features provide an initial foundation for executing more complex programs within a controlled guest environment. The memory model remains experimental and is not yet a complete virtual memory implementation or production-grade sandbox. Experimental executable loading An experimental executable-image format, AG64, has been introduced to support runtime development and testing. The loader currently supports:
The latest loader and relocation tests have passed automated CI validation. AG64 is a development-specific format and does not currently provide general ELF or PS5 SELF executable compatibility. Its purpose is to validate the underlying runtime and loading mechanisms before introducing more complex executable formats. Automated testing and cross-platform support The experimental implementation continues to use portable C++20 and remains isolated from the existing AnyPS5 implementations. Automated testing has expanded to include instruction correctness, differential testing, compiled-program execution, memory validation and executable loading. Build configurations cover Windows, Linux, macOS and an iOS ARM64 static-library target. Although the project includes an iOS ARM64 build configuration, successful execution and performance on physical iOS hardware have not yet been demonstrated. Planned development Immediate priorities The current focus is completing the next stage of guest runtime development. Planned work includes:
The next significant milestone will be executing a small, independently compiled x86-64 program through the runtime. ARM64 optimization and iOS integration Following further runtime development, the next priority will be validating execution on physical ARM64 iOS hardware. This will involve performance benchmarking, memory usage analysis, instruction decoding optimizations and evaluating potential approaches to binary translation. Any JIT-based approach will need to account for Apple’s executable-memory restrictions, code-signing requirements and applicable platform limitations. The intention is to develop an iOS testing application capable of executing the existing test corpus and reporting compatibility, performance and diagnostic information. PS5-specific compatibility research The longer-term work remains substantially more complex. Areas requiring investigation include:
The initial compatibility target would be small homebrew executables rather than commercial games. At this stage, no claims are being made regarding PS5 game compatibility or the eventual feasibility of running commercial titles on iOS. Collaboration and contributions Contributions and technical feedback remain welcome. Areas of particular interest include x86-64 emulation, ARM64 architecture, binary translation, C++20, iOS development, executable loading, memory management, Metal and emulator architecture. Code review, testing, architectural feedback, documentation and research contributions would all be valuable. Development continues in a dedicated branch to avoid disrupting the existing Windows, Linux and macOS implementations. The long-term intention is to contribute reusable components upstream where appropriate, subject to maintainer feedback and the project’s contribution requirements. Development branch: https://github.com/srgtcauliflour/AnyPS5/tree/experiment/ios-arm64-cpu-interpreter Development roadmap: https://github.com/srgtcauliflour/AnyPS5/blob/experiment/ios-arm64-cpu-interpreter/experimental/arm64-cpu/ROADMAP.md Stage 3 compatibility report: https://github.com/srgtcauliflour/AnyPS5/blob/experiment/ios-arm64-cpu-interpreter/experimental/arm64-cpu/STAGE3_COMPATIBILITY.md Stage 4 runtime documentation: https://github.com/srgtcauliflour/AnyPS5/blob/experiment/ios-arm64-cpu-interpreter/experimental/arm64-cpu/STAGE4_RUNTIME.md Questions for the maintainers Now that the experimental implementation has progressed beyond the initial prototype, I would appreciate feedback on several points:
Summary Since the original discussion, the project has progressed from a minimal three-instruction interpreter to an experimental x86-64 execution engine capable of running compiler-generated functions and passing a 2,047-case compatibility corpus. Initial guest memory management, executable-image loading and relocation support have also been implemented and validated through automated testing. Although this represents meaningful progress, the overall effort remains at an early research and development stage. The current implementation cannot execute PS5 games, and native execution on iOS hardware remains to be demonstrated. The immediate focus is improving runtime compatibility, executing more complete compiled programs and preparing for ARM64 hardware validation. I intend to continue publishing development updates as significant milestones are reached. Thank you to the AnyPS5 maintainers and contributors for their continued work on the project, and to everyone who has shown interest in this experimental effort. |
|
Quick update for anyone following this: the iOS job in I opened a PR against the experiment branch that closes that gap. It builds the portable test suites for the iOS Simulator, signs the generated It currently executes 7 suites inside the simulator (including the program corpus and the carry/rotate tests) and all of them pass. The architecture follows the host CPU, so on an Apple Silicon runner this is a native arm64 simulator run. Happy to reshape it (separate workflow vs. an extra job inside |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone!
I’ve started an experimental effort to investigate running PS5 software natively on iOS using AnyPS5 as the foundation.
The goal is to explore whether we can eventually bring AnyPS5 to ARM64 iPhones and iPads, without relying on game streaming or a remote PS5.
Current progress
I’ve created a dedicated development branch in my fork:
https://github.com/srgtcauliflour/AnyPS5/tree/experiment/ios-arm64-cpu-interpreter
The first prototype includes:
The implementation is experimental, and successful iOS execution has not yet been demonstrated.
Planned development
Collaboration
Anyone interested is very welcome to contribute!
I’m particularly interested in hearing from developers experienced with ARM64, x86-64 emulation, iOS development, Metal, binary translation, and executable loading.
Contributions of any size are welcome, including architecture feedback, code review, testing, research and implementation.
This work is being developed separately to avoid disrupting the existing Windows, Linux and macOS implementations. The long-term hope is to contribute reusable components upstream, subject to maintainer feedback and the project’s standards.
Questions for the maintainers
Related: #1 and #1553.
Thanks to the maintainers and contributors for the work already going into AnyPS5!
All reactions