Skip to content

Commit 076df97

Browse files
committed
vita: disable drc thread
tc writes from a thread cause data abort, and sceKernelOpenVMDomain() returns 80010058 which https://wiki.henkaku.xyz/vita/SceSblSsMgr mentions as SCE_ERROR_ERRNO_ENOSYS, aka "Invalid system call number"?
1 parent 86a5ff1 commit 076df97

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Makefile.libretro

+1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ else ifeq ($(platform), vita)
347347
PARTIAL_LINKING = 1
348348
NO_MMAP := 1
349349
NO_POSIX_MEMALIGN := 1
350+
NDRC_THREAD := 0 # can't write to tc from thread
350351
HAVE_PHYSICAL_CDROM = 0
351352
EXTRA_EXTERN_SYMS += _newlib_vm_size_user
352353

libpcsxcore/new_dynarec/emu_if.c

-7
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
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
3027
#endif
3128
#ifdef _3DS
3229
#include <3ds_utils.h>
@@ -449,10 +446,6 @@ static void ari64_compile_thread(void *unused)
449446
void *target;
450447
u32 addr;
451448

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

0 commit comments

Comments
 (0)