Skip to content

Commit

Permalink
[loong64] Prevent use of lsx and lasx registers
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
  • Loading branch information
yetist committed Mar 1, 2024
1 parent 772ad25 commit 1d6899e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arch/loong64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ASM_TCHAR_OPS := @
CFLAGS += -fstrength-reduce -fomit-frame-pointer
CFLAGS += -falign-jumps=1 -falign-loops=1 -falign-functions=1

# Prevent use of lsx and lasx registers
#
CFLAGS += -mno-lsx -mno-lasx

# Check if -mno-explicit-relocs is valid
ifeq ($(CCTYPE),gcc)
MNER_TEST = $(CC) -mno-explicit-relocs -x c -c /dev/null -o /dev/null >/dev/null 2>&1
Expand Down

0 comments on commit 1d6899e

Please sign in to comment.