Skip to content

Commit b0c8040

Browse files
committed
Merge branch 'master' into libretro
2 parents c3f78cc + 86a5ff1 commit b0c8040

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

libpcsxcore/new_dynarec/emu_if.c

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#include "../../frontend/libretro-rthreads.h"
2525
#include "features/features_cpu.h"
2626
#include "retro_timers.h"
27+
#ifdef VITA
28+
#include <psp2/kernel/sysmem.h>
29+
#endif
2730
#endif
2831
#ifdef _3DS
2932
#include <3ds_utils.h>
@@ -446,6 +449,10 @@ static void ari64_compile_thread(void *unused)
446449
void *target;
447450
u32 addr;
448451

452+
#ifdef VITA
453+
int ret = sceKernelOpenVMDomain();
454+
if (ret) SysPrintf("thread: sceKernelOpenVMDomain: %x\n", ret);
455+
#endif
449456
slock_lock(ndrc_g.thread.lock);
450457
while (!ndrc_g.thread.exit)
451458
{

libpcsxcore/new_dynarec/new_dynarec.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -6334,9 +6334,11 @@ void new_dynarec_init(void)
63346334
if (sceBlock <= 0)
63356335
SysPrintf("getVMBlock failed: %x\n", sceBlock);
63366336
int ret = sceKernelGetMemBlockBase(sceBlock, (void **)&ndrc);
6337-
if (ret < 0)
6338-
SysPrintf("sceKernelGetMemBlockBase failed: %x\n", ret);
6339-
sceKernelOpenVMDomain();
6337+
if (ret)
6338+
SysPrintf("sceKernelGetMemBlockBase: %x\n", ret);
6339+
ret = sceKernelOpenVMDomain();
6340+
if (ret)
6341+
SysPrintf("sceKernelOpenVMDomain: %x\n", ret);
63406342
#elif defined(_MSC_VER)
63416343
ndrc = VirtualAlloc(NULL, sizeof(*ndrc), MEM_COMMIT | MEM_RESERVE,
63426344
PAGE_EXECUTE_READWRITE);

0 commit comments

Comments
 (0)