This commit is contained in:
twinaphex 2016-09-30 20:58:04 +02:00
parent 81cc84abb9
commit d77f38ebad
2 changed files with 2 additions and 2 deletions

View File

@ -7121,7 +7121,7 @@ void new_dynarec_init(void)
#else
#ifndef NO_WRITE_EXEC
// not all systems allow execute in data segment by default
if (mprotect(out, 1<<TARGET_SIZE_2, PROT_READ | PROT_WRITE | PROT_EXEC) != 0)
if (mprotect((void*)BASE_ADDR, 1<<TARGET_SIZE_2, PROT_READ | PROT_WRITE | PROT_EXEC) != 0)
SysPrintf("mprotect() failed: %s\n", strerror(errno));
#endif
#endif

View File

@ -4,7 +4,7 @@
#define USE_MINI_HT 1
//#define REG_PREFETCH 1
#if defined(__MACH__) || defined(VITA) || defined(ANDROID)
#if defined(__MACH__) || defined(VITA)
#define NO_WRITE_EXEC 1
#endif
#ifdef VITA