Skip to content

Commit

Permalink
Merge branch 'master' into libretro
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Dec 18, 2024
2 parents c3f78cc + 86a5ff1 commit b0c8040
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions libpcsxcore/new_dynarec/emu_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include "../../frontend/libretro-rthreads.h"
#include "features/features_cpu.h"
#include "retro_timers.h"
#ifdef VITA
#include <psp2/kernel/sysmem.h>
#endif
#endif
#ifdef _3DS
#include <3ds_utils.h>
Expand Down Expand Up @@ -446,6 +449,10 @@ static void ari64_compile_thread(void *unused)
void *target;
u32 addr;

#ifdef VITA
int ret = sceKernelOpenVMDomain();
if (ret) SysPrintf("thread: sceKernelOpenVMDomain: %x\n", ret);
#endif
slock_lock(ndrc_g.thread.lock);
while (!ndrc_g.thread.exit)
{
Expand Down
8 changes: 5 additions & 3 deletions libpcsxcore/new_dynarec/new_dynarec.c
Original file line number Diff line number Diff line change
Expand Up @@ -6334,9 +6334,11 @@ void new_dynarec_init(void)
if (sceBlock <= 0)
SysPrintf("getVMBlock failed: %x\n", sceBlock);
int ret = sceKernelGetMemBlockBase(sceBlock, (void **)&ndrc);
if (ret < 0)
SysPrintf("sceKernelGetMemBlockBase failed: %x\n", ret);
sceKernelOpenVMDomain();
if (ret)
SysPrintf("sceKernelGetMemBlockBase: %x\n", ret);
ret = sceKernelOpenVMDomain();
if (ret)
SysPrintf("sceKernelOpenVMDomain: %x\n", ret);
#elif defined(_MSC_VER)
ndrc = VirtualAlloc(NULL, sizeof(*ndrc), MEM_COMMIT | MEM_RESERVE,
PAGE_EXECUTE_READWRITE);
Expand Down

0 comments on commit b0c8040

Please sign in to comment.