From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ3g9-0003a6-2t for qemu-devel@nongnu.org; Sun, 08 May 2011 09:05:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ3g8-0003UT-5V for qemu-devel@nongnu.org; Sun, 08 May 2011 09:05:45 -0400 Received: from nm29-vm0.bullet.mail.sp2.yahoo.com ([98.139.91.236]:31417) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QJ3g7-0003UG-Pp for qemu-devel@nongnu.org; Sun, 08 May 2011 09:05:44 -0400 Message-ID: <413381.49201.qm@web38404.mail.mud.yahoo.com> References: <19735.38079.qm@web38403.mail.mud.yahoo.com> Date: Sun, 8 May 2011 06:05:41 -0700 (PDT) From: Tarmo Pikaro In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Binary translation (of code) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org =0A> In general, this is not possible. Consider for example self-modifying= =0A> or otherwise dynamically created code, or just code that examines=0A> = itself.=0A=0A> In some specific trivial cases it could work, and QEMU could= be made=0A> to abort if translation would be needed.=0A=0AI think self-mod= ifying=A0code is kinda rare case - it's made typically for=0Aprotection aga= int=A0hackers , and=A0typically on pc side. Nintendo=A0roms probably =0Adon= 't use this kind of=0Aprotection.=0A=0AAnyway - I think even to self-modify= ing code could be some tricks like =0Adynamically generated code.=0A=0AI wo= uld be probably intrest to re-compile only modules, like .dll - but this = =0Awould =0A=0Arequire to analyze=A0when and how .dll being loaded. This is= kinda self-modifying =0Acode as well ? (OS loads .DLL)=0A=0A=A0--=0AHave a= nice day!=0ATarmo.