Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C57qZ-0000v4-5U for qemu-devel@nongnu.org; Wed, 08 Sep 2004 15:11:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C57qX-0000uP-F4 for qemu-devel@nongnu.org; Wed, 08 Sep 2004 15:11:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C57qX-0000u8-Az for qemu-devel@nongnu.org; Wed, 08 Sep 2004 15:11:09 -0400 Received: from [64.4.35.21] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C57kF-0003pZ-AO for qemu-devel@nongnu.org; Wed, 08 Sep 2004 15:04:39 -0400 From: "Blue Swirl" Date: Wed, 08 Sep 2004 21:00:57 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: Subject: [Qemu-devel] Sparc Search PC support problem, help! 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 Hi, Search PC function must be implemented to finish exception support. There could be a major problem with the whole idea in Sparc environment: PC and NPC (next PC) can point to far away instructions, and NPC may be discovered only on execution phase. For example (note delayed execution after return): IN: 0xffd05254: retl 0xffd05258: lda [ %o0 ] (32), %o0 Faulting instruction is at 0xffd05258, so PC is the same at the exception, but NPC is already pointing back to code at calling function (0xffd090a0 from %o7 in this case). Current Search PC can find PC, but not NPC. I'm not sure how to proceed. One path is to execute single instructions instead of basic blocks in Search PC mode. Any ideas? Fabrice? _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus