update-isa-spec
authorVagrant Cascadian <vagrant@debian.org>
Tue, 5 Apr 2022 16:26:39 +0000 (17:26 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 5 Apr 2022 16:26:39 +0000 (17:26 +0100)
Update to newer default ISA spec in GCC and binutils:

Update to newer default ISA spec in GCC and binutils:

  https://lists.infradead.org/pipermail/linux-riscv/2022-January/011728.html

Gbp-Pq: Topic riscv64
Gbp-Pq: Name update-isa-spec.patch

arch/riscv/Makefile

index 0b80eb8d864582fb67babd325dc793fe164eed68..7814d02bbdf653ab5cd2941dceeaff713af1f5be 100644 (file)
@@ -24,7 +24,7 @@ ifeq ($(CONFIG_CMODEL_MEDANY),y)
        CMODEL = medany
 endif
 
-ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_C) -mabi=$(ABI) \
+ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_C)_zicsr_zifencei -mabi=$(ABI) \
             -mcmodel=$(CMODEL)
 
 PLATFORM_CPPFLAGS      += $(ARCH_FLAGS)