News for hackers. Stuff that matters.
Re:Apple Silicon implements tricky x86 behaviors in hardware... by jsheard on Thursday July 30, 2020 @10:26AM (#23998545)
Re:Apple Silicon implements tricky x86 behaviors in hardware... by vardump on Thursday July 30, 2020 @12:10PM (#23999810)
Shouldn't ARMv8 LDAR (Load Acquire) and STL (Store Release) instructions be enough to emulate x86 memory model? What did I miss?

Or would that entail more overhead compared to just having TSO memory model?

Re:Apple Silicon implements tricky x86 behaviors in hardware... by saagarjha on Thursday July 30, 2020 @12:16PM (#23999886)
Too slow, probably. Either they'd need to do advanced dataflow analysis to not have them everywhere (slow/complicated) or just insert them everywhere (slow).
Re:Apple Silicon implements tricky x86 behaviors in hardware... by vardump on Saturday August 01, 2020 @02:01PM (#24022550)
I don't see how any kind of dataflow analysis could capture for example accessing thread stack from another thread. Just too many ways to get the pointer.
Re:Apple Silicon implements tricky x86 behaviors in hardware... by mcraiha on Thursday July 30, 2020 @12:23PM (#23999966)
And with Apple it doesn't even have to be additional CPU instructions since Apple controls whole SoC. If your upcoming code uses any Apple specific stuff (e.g. DSP, security chip, NN) with Apple only API then it basically becomes "very hard" to port. So goodbye for Hackintosh.
Re:Apple Silicon implements tricky x86 behaviors in hardware... by acoye on Thursday July 30, 2020 @11:15AM (#23999129)
I knew it, “apple silicon” branding allows them to de-normalize ARM at will.
Re:Apple Silicon implements tricky x86 behaviors in hardware... by rrss on Thursday July 30, 2020 @11:39AM (#23999416)
How so?

TSO is a valid implementation of the ARM memory consistency model.

Re:Apple Silicon implements tricky x86 behaviors in hardware... by kilo_bravo_3 on Thursday July 30, 2020 @12:03PM (#23999706)
Which licensee uses ARM branding?

You can use examples from any product in any market segment.

The Acorn RISC PC doesn’t count because they don’t make that anymore. It has to be a product on the market today.

I thought the entire point of ARM is that you license the ISA, add in your own special sauce to make your own thing and then sell it as your own thing.

There are ARM architecture systems in the machine room at work. They’re ThunderX2 not “ARM”.

Re:Apple Silicon implements tricky x86 behaviors in hardware... by nojito on Thursday July 30, 2020 @11:35AM (#23999377)
The "only" ARM aspect of Apple Silicon is the instruction set.

Nothing to do with "de-normalizing".