summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Guillen Fandos2021-06-18 18:03:47 +0200
committerDavid Guillen Fandos2021-06-18 18:03:47 +0200
commite0a31952dbffd15cd2878ed20142ec41cbd937bb (patch)
tree193b602acde7e4a44297058293a2ac2c3b62af75 /Makefile
parent34b90277bcba369807a434bde3f770dd401007ac (diff)
downloadpicogpsp-e0a31952dbffd15cd2878ed20142ec41cbd937bb.tar.gz
picogpsp-e0a31952dbffd15cd2878ed20142ec41cbd937bb.tar.bz2
picogpsp-e0a31952dbffd15cd2878ed20142ec41cbd937bb.zip
Add preliminary support for non mips32r2 devices
This is required in PS2 but could also make older dingux devices run gpsp on retroarch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6edf65c..4d75fdd 100644
--- a/Makefile
+++ b/Makefile
@@ -200,7 +200,7 @@ else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
- CFLAGS += -DPSP -G0 -DUSE_BGR_FORMAT
+ CFLAGS += -DPSP -G0 -DUSE_BGR_FORMAT -DMIPS_HAS_R2_INSTS
CFLAGS += -I$(shell psp-config --pspsdk-path)/include
CFLAGS += -march=allegrex -mfp32 -mgp32 -mlong32 -mabi=eabi
CFLAGS += -fomit-frame-pointer -ffast-math
@@ -375,7 +375,7 @@ else ifeq ($(platform), mips32)
SHARED := -shared -nostdlib -Wl,--version-script=link.T
fpic := -fPIC -DPIC
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
- CFLAGS += -fno-caller-saves
+ CFLAGS += -fno-caller-saves -DMIPS_HAS_R2_INSTS
HAVE_DYNAREC := 1
CPU_ARCH := mips
@@ -393,6 +393,7 @@ else ifeq ($(platform), gcw0)
SHARED := -shared -nostdlib -Wl,--version-script=link.T
fpic := -fPIC -DPIC
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ CFLAGS += -DMIPS_HAS_R2_INSTS
HAVE_DYNAREC := 1
CPU_ARCH := mips
@@ -408,7 +409,7 @@ else ifeq ($(platform), gcw0-odbeta)
# The ASM code and/or MIPS dynarec of GPSP does not respect
# MIPS calling conventions, so we must use '-fno-caller-saves'
# for the OpenDingux Beta build
- CFLAGS += -fno-caller-saves
+ CFLAGS += -fno-caller-saves -DMIPS_HAS_R2_INSTS
HAVE_DYNAREC := 1
CPU_ARCH := mips