Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfbvT-0006ya-OP for qemu-devel@nongnu.org; Sun, 22 Apr 2007 09:16:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HfbvQ-0006yJ-7x for qemu-devel@nongnu.org; Sun, 22 Apr 2007 09:16:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfbvQ-0006yG-36 for qemu-devel@nongnu.org; Sun, 22 Apr 2007 09:16:20 -0400 Received: from wr-out-0506.google.com ([64.233.184.232]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hfbq5-00052O-TJ for qemu-devel@nongnu.org; Sun, 22 Apr 2007 09:10:51 -0400 Received: by wr-out-0506.google.com with SMTP id i20so2368870wra for ; Sun, 22 Apr 2007 06:09:32 -0700 (PDT) Message-ID: <83a4d4ca0704220609m33ebfda7m825dab6d0992be28@mail.gmail.com> Date: Sun, 22 Apr 2007 15:09:28 +0200 From: "Eduardo Felipe" Subject: Re: [Qemu-devel] Re: Detecting an assembly instruction in QEMU In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10569_12800697.1177247368279" References: <83a4d4ca0704060515l172d6f9ep59b6467c6e49f250@mail.gmail.com> <83a4d4ca0704080713t596e4d83lbd1c495d92eda581@mail.gmail.com> <83a4d4ca0704081514v584660e4h8a36e5d1aee16d82@mail.gmail.com> <83a4d4ca0704170249l83c5d7bqe0b0f8cc8b5a4a58@mail.gmail.com> 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_10569_12800697.1177247368279 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Atif, Your code seems quite ok to me. Just try including stored_eip inside the DisasContext, otherwise you'll lose its value between calls to disas_insn function. Also make sure that the instructions you are using as markers are not executed elsewhere, as your compiler could generate them inside regular code or they could already exist in your OS. Regards, Eduardo ------=_Part_10569_12800697.1177247368279 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Atif,

Your code seems quite ok to me. Just try including stored_eip inside the DisasContext, otherwise you'll lose its value between calls to disas_insn function.

Also make sure that the instructions you are using as markers are not executed elsewhere, as your compiler could generate them inside regular code or they could already exist in your OS.

Regards,
Eduardo

------=_Part_10569_12800697.1177247368279--