From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3acM-0002pJ-V6 for qemu-devel@nongnu.org; Tue, 03 Jun 2008 13:48:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3acL-0002nL-1B for qemu-devel@nongnu.org; Tue, 03 Jun 2008 13:48:18 -0400 Received: from [199.232.76.173] (port=40836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3acK-0002mz-Hw for qemu-devel@nongnu.org; Tue, 03 Jun 2008 13:48:16 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:46020) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3acJ-0004As-Pi for qemu-devel@nongnu.org; Tue, 03 Jun 2008 13:48:16 -0400 From: Paul Brook Subject: Re: [Qemu-devel] how to get registers value in event of systemcall Date: Tue, 3 Jun 2008 18:48:03 +0100 References: <483AF801.2020806@slacky.it> <200805271435.30937.paul@codesourcery.com> <48457D4C.1020304@slacky.it> In-Reply-To: <48457D4C.1020304@slacky.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806031848.04194.paul@codesourcery.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 Cc: Antonio Ricci On Tuesday 03 June 2008, Antonio Ricci wrote: > Paul Brook wrote: > > No, that won't work. Only a very limited subset of the CPU state is > > valid during translation. > > I don't understand what you mean. Why can't I get registers value at > translation time? For the reason below. > >The same block may be executed many times with different > > inputs. If you want register values you have to do it at execution > > time, e.g. in do_interrupt. > > Do you mean that If the same block is executed many times with different > inputs it is translated just once? Yes. Paul