Re: [Qemu-devel] Binary translation (of code)

2011-05-10 Thread Tarmo Pikaro
Message: 3 Date: Sun, 08 May 2011 21:41:15 +0200 From: Llu?s xscr...@gmx.net To: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Binary translation (of code) Message-ID: 87ei49ugis@ginnungagap.bsc.es Content-Type: text/plain; charset=utf-8 Tarmo Pikaro writes: Hi ! I think self-modifying

Re: [Qemu-devel] Binary translation (of code)

2011-05-10 Thread Richard Henderson
On 05/10/2011 11:13 AM, Tarmo Pikaro wrote: It would be much easier to ship an executable containing both the guest application and qemu, so that executing it starts qemu with a pre-defined configuration and runs the guest binary. - Binary recompilation would allow faster execution than

Re: [Qemu-devel] Binary translation (of code)

2011-05-10 Thread Lluís
Tarmo Pikaro writes: It would be much easier to ship an executable containing both the guest application and qemu, so that executing it starts qemu with a pre-defined configuration and runs the guest binary. - Binary recompilation would allow faster execution than emulated code QEMU does

Re: [Qemu-devel] Binary translation (of code)

2011-05-08 Thread Mulyadi Santosa
Hi... On Sat, May 7, 2011 at 18:26, Tarmo Pikaro tap...@yahoo.com wrote: Hi ! I've analyzed quite a lot of emulators source code, including qemu as well. But I somehow would like to completely get rid of emulators, and simply convert application from one cpu/board to another cpu/board.

Re: [Qemu-devel] Binary translation (of code)

2011-05-08 Thread Blue Swirl
On Sat, May 7, 2011 at 2:26 PM, Tarmo Pikaro tap...@yahoo.com wrote: Hi ! I've analyzed quite a lot of emulators source code, including qemu as well. But I somehow would like to completely get rid of emulators, and simply convert application from one cpu/board to another cpu/board. On

[Qemu-devel] Binary translation (of code)

2011-05-08 Thread Tarmo Pikaro
In general, this is not possible. Consider for example self-modifying or otherwise dynamically created code, or just code that examines itself. In some specific trivial cases it could work, and QEMU could be made to abort if translation would be needed. I think self-modifying code is kinda

Re: [Qemu-devel] Binary translation (of code)

2011-05-08 Thread Blue Swirl
On Sun, May 8, 2011 at 4:05 PM, Tarmo Pikaro tap...@yahoo.com wrote: In general, this is not possible. Consider for example self-modifying or otherwise dynamically created code, or just code that examines itself. In some specific trivial cases it could work, and QEMU could be made to abort

Re: [Qemu-devel] Binary translation (of code)

2011-05-08 Thread Stefan Hajnoczi
On Sun, May 8, 2011 at 2:46 PM, Blue Swirl blauwir...@gmail.com wrote: On Sun, May 8, 2011 at 4:05 PM, Tarmo Pikaro tap...@yahoo.com wrote: In general, this is not possible. Consider for example self-modifying or otherwise dynamically created code, or just code that examines itself. In some

Re: [Qemu-devel] Binary translation (of code)

2011-05-08 Thread Tarmo Pikaro
Hi ! I think self-modifying code is kinda rare case - it's made typically for protection againt hackers , and typically on pc side. Nintendo roms probably don't use this kind of protection. It doesn't have to be protection, for example GCC generates trampolines to stack when using

Re: [Qemu-devel] Binary translation (of code)

2011-05-08 Thread Lluís
Tarmo Pikaro writes: Hi ! I think self-modifying code is kinda rare case - it's made typically for protection againt hackers , and typically on pc side. Nintendo roms probably don't use this kind of protection. It doesn't have to be protection, for example GCC generates

[Qemu-devel] Binary translation (of code)

2011-05-07 Thread Tarmo Pikaro
Hi ! I've analyzed quite a lot of emulators source code, including qemu as well. But I somehow would like to completely get rid of emulators, and simply convert application from one cpu/board to another cpu/board. On wiki pages this is called binary translation. - Do you know some open source