Skip to content

Commit ab0f982

Browse files
pavelvkozlovabrodkin
authored andcommitted
ARCv3: HS5x: fix compiler option for the ARC_HAS_LL64 config variable
Current scheme with -mcpu=hs5x and -mno-ll64 if CONFIG_ARC_HAS_LL64 not set is incorrect. We expect that option -mcpu=hs5x tells the compiler to use duals loads/stores by default, but actually it is not true. By default -mcpu=hs5x doesn't enable use of 64-bit dual loads/stores and to enable them we have to add -mll64 option. It is reverse logic to one used for ARCv2 (hs38). So, add extra conditions to implement new scheme with -mcpu=hs5x and -mll64 (for ll64) for ARCv3 32-bit architecture configs. Signed-off-by: Pavel Kozlov <pavel.kozlov@synopsys.com>
1 parent e11d6ef commit ab0f982

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/arc/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,23 @@ cflags-y += -mno-div-rem
8787
endif
8888

8989
ifneq ($(filter y,$(CONFIG_ISA_ARCV2) $(CONFIG_ISA_ARCV3)),)
90-
9190
ifdef CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS
9291
cflags-y += -munaligned-access
9392
else
9493
cflags-y += -mno-unaligned-access
9594
endif
95+
endif
9696

97+
ifdef CONFIG_ISA_ARCV2
9798
ifndef CONFIG_ARC_HAS_LL64
9899
cflags-y += -mno-ll64
99100
endif
101+
endif
100102

103+
ifdef CONFIG_ISA_ARCV3
104+
ifndef CONFIG_64BIT
105+
cflags-$(CONFIG_ARC_HAS_LL64) += -mll64
106+
endif
101107
endif
102108

103109
cfi := $(call as-instr,.cfi_startproc\n.cfi_endproc,-DARC_DW2_UNWIND_AS_CFI)

0 commit comments

Comments
 (0)