Hacker News new | ask | show | jobs
by toron123 2203 days ago
I read somewhere that emulation of x86 on arm is much wrose compared to emulation of arm on x86. Can someone confirm this?
2 comments

I don't know the answer to that, but keep in mind that Apple is control of the entire CPU design. They could for example put an x86 decoder in front of the ARM cores.

After all, modern Intel processors decode x86 to a simpler instruction set used internally anyway.

Doing something like this would be the smart move. If the do this they’re going to need to give developers lead time to get their software up to date.
x86 has total store ordering, which requires to add barriers to make the order respected on Arm while doing emulation. On newer Arm chips, barriers are much cheaper, solving the problem.
Not only that, but Apple if they wanted to could strengthen the memory model of their custom chips, meaning the barriers wouldn't be necessary during emulation.