|
|
|
|
|
by pranith
3326 days ago
|
|
> Properly coded applications will be using some form of sync primitives to shared data structures. So, when the emulator hits a LOCK xxx instruction This is not always true. See [1] for an example. Because of the semantics of the x86 memory model a sequentially consistent load does not generate a lock'd instruction. When such loads are translated to ARM64, you need to introduce barriers or use a ldacq instruction. [1] https://www.cl.cam.ac.uk/~pes20/cpp/cpp0xmappings.html |
|