Commit cefd52df authored by Wu Liliu's avatar Wu Liliu Committed by guzitao
Browse files

sw64: add -fno-sw-unalign-byte to cflags for C4

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR



--------------------------------

This ensures that kernel does not throw an unalign exception.

Signed-off-by: default avatarWu Liliu <wuliliu@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 9bf51bee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ endif
CHECKFLAGS	+= -D__sw__
cflags-y	:= -pipe -ffixed-8 -mno-fp-regs #-msmall-data
ifeq ($(CONFIG_SUBARCH_C4),y)
	cflags-y += -fsw-rev
	cflags-y += -fsw-rev -fno-sw-unalign-byte
endif
cflags-y	+= $(call cc-option, -fno-jump-tables)