Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lg3Zv-0006Yo-Tw for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:57:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lg3Zv-0006YO-7Q for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:57:03 -0500 Received: from [199.232.76.173] (port=35912 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lg3Zv-0006YL-2T for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:57:03 -0500 Received: from savannah.gnu.org ([199.232.41.3]:37234 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 1Lg3Zu-00083h-NP for qemu-devel@nongnu.org; Sat, 07 Mar 2009 15:57:02 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lg3Zu-0003TP-6H for qemu-devel@nongnu.org; Sat, 07 Mar 2009 20:57:02 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lg3Zt-0003TL-Uw for qemu-devel@nongnu.org; Sat, 07 Mar 2009 20:57:02 +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: Sat, 07 Mar 2009 20:57:01 +0000 Subject: [Qemu-devel] [6755] Fix NX bit 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: 6755 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6755 Author: blueswir1 Date: 2009-03-07 20:57:01 +0000 (Sat, 07 Mar 2009) Log Message: ----------- Fix NX bit ctx->nx only got ORed, but never reset. So when one page in the lifetime of the VM was ever NX, all later pages were too. Signed-off-by: Alexander Graf Modified Paths: -------------- trunk/target-ppc/helper.c Modified: trunk/target-ppc/helper.c =================================================================== --- trunk/target-ppc/helper.c 2009-03-07 20:56:21 UTC (rev 6754) +++ trunk/target-ppc/helper.c 2009-03-07 20:57:01 UTC (rev 6755) @@ -226,7 +226,7 @@ ptem = pte0 & PTE64_PTEM_MASK; mmask = PTE64_CHECK_MASK; pp = (pte1 & 0x00000003) | ((pte1 >> 61) & 0x00000004); - ctx->nx |= (pte1 >> 2) & 1; /* No execute bit */ + ctx->nx = (pte1 >> 2) & 1; /* No execute bit */ ctx->nx |= (pte1 >> 3) & 1; /* Guarded bit */ } else #endif