From e08e46ba44bb82e2f5fa3e4c640ad70361be35a7 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 6 May 2021 22:05:17 +0200 Subject: [PATCH] libretro, build change for PS3 (disable drc) --- Makefile.libretro | 9 +++++++++ cpu/drc/emit_arm64.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index d6a0d035..9effd3c8 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -160,6 +160,9 @@ else ifeq ($(platform), ps3) CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ -DFAMEC_NO_GOTOS STATIC_LINKING = 1 NO_MMAP = 1 + # PS3 has memory mapped in a way not suitable for DRC + use_sh2drc = 0 + use_svpdrc = 0 # sncps3 else ifeq ($(platform), sncps3) @@ -170,6 +173,9 @@ else ifeq ($(platform), sncps3) CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ -DFAMEC_NO_GOTOS STATIC_LINKING = 1 NO_MMAP = 1 + # PS3 has memory mapped in a way not suitable for DRC + use_sh2drc = 0 + use_svpdrc = 0 # Lightweight PS3 Homebrew SDK else ifeq ($(platform), psl1ght) @@ -179,6 +185,9 @@ else ifeq ($(platform), psl1ght) CFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ -DFAMEC_NO_GOTOS STATIC_LINKING = 1 NO_MMAP = 1 + # PS3 has memory mapped in a way not suitable for DRC + use_sh2drc = 0 + use_svpdrc = 0 # PSP else ifeq ($(platform), psp1) diff --git a/cpu/drc/emit_arm64.c b/cpu/drc/emit_arm64.c index 66452975..089cfdb2 100644 --- a/cpu/drc/emit_arm64.c +++ b/cpu/drc/emit_arm64.c @@ -1187,7 +1187,7 @@ static void emith_ldst_offs(int sz, int rd, int rn, int o9, int ld, int mode) #define host_instructions_updated(base, end, force) \ do { if (force) __builtin___clear_cache(base, end); } while (0) #define emith_update_cache() /**/ -#define emith_rw_offs_max() 0xff +#define emith_rw_offs_max() 0x1ff #define emith_uext_ptr(r) /**/ -- 2.39.5