Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxcZI-0006q6-5r for qemu-devel@nongnu.org; Sun, 18 May 2008 02:40:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxcZH-0006oC-41 for qemu-devel@nongnu.org; Sun, 18 May 2008 02:40:27 -0400 Received: from [199.232.76.173] (port=34852 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxcZG-0006o9-UN for qemu-devel@nongnu.org; Sun, 18 May 2008 02:40:26 -0400 Received: from savannah.gnu.org ([199.232.41.3]:54941 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JxcZH-0004WD-3H for qemu-devel@nongnu.org; Sun, 18 May 2008 02:40:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JxcZ8-0006xA-8P for qemu-devel@nongnu.org; Sun, 18 May 2008 06:40:18 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JxcZ7-0006x6-Jn for qemu-devel@nongnu.org; Sun, 18 May 2008 06:40:18 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 18 May 2008 06:40:17 +0000 Subject: [Qemu-devel] [4484] Fix Sparc64 host signal handling 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 Revision: 4484 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4484 Author: blueswir1 Date: 2008-05-18 06:40:16 +0000 (Sun, 18 May 2008) Log Message: ----------- Fix Sparc64 host signal handling Modified Paths: -------------- trunk/cpu-exec.c Modified: trunk/cpu-exec.c =================================================================== --- trunk/cpu-exec.c 2008-05-17 22:20:53 UTC (rev 4483) +++ trunk/cpu-exec.c 2008-05-18 06:40:16 UTC (rev 4484) @@ -1297,14 +1297,19 @@ void *puc) { siginfo_t *info = pinfo; + int is_write; + uint32_t insn; +#if !defined(__sparc_v9__) || defined(HOST_SOLARIS) uint32_t *regs = (uint32_t *)(info + 1); void *sigmask = (regs + 20); - unsigned long pc; - int is_write; - uint32_t insn; + /* XXX: is there a standard glibc define ? */ + unsigned long pc = regs[1]; +#else + struct sigcontext *sc = puc; + unsigned long pc = sc->sigc_regs.tpc; + void *sigmask = (void *)sc->sigc_mask; +#endif - /* XXX: is there a standard glibc define ? */ - pc = regs[1]; /* XXX: need kernel patch to get write flag faster */ is_write = 0; insn = *(uint32_t *)pc;