From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3cOS-0001Fd-VU for qemu-devel@nongnu.org; Tue, 03 Jun 2008 15:42:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3cOR-0001FR-I2 for qemu-devel@nongnu.org; Tue, 03 Jun 2008 15:42:04 -0400 Received: from [199.232.76.173] (port=38192 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3cOR-0001FN-EG for qemu-devel@nongnu.org; Tue, 03 Jun 2008 15:42:03 -0400 Received: from rv-out-0708.google.com ([209.85.198.248]:40733) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3cOR-00067c-Di for qemu-devel@nongnu.org; Tue, 03 Jun 2008 15:42:03 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1350567rvb.22 for ; Tue, 03 Jun 2008 12:42:01 -0700 (PDT) Message-ID: <761ea48b0806031242m116cffc9y8d4e3f2caeef6c3e@mail.gmail.com> Date: Tue, 3 Jun 2008 21:42:01 +0200 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] how to get registers value in event of systemcall In-Reply-To: <48458448.5010908@slacky.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <483AF801.2020806@slacky.it> <200805271435.30937.paul@codesourcery.com> <48458448.5010908@slacky.it> 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 On Tue, Jun 3, 2008 at 7:50 PM, Antonio Ricci wrote: > Hi Paul, > thanks for your answer. > I've tried to have registers value from do interrupt and it seems to > work. I've some questions for you: > 1) Where these values are initialized? I can't find it. If you look in cpu_exec.c/cpu_exec() you will see a call to env_to_regs before the loop that contains the do_interrupt call. Does that answer your question? Laurent