diff options
author | notaz | 2016-09-21 01:06:32 +0300 |
---|---|---|
committer | notaz | 2016-09-21 01:06:32 +0300 |
commit | 186935dccdeb09590c0858b7510c769f5ccb06de (patch) | |
tree | 66d886bbd925468aa4d51b12649286f831eeec51 /libpcsxcore/new_dynarec | |
parent | d148d26560527efdd71685df8eac0497827ca766 (diff) | |
download | pcsx_rearmed-186935dccdeb09590c0858b7510c769f5ccb06de.tar.gz pcsx_rearmed-186935dccdeb09590c0858b7510c769f5ccb06de.tar.bz2 pcsx_rearmed-186935dccdeb09590c0858b7510c769f5ccb06de.zip |
drc: avoid MAP_FIXED
it's almost never a good idea, it will override some other mapping
and make things crash
Diffstat (limited to 'libpcsxcore/new_dynarec')
-rw-r--r-- | libpcsxcore/new_dynarec/new_dynarec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index ec2a6fa..b0bfb23 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -7027,8 +7027,8 @@ void new_dynarec_init() #if BASE_ADDR_FIXED if (mmap (out, 1<<TARGET_SIZE_2, PROT_READ | PROT_WRITE | PROT_EXEC, - MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, - -1, 0) <= 0) { + MAP_PRIVATE | MAP_ANONYMOUS, + -1, 0) != out) { SysPrintf("mmap() failed: %s\n", strerror(errno)); } #elif !defined(NO_WRITE_EXEC) |