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

[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

[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