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 d

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 t

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 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

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 ge

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

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

2011-05-08 Thread Stefan Hajnoczi
On Sun, May 8, 2011 at 2:46 PM, Blue Swirl wrote: > On Sun, May 8, 2011 at 4:05 PM, Tarmo Pikaro 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 ca

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

2011-05-08 Thread Blue Swirl
On Sun, May 8, 2011 at 4:05 PM, Tarmo Pikaro 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 if tr

[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 k

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

2011-05-08 Thread Blue Swirl
On Sat, May 7, 2011 at 2:26 PM, Tarmo Pikaro 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 wiki pages

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

2011-05-08 Thread Mulyadi Santosa
Hi... On Sat, May 7, 2011 at 18:26, Tarmo Pikaro 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 wiki

[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