From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HctOS-0006xu-J3 for qemu-devel@nongnu.org; Sat, 14 Apr 2007 21:19:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HctOR-0006xa-Ab for qemu-devel@nongnu.org; Sat, 14 Apr 2007 21:19:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HctOR-0006xX-2k for qemu-devel@nongnu.org; Sat, 14 Apr 2007 21:19:03 -0400 Received: from agogare.doit.wisc.edu ([144.92.197.211]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1HctJz-0006tx-0l for qemu-devel@nongnu.org; Sat, 14 Apr 2007 21:14:27 -0400 Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JGI00D01M3T3400@smtpauth2.wiscmail.wisc.edu> for qemu-devel@nongnu.org; Sat, 14 Apr 2007 20:14:17 -0500 (CDT) Received: from [146.151.107.38] (eh-104-107-38.resnet.wisc.edu [146.151.107.38]) by smtpauth2.wiscmail.wisc.edu (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JGI00CCHM3SN200@smtpauth2.wiscmail.wisc.edu> for qemu-devel@nongnu.org; Sat, 14 Apr 2007 20:14:16 -0500 (CDT) Date: Sat, 14 Apr 2007 20:14:16 -0500 From: eady Subject: Re: [Qemu-devel] Determine simulated pc during an exception In-reply-to: <200704150003.38399.paul@codesourcery.com> Message-id: <46217C68.20903@wisc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <46215C29.20604@wisc.edu> <200704150003.38399.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 Thanks Paul for the reply, I don't see how this function is called though by the exception handler. The way I understand it is that an exception is raised via raise_interrupt(exception_index, 0, 0, 0); in helper.c which in turn calls raise_interrupt() that sends the control flow back to the main execution loop via a longjmp and then do_interrupt() is called from there. Where am I not making the connection? Thanks, Nuri Paul Brook wrote: >> Can anyone point me to the place in the code where the simulated program >> counter is determined after an exception? >> > > cpu_restore_state > > Paul > > >