From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZVxa-0004gi-Kk for qemu-devel@nongnu.org; Thu, 05 Apr 2007 13:41:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZVxY-0004aZ-QH for qemu-devel@nongnu.org; Thu, 05 Apr 2007 13:41:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZVxY-0004aI-NS for qemu-devel@nongnu.org; Thu, 05 Apr 2007 13:41:20 -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 1HZVu9-0002cj-QY for qemu-devel@nongnu.org; Thu, 05 Apr 2007 13:37:50 -0400 Received: by nz-out-0506.google.com with SMTP id i11so808538nzi for ; Thu, 05 Apr 2007 10:37:48 -0700 (PDT) Message-ID: Date: Thu, 5 Apr 2007 12:37:48 -0500 From: "Atif Hashmi" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_49972_22970618.1175794668285" References: Subject: [Qemu-devel] Re: 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_49972_22970618.1175794668285 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, Adding another note to my previous email. Is this even possible to do what I am mentioned in my last email? (See Below) Regards, Atif On 4/3/07, Atif Hashmi wrote: > > 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_49972_22970618.1175794668285 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,

Adding another note to my previous email. Is this even possible to do what I am mentioned in my last email? (See Below)

Regards,
Atif

On 4/3/07, Atif Hashmi <atifhashmi@gmail.com> wrote:
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_49972_22970618.1175794668285--