all repos — mgba @ 9c7548855e888bf2295c8919dbaa1cd1694af68f

mGBA Game Boy Advance Emulator

Vita: Port mgba-perf
Vicki Pfau vi@endrift.com
Tue, 18 Aug 2020 18:56:02 -0700
commit

9c7548855e888bf2295c8919dbaa1cd1694af68f

parent

34b905527192d2ec76e83bcead09022add3d1de2

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M src/platform/test/perf-main.csrc/platform/test/perf-main.c

@@ -31,6 +31,10 @@ uint32_t* romBuffer;

size_t romBufferSize; #endif #endif +#ifdef PSP2 +#include <psp2/kernel/processmgr.h> +#include <psp2/power.h> +#endif #include <errno.h> #include <fcntl.h>

@@ -108,6 +112,8 @@ romBufferSize = 0x02000000;

romBuffer = SYS_GetArena2Lo(); SYS_SetArena2Lo((void*)((intptr_t) romBuffer + romBufferSize)); #endif +#elif defined(PSP2) + scePowerSetArmClockFrequency(444); #else signal(SIGINT, _mPerfShutdown); #endif

@@ -177,6 +183,8 @@ VIDEO_SetBlack(true);

VIDEO_Flush(); VIDEO_WaitVSync(); VIDEO_WaitVSync(); +#elif defined(PSP2) + sceKernelExitProcess(0); #endif return didFail;