Skip to content

Commit

Permalink
Merge remote-tracking branch 'vbam-libretro/master'
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
  • Loading branch information
rkitover committed Apr 20, 2019
2 parents a8b3868 + c013d49 commit a0c375b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/libretro/Makefile
Expand Up @@ -157,6 +157,34 @@ else ifeq ($(platform), classic_armv7_a7)
LDFLAGS += -static-libgcc -static-libstdc++
endif
endif

# (armv8 a35, hard point, neon based) ###
# PlayStation Classic
else ifeq ($(platform), classic_armv8_a35)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared
TILED_RENDERING = 1
CFLAGS += -Ofast \
-flto=4 -fwhole-program -fuse-linker-plugin \
-fdata-sections -ffunction-sections -Wl,--gc-sections \
-fno-stack-protector -fno-ident -fomit-frame-pointer \
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
-fmerge-all-constants -fno-math-errno \
-marm -mtune=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard
CXXFLAGS += $(CFLAGS)
HAVE_NEON = 1
ARCH = arm
ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
CFLAGS += -march=armv8-a
else
CFLAGS += -march=armv8-a
# If gcc is 5.0 or later
ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
LDFLAGS += -static-libgcc -static-libstdc++
endif
endif
#######################################

# Windows MSVC 2017 all architectures
Expand Down
1 change: 1 addition & 0 deletions src/libretro/libretro.cpp
Expand Up @@ -95,6 +95,7 @@ LinkMode GetLinkMode()

void StartGPLink(uint16_t value)
{
WRITE16LE(((uint16_t*)&ioMem[COMM_RCNT]), value);
}

void LinkUpdate(int ticks)
Expand Down

0 comments on commit a0c375b

Please sign in to comment.