Commit 29c8ca6f2ec188fddb83462680386aa160a7cd9f

Authored by blueswir1
1 parent 2ada0ed7

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>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6755 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-ppc/helper.c
... ... @@ -226,7 +226,7 @@ static always_inline int _pte_check (mmu_ctx_t *ctx, int is_64b,
226 226 ptem = pte0 & PTE64_PTEM_MASK;
227 227 mmask = PTE64_CHECK_MASK;
228 228 pp = (pte1 & 0x00000003) | ((pte1 >> 61) & 0x00000004);
229   - ctx->nx |= (pte1 >> 2) & 1; /* No execute bit */
  229 + ctx->nx = (pte1 >> 2) & 1; /* No execute bit */
230 230 ctx->nx |= (pte1 >> 3) & 1; /* Guarded bit */
231 231 } else
232 232 #endif
... ...