psp: Use ALIGN_DWORD (#39)

Avoids unaligned memory access.

Fixes #27
This commit is contained in:
jSTE0 2022-04-09 06:10:52 +01:00 committed by GitHub
parent 8e8378896b
commit 9de9847dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ else ifeq ($(platform), psp1)
CC = psp-gcc$(EXE_EXT)
CXX = psp-g++$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
ENDIANNESS_DEFINES += -DLSB_FIRST
ENDIANNESS_DEFINES += -DLSB_FIRST -DALIGN_DWORD
FLAGS += -DPSP -G0
STATIC_LINKING = 1
EXTRA_INCLUDES := -I$(shell psp-config --pspsdk-path)/include