From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWE3c-0002ml-BP for qemu-devel@nongnu.org; Thu, 21 Aug 2008 13:34:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWE3b-0002mJ-TN for qemu-devel@nongnu.org; Thu, 21 Aug 2008 13:34:47 -0400 Received: from [199.232.76.173] (port=41217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWE3b-0002mD-FJ for qemu-devel@nongnu.org; Thu, 21 Aug 2008 13:34:47 -0400 Received: from savannah.gnu.org ([199.232.41.3]:50658 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 1KWE3a-0007MU-PZ for qemu-devel@nongnu.org; Thu, 21 Aug 2008 13:34:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KWE3X-0004xd-Iw for qemu-devel@nongnu.org; Thu, 21 Aug 2008 17:34:43 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KWE3X-0004xY-9G for qemu-devel@nongnu.org; Thu, 21 Aug 2008 17:34:43 +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: Thu, 21 Aug 2008 17:34:43 +0000 Subject: [Qemu-devel] [5043] Fix wrwim masking (Luis Pureza) 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: 5043 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5043 Author: blueswir1 Date: 2008-08-21 17:34:42 +0000 (Thu, 21 Aug 2008) Log Message: ----------- Fix wrwim masking (Luis Pureza) Modified Paths: -------------- trunk/target-sparc/translate.c Modified: trunk/target-sparc/translate.c =================================================================== --- trunk/target-sparc/translate.c 2008-08-21 17:33:42 UTC (rev 5042) +++ trunk/target-sparc/translate.c 2008-08-21 17:34:42 UTC (rev 5043) @@ -3451,6 +3451,9 @@ } #else tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0); + if (dc->def->nwindows != 32) + tcg_gen_andi_tl(cpu_tmp32, cpu_tmp32, + (1 << dc->def->nwindows) - 1); tcg_gen_st_i32(cpu_tmp32, cpu_env, offsetof(CPUSPARCState, wim)); #endif