aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2016-09-20 20:16:05 +0300
committernotaz2016-09-20 20:16:05 +0300
commit64fbd7b2310c8a15c8e2303f8eafb945ee03580a (patch)
treecacb2410152a2e3fe8ad3ea2f7d4b75f61e2395c /libpcsxcore
parent4f48d9b4fc357b7809e378721b8f9281c03920cc (diff)
downloadpcsx_rearmed-64fbd7b2310c8a15c8e2303f8eafb945ee03580a.tar.gz
pcsx_rearmed-64fbd7b2310c8a15c8e2303f8eafb945ee03580a.tar.bz2
pcsx_rearmed-64fbd7b2310c8a15c8e2303f8eafb945ee03580a.zip
Revert "(VITA) Another dynarec fix"
This reverts commit d9e6b42f224f10d8b6f2454da1f5d80735f8e0d6. See github issue #74 for details.
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/new_dynarec/new_dynarec.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c
index 56c8a0b..1c0ab56 100644
--- a/libpcsxcore/new_dynarec/new_dynarec.c
+++ b/libpcsxcore/new_dynarec/new_dynarec.c
@@ -7980,18 +7980,17 @@ void new_dynarec_clear_full()
void new_dynarec_init()
{
SysPrintf("Init new dynarec\n");
-
+ out=(u_char *)BASE_ADDR;
#if defined(VITA)
- BASE_ADDR=mmap(BASE_ADDR, 1<<TARGET_SIZE_2,
+
+ if (mmap (out, 1<<TARGET_SIZE_2,
0,
0,
- -1, 0);
- if (out<=0) {
+ -1, 0) <= 0) {
SysPrintf("mmap() failed: %s\n", strerror(errno));
}
- out=(u_char *)BASE_ADDR;
+
#else
- out=(u_char *)BASE_ADDR;
#if BASE_ADDR_FIXED
if (mmap (out, 1<<TARGET_SIZE_2,
PROT_READ | PROT_WRITE | PROT_EXEC,
@@ -8069,7 +8068,7 @@ void new_dynarec_init()
void new_dynarec_cleanup()
{
int n;
- #if BASE_ADDR_FIXED || defined(VITA)
+ #if BASE_ADDR_FIXED
if (munmap ((void *)BASE_ADDR, 1<<TARGET_SIZE_2) < 0) {SysPrintf("munmap() failed\n");}
#endif
for(n=0;n<4096;n++) ll_clear(jump_in+n);