From: Frode Solheim Date: Fri, 18 Sep 2015 16:21:33 +0000 (+0200) Subject: JIT: Fix toggling JIT on/off on the fly X-Git-Tag: 3200~65^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=b3e6cb7db0be54e94562920fe6e2da9fb4e9297a;p=francis%2Fwinuae.git JIT: Fix toggling JIT on/off on the fly --- diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index ab002a7e..939d6260 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -3703,10 +3703,10 @@ static inline void create_popalls(void) if ((popallspace = alloc_code(POPALLSPACE_SIZE)) == NULL) { jit_abort("Could not allocate popallspace!"); } - vm_protect(popallspace, POPALLSPACE_SIZE, VM_PAGE_READ | VM_PAGE_WRITE); #ifdef UAE } #endif + vm_protect(popallspace, POPALLSPACE_SIZE, VM_PAGE_READ | VM_PAGE_WRITE); int stack_space = STACK_OFFSET; for (i=0;i