docs(relinker): record what Rosetta executes on an M5 #7143
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7143"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by javierUDP on 2026-10-17T13:34:54Z.
What
The Rosetta conversion limits in Rosetta conversion limits come from an M1 running macOS 15.3.1 and an M5 Max. This records a survey on a second host, an M5 running macOS 26.4, so the entry says which host each observation comes from.
Each instruction runs in its own x86-64 process built with
clang -arch x86_64; a process that exits normally executed it, and one killed bySIGILLdid not. CPUID leaves 1, 7 and 0x80000001 are read the same way.CPUID on that host: leaf 1 ECX
0298220f(no FMA, MOVBE, XSAVE, OSXSAVE, AVX, F16C or RDRAND), leaf 7 EBX00000000, leaf 0x80000001 ECX00000001(no LZCNT, SSE4A or PREFETCHW).XGETBVreads XCR00000000000000007although OSXSAVE is not reported.So ANDN and RDRAND, which fault on the M1, execute here, and RDPID raises an illegal instruction rather than returning a value, which is what the substitution avoids. The instructions
--to-intelconverts all raise an illegal instruction, as the conversions assume.Tested
Apple M5, macOS 26.4, AppleClang 21.0.0, on current
main. Documentation only, no build output changes.python3 tools/check_conventions.py --base origin/mainpasses.The M1 and M5 Max observations already in the entry were not re-run; neither host was available.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file: n/a, documentation only.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by Destroyers212x on 2026-10-17T13:37:15Z.
Adding a data point from a second chip that may help with the wording. It's the same chip generation as the M1 on macOS 15.3.1, but on a newer macOS.
M1, macOS 26.6.2. Same method: each instruction runs in its own forked x86-64 process built with
clang -arch x86_64. A process that exits normally executed the instruction; one killed bySIGILLdid not.Under Rosetta,
machdep.cpu.features(leaf 1) lists none of MOVBE, FMA, AVX or F16C. I did not read leaf 7 or 0x80000001.ANDN and RDRAND faulted on an M1 with macOS 15.3.1 but execute on this M1 with 26.6.2. So that difference seems to come from the Rosetta version, not the chip, and the entry could attribute it to the macOS version. If it's useful, feel free to fold this into this PR. I won't open a separate one on the same line.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T13:46:31Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/relinker.mdL20Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/relinker.md