Add support for RS90
This commit is contained in:
parent
60155e0b81
commit
75e67bffc2
2 changed files with 16 additions and 3 deletions
17
Makefile
17
Makefile
|
@ -208,7 +208,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 -DMIPS_HAS_R2_INSTS
|
||||
CFLAGS += -DPSP -G0 -DUSE_BGR_FORMAT -DMIPS_HAS_R2_INSTS -DSMALL_TRANSLATION_CACHE
|
||||
CFLAGS += -I$(shell psp-config --pspsdk-path)/include
|
||||
CFLAGS += -march=allegrex -mfp32 -mgp32 -mlong32 -mabi=eabi
|
||||
CFLAGS += -fomit-frame-pointer -ffast-math
|
||||
|
@ -402,7 +402,7 @@ else ifeq ($(platform), ps2)
|
|||
CC = mips64r5900el-ps2-elf-gcc$(EXE_EXT)
|
||||
AR = mips64r5900el-ps2-elf-ar$(EXE_EXT)
|
||||
CFLAGS += -fomit-frame-pointer -ffast-math
|
||||
CFLAGS += -DPS2 -DUSE_XBGR1555_FORMAT -DROM_BUFFER_SIZE=12
|
||||
CFLAGS += -DPS2 -DUSE_XBGR1555_FORMAT -DSMALL_TRANSLATION_CACHE -DROM_BUFFER_SIZE=12
|
||||
CFLAGS += -D_EE -I$(PS2SDK)/ee/include/ -I$(PS2SDK)/common/include/
|
||||
HAVE_DYNAREC = 1
|
||||
CPU_ARCH := mips
|
||||
|
@ -426,6 +426,19 @@ else ifeq ($(platform), gcw0)
|
|||
HAVE_DYNAREC := 1
|
||||
CPU_ARCH := mips
|
||||
|
||||
# RS90
|
||||
else ifeq ($(platform), rs90)
|
||||
TARGET := $(TARGET_NAME)_libretro.so
|
||||
CC = /opt/rs90-toolchain/usr/bin/mipsel-linux-gcc
|
||||
CXX = /opt/rs90-toolchain/usr/bin/mipsel-linux-g++
|
||||
AR = /opt/rs90-toolchain/usr/bin/mipsel-linux-ar
|
||||
SHARED := -shared -nostdlib -Wl,--version-script=link.T
|
||||
fpic := -fPIC -DPIC
|
||||
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32
|
||||
CFLAGS += -DSMALL_TRANSLATION_CACHE -DROM_BUFFER_SIZE=8
|
||||
HAVE_DYNAREC := 1
|
||||
CPU_ARCH := mips
|
||||
|
||||
# Windows
|
||||
else
|
||||
TARGET := $(TARGET_NAME)_libretro.dll
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#endif
|
||||
|
||||
/* Cache sizes and their config knobs */
|
||||
#if defined(PSP) || defined(PS2)
|
||||
#if defined(SMALL_TRANSLATION_CACHE)
|
||||
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 2)
|
||||
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
|
||||
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 2)
|
||||
|
|
Loading…
Add table
Reference in a new issue