Re:A Secret Apple Silicon Extension to Accommodate an Intel ...
by mananaysiempre on Thursday November 17, 2022 @03:15AM
(#33636236)
The extension is putting Intel-compatible parity and adjust / aux carry flags in (architecturally zero) bits 26 and 27 of the ARM flags (NCZV) register, to avoid the ahead-of-time translator that is Rosetta 2 having to defensively compute them when it can’t tell they’re unused. No information on how to enable that extension.
[ Parent
| on HN ]
Re:A Secret Apple Silicon Extension to Accommodate an Intel ...
by mjevans on Thursday November 17, 2022 @04:16AM
(#33636606)
Implicit phrasing in the article suggests guests cannot enable the flag at all, as it's a CPU mode change. It might be important to bare metal OS writers though, hopefully those teams have already reverse engineered the method or are kindly answered by the manufacturer.
Re:A Secret Apple Silicon Extension to Accommodate an Intel ...
by dougall on Thursday November 17, 2022 @06:01AM
(#33637307)
I've only messed around in user-space, so I'm not sure how it's enabled. But if I were to guess, it might be bit 4 ("Enable APFLG") of ACTLR_EL1 ("(ARM standard-not-standard)"): https://github.com/AsahiLinux/docs/wiki/HW:ARM-System-Regist...