aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTwinaphex2016-09-27 01:43:09 +0200
committerGitHub2016-09-27 01:43:09 +0200
commitd4ee47f3f4d639d551b187e3eef39490fa859758 (patch)
tree075e8656f5d9f6524577a7f00530279adffb67bd
parent1024d6ba608b718ce33d559b7b433e948b4d0e9a (diff)
parent2f73c14c11377887630c696cefd035a21e976e09 (diff)
downloadpcsx_rearmed-d4ee47f3f4d639d551b187e3eef39490fa859758.tar.gz
pcsx_rearmed-d4ee47f3f4d639d551b187e3eef39490fa859758.tar.bz2
pcsx_rearmed-d4ee47f3f4d639d551b187e3eef39490fa859758.zip
Merge pull request #71 from frangarcj/master
Optimizations and quit error
-rw-r--r--Makefile2
-rw-r--r--Makefile.libretro1
-rw-r--r--frontend/libretro.c13
3 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 7360770..600a1d3 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ ifeq ($(DEBUG), 1)
CFLAGS += -O0 -ggdb
else
ifeq ($(platform), vita)
-CFLAGS += -O1 -DNDEBUG
+CFLAGS += -O3 -DNDEBUG
else
CFLAGS += -O2 -DNDEBUG
endif
diff --git a/Makefile.libretro b/Makefile.libretro
index 1aae08e..a7fa0eb 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -120,6 +120,7 @@ else ifeq ($(platform), vita)
CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -marm
CFLAGS += -fsingle-precision-constant -mword-relocations -fno-unwind-tables
CFLAGS += -fno-asynchronous-unwind-tables -ftree-vectorize -funroll-loops
+ CFLAGS += -fno-optimize-sibling-calls
CFLAGS += -I$(VITASDK)/include -Ifrontend/vita
CFLAGS += -DNO_SOCKET -DNO_OS -DNO_DYLIB
ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 2efccfa..81afc30 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -281,15 +281,16 @@ psx_map_t custom_psx_maps[] = {
int init_vita_mmap(){
int n;
+ void * tmpaddr;
addr = malloc(64*1024*1024);
if(addr==NULL)
return -1;
- addr = ((u32)(addr+0xFFFFFF))&~0xFFFFFF;
- custom_psx_maps[0].buffer=addr+0x2000000;
- custom_psx_maps[1].buffer=addr+0x1800000;
- custom_psx_maps[2].buffer=addr+0x1c00000;
- custom_psx_maps[3].buffer=addr+0x0000000;
- custom_psx_maps[4].buffer=addr+0x1000000;
+ tmpaddr = ((u32)(addr+0xFFFFFF))&~0xFFFFFF;
+ custom_psx_maps[0].buffer=tmpaddr+0x2000000;
+ custom_psx_maps[1].buffer=tmpaddr+0x1800000;
+ custom_psx_maps[2].buffer=tmpaddr+0x1c00000;
+ custom_psx_maps[3].buffer=tmpaddr+0x0000000;
+ custom_psx_maps[4].buffer=tmpaddr+0x1000000;
#if 0
for(n = 0; n < 5; n++){
sceClibPrintf("addr reserved %x\n",custom_psx_maps[n].buffer);