qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6755] Fix NX bit
@ 2009-03-07 20:57 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-03-07 20:57 UTC (permalink / raw)
  To: qemu-devel

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 <alex@csgraf.de>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-07 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 20:57 [Qemu-devel] [6755] Fix NX bit Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).