Received: from eggs.gnu.org ([140.186.70.92]:55236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ9qI-0003Or-NL for qemu-devel@nongnu.org; Sun, 08 May 2011 15:40:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ9qE-00047v-K8 for qemu-devel@nongnu.org; Sun, 08 May 2011 15:40:38 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:46554) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QJ9qE-00047O-6f for qemu-devel@nongnu.org; Sun, 08 May 2011 15:40:34 -0400 From: =?utf-8?Q?Llu=C3=ADs?= References: <19735.38079.qm@web38403.mail.mud.yahoo.com> <413381.49201.qm@web38404.mail.mud.yahoo.com> <227989.48678.qm@web38406.mail.mud.yahoo.com> Date: Sun, 08 May 2011 21:41:15 +0200 In-Reply-To: <227989.48678.qm@web38406.mail.mud.yahoo.com> (Tarmo Pikaro's message of "Sun, 8 May 2011 12:02:02 -0700 (PDT)") Message-ID: <87ei49ugis.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Binary translation (of code) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Tarmo Pikaro writes: > Hi ! >> > I think self-modifying=C2=A0code is kinda rare case - it's made typica= lly for >> > protection againt=C2=A0hackers , and=C2=A0typically on pc side. Ninten= do=C2=A0roms probably >> > don't use this kind of >> > protection. >>=20 >> It doesn't have to be protection, for example GCC generates >> trampolines to stack when using nested functions. > Ok, so apparently we will have some challenges on the way. > I guess some sort of mutation - qemu + recompiler could be done as well... 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. Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth