From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYxbl-00060J-VZ for qemu-devel@nongnu.org; Wed, 04 Apr 2007 01:00:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYxbj-0005zl-VA for qemu-devel@nongnu.org; Wed, 04 Apr 2007 01:00:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYxbj-0005zi-NM for qemu-devel@nongnu.org; Wed, 04 Apr 2007 01:00:31 -0400 Received: from nz-out-0506.google.com ([64.233.162.231]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYxYU-0008Li-Os for qemu-devel@nongnu.org; Wed, 04 Apr 2007 00:57:11 -0400 Received: by nz-out-0506.google.com with SMTP id i11so52608nzi for ; Tue, 03 Apr 2007 21:57:02 -0700 (PDT) Message-ID: Date: Tue, 3 Apr 2007 23:57:01 -0500 From: "Atif Hashmi" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22281_33149002.1175662621866" Subject: [Qemu-devel] Detecting an assembly instruction in QEMU Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_22281_33149002.1175662621866 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I am inserting movl %eax, %eax instruction within the assembly code of a program and I am running the code on QEMU which is configured for i386 and is running linux-0.2.img. I want to detect this assembly instruction within the QEMU code in order to perform a specific operation e.g. when ever QEMU finds this instruction a specific function is called. Could anyone please tell me which QEMU files should I modify in order to add this functionality. I looked through almost all the C files but was unable to figure it out. I will really appreciate any help. Thanks, Atif ------=_Part_22281_33149002.1175662621866 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,

I am inserting

movl %eax, %eax

instruction within the assembly code of a program and I am running the code on QEMU which is configured for i386 and is running linux-0.2.img.

I want to detect this assembly instruction within the QEMU code in order to perform a specific operation e.g. when ever QEMU finds this instruction a specific function is called. Could anyone please tell me which QEMU files should I modify in order to add this functionality. I looked through almost all the C files but was unable to figure it out.

I will really appreciate any help.

Thanks,
Atif
------=_Part_22281_33149002.1175662621866--