Re:Russian team develops x86 emulator on ARM
by pm215 on Wednesday October 03, 2012 @01:30PM
(#4608565)
I would be mildly shocked if it was, because (a) the relevant bits of QEMU are under GPL or LGPL, and it doesn't seem very likely that you could get $1.3m investment for a product you'd have to GPL, and (b) if you're interested purely in userspace application translation (and especially if you are happy to restrict to a single guest and single host architecture) then you can almost certainly come up with a better-suited design for that than QEMU (which is rather generalised and focused more on system emulation than userspace).
Re:Russian team develops x86 emulator on ARM
by pm215 on Wednesday October 03, 2012 @07:08AM
(#4606806)
It does, assuming your ARM host is at least ARMv6 or v7 (v5 doesn't deal with unaligned accesses and QEMU userspace mode doesn't do anything special with guest binary unaligned accesses, so they appear as host unaligned accesses).
QEMU's i386 userspace mode emulation is a bigger problem -- most notably it doesn't handle multithreaded guest binaries (to an even bigger extent than QEMU's general issues with multithreaded guest binaries).
None of these are insurmountable problems; it's just that nobody so far has cared enough about them to put in the time to develop fixes and get them through code review on the mailing list. Patches welcome :-)
Re:Russian team develops x86 emulator on ARM
by primitur on Wednesday October 03, 2012 @08:41AM
(#4607063)
QEMU is regularly being used in the Emulator scene as a host for x86 binaries, mostly DOS stuff, though. Its a decent enough 8086 emulator, 386'ish too ..
Re:Russian team develops x86 emulator on ARM
by mariuz on Wednesday October 03, 2012 @06:01PM
(#4609848)
Yes they are the same
They have already implemented a software dynamic binary translation virtual machine, similar to Transmeta Crusoe
With real hardware booting window/linux
Re:Russian team develops x86 emulator on ARM
by simias on Wednesday October 03, 2012 @08:11AM
(#4606953)
So this is a purely software solution? I wonder if we could see ARM SoCs with some hardware for decoding x86 instructions and have them executed by the ARM core.
After all since ARM7 most ARM cores support both ARM and THUMB instruction sets.
I'm not sure you could do that without permission from Intel though.
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.
Re:Russian team develops x86 emulator on ARM
by simias on Wednesday October 03, 2012 @09:06AM
(#4607170)
I was not thinking about full blown x86 support, but partial support where it matters. A bit like the Jazelle Java bytecode support, it wouldn't really run x86 code in native but would support extensions that would make it easier and faster. I'm not familiar enough with the x86 instruction set to guess where this would really improve performances though.
Re:Russian team develops x86 emulator on ARM
by lucian1900 on Wednesday October 03, 2012 @09:45AM
(#4607333)
Even Jazelle is being dumped, since it was too complex in hardware. And x86 is much more complicated than JVM bytecode.
Modern "Jazelle" is basically just Thumb (I think it's even called Thumb EE), and it requires software to translate to it (JIT to Thumb instead of to ARM).
Re:Russian team develops x86 emulator on ARM
by rthomas6 on Wednesday October 03, 2012 @08:55AM
(#4607129)
According to Wikipedia, the instruction set is open, but for "some advanced features," they may need a license from Intel. I'm not sure what advanced features that would be.
Re:Russian team develops x86 emulator on ARM
by vetinari on Wednesday October 03, 2012 @10:29AM
(#4607535)
That's because AMD cores were not independently developed from scratch.
Cyrix core, on the other hand, was. They never oficially licensed x86 and the problems between Intel and Cyrix ended as out of court settlement to save Intel's face.
Re:Russian team develops x86 emulator on ARM
by rlpb on Wednesday October 03, 2012 @08:13AM
(#4606963)
Anything with a JIT compiler? For example, the status of Java on ARM is getting better, but still rumoured to not be as fast as on x86.
And anything that is not open source? Proprietary software is still used heavily on servers running an open source stack. Having a performant emulation or translation option could help with odd pieces that vendors haven't recompiled. Although support would be an issue for this at enterprise level.
Re:Russian team develops x86 emulator on ARM
by justincormack on Wednesday October 03, 2012 @10:21AM
(#4607506)
Dalvik is not a JVM implememtation. But there is JVM for ARM. It is slow and much less optimised. Most enterprise java stuff is going to need more memory than you get on ARM.
QEMU's i386 userspace mode emulation is a bigger problem -- most notably it doesn't handle multithreaded guest binaries (to an even bigger extent than QEMU's general issues with multithreaded guest binaries).
None of these are insurmountable problems; it's just that nobody so far has cared enough about them to put in the time to develop fixes and get them through code review on the mailing list. Patches welcome :-)
They have already implemented a software dynamic binary translation virtual machine, similar to Transmeta Crusoe With real hardware booting window/linux
http://en.wikipedia.org/wiki/Elbrus_2000
I guess is that binary translation virtual machine could be tweaked for ARM instruction set
After all since ARM7 most ARM cores support both ARM and THUMB instruction sets.
I'm not sure you could do that without permission from Intel though.
1: http://herbsutter.com/2012/08/02/strong-and-weak-hardware-me...
It's easier to translate in software.
Modern "Jazelle" is basically just Thumb (I think it's even called Thumb EE), and it requires software to translate to it (JIT to Thumb instead of to ARM).
Then how does AMD do it?
Cyrix core, on the other hand, was. They never oficially licensed x86 and the problems between Intel and Cyrix ended as out of court settlement to save Intel's face.
And anything that is not open source? Proprietary software is still used heavily on servers running an open source stack. Having a performant emulation or translation option could help with odd pieces that vendors haven't recompiled. Although support would be an issue for this at enterprise level.
If performance is the worry I highly doubt running through an x86 emulator is going to be faster.
Intel would eat that idea for breakfast.
There are real JVMs on ARM, plus Jazelle Java acceleration.