notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d148d26
)
drc: avoid MAP_FIXED
author
notaz
<notasas@gmail.com>
Tue, 20 Sep 2016 22:06:32 +0000
(
01:06
+0300)
committer
notaz
<notasas@gmail.com>
Tue, 20 Sep 2016 22:06:32 +0000
(
01:06
+0300)
it's almost never a good idea, it will override some other mapping
and make things crash
libpcsxcore/new_dynarec/new_dynarec.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/new_dynarec/new_dynarec.c
b/libpcsxcore/new_dynarec/new_dynarec.c
index
ec2a6fa
..
b0bfb23
100644
(file)
--- 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)