From 3037393600cc5e63aafe487186025650a6a4d119 Mon Sep 17 00:00:00 2001 From: Francisco José García García Date: Tue, 27 Sep 2016 00:59:08 +0200 Subject: (VITA) Enable O3 optimizations --- Makefile | 2 +- Makefile.libretro | 3 ++- 2 files changed, 3 insertions(+), 2 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..a0f0c07 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -1,6 +1,6 @@ # Makefile for PCSX ReARMed (libretro) -DEBUG=0 +DEBUG=1 ifeq ($(platform),) platform = unix @@ -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 -- cgit v1.2.3 From 848b806c5597cd13b250812f32c4848f74599ab0 Mon Sep 17 00:00:00 2001 From: Francisco José García García Date: Tue, 27 Sep 2016 00:59:38 +0200 Subject: (Vita) Fix deinit bug --- frontend/libretro.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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); -- cgit v1.2.3 From 2f73c14c11377887630c696cefd035a21e976e09 Mon Sep 17 00:00:00 2001 From: Francisco José García García Date: Tue, 27 Sep 2016 01:02:00 +0200 Subject: (Vita) Disable debug --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index a0f0c07..a7fa0eb 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -1,6 +1,6 @@ # Makefile for PCSX ReARMed (libretro) -DEBUG=1 +DEBUG=0 ifeq ($(platform),) platform = unix -- cgit v1.2.3