Re:Russian team develops x86 emulator on ARM
by pm215 on Wednesday October 03, 2012 @10:32AM
(#4607553)
I don't think decode is really the hard part; if you're JITting at all it's pretty easy. The difficulties arise where the semantics of the target and the host don't match up. For instance, emulating a strong-memory-model architecture like x86 on a weak-memory-model architecture like ARM requires a pile of explicit memory barriers if you're going to handle multi-threaded binaries. Emulating atomic memory accesses might also be tricky. Differences in floating point semantics (like x86's 80-bit format or just different choices of IEEE implementation specifics) are also painful: QEMU takes the slow-but-safe option of doing all the floating point emulation in software (ie using integer arithmetic) to ensure bit-for-bit accuracy. None of these pain points is really related to the instruction decoding.
[ Parent
| on HN ]
Re:Russian team develops x86 emulator on ARM
by koenigdavidmj on Wednesday October 03, 2012 @12:03PM
(#4608085)
According to Herb Sutter at [1], ARMv8 will support a couple new ops to support sequentially consistent memory access.
1: http://herbsutter.com/2012/08/02/strong-and-weak-hardware-me...