News for hackers. Stuff that matters.
Re:Apple Silicon M1 Emulating x86 Is Still Faster Than Every... by wtallis on Monday November 16, 2020 @05:16AM (#25110096)
> but also you'd need to watch for writes to executable pages that have been already AOT translated.

Wouldn't executable pages (translated or not) normally be mapped as read-only, ensuring the processor faults on any attempt to modify them?

Re:Apple Silicon M1 Emulating x86 Is Still Faster Than Every... by cormacrelf on Monday November 16, 2020 @05:26AM (#25110141)
Ah, the question is whether Darwin enforces W^X, because if so, the problem becomes very easy. Then you re-translate whenever a page becomes executable [again].
Re:Apple Silicon M1 Emulating x86 Is Still Faster Than Every... by my123 on Monday November 16, 2020 @05:40AM (#25110221)
On Arm 64-bit Darwin, W^X is enforced at all times.